Commit 0439268600e5c3782ae500bd8b7b0f19b68ba382
fix handling of svg classLists
Matt McKegg committed on 4/24/2017, 3:28:04 AMParent: 5e674ae0fa64613f83914dd55187c41b9c945862
Files changed
lib/apply-properties.js | changed |
lib/apply-properties.js | ||
---|---|---|
@@ -5,10 +5,10 @@ | ||
5 | 5 … | module.exports = applyProperties |
6 | 6 … | |
7 | 7 … | function applyProperties (target, properties, data) { |
8 | 8 … | var classList = Set() |
9 | - if (target.className) { | |
10 | - classList.add(target.className) | |
9 … | + if (target.classList && target.classList.value) { | |
10 … | + classList.add(target.classList.value) | |
11 | 11 … | } |
12 | 12 … | |
13 | 13 … | for (var key in properties) { |
14 | 14 … | var valueOrObs = properties[key] |
Built with git-ssb-web