Skip to content

Commit

Permalink
Merge pull request #319 from LumiGuide/master
Browse files Browse the repository at this point in the history
Do not generate 'xlink:class' attributes for svg elements
  • Loading branch information
dmjio authored Nov 29, 2017
2 parents 0c7c80a + fd4c598 commit ab4db2a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions jsbits/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ function diffProps (cProps, nProps, node, isSvg) {
if (isSvg) {
if (c === "href")
node.setAttributeNS("http://www.w3.org/1999/xlink", "href", newProp);
else if (c === "className" || c === "class")
node.setAttributeNS("http://www.w3.org/1999/xlink", "class", newProp);
else
node.setAttribute(c, newProp);
} else if (c in node && !(c === "list" || c === "form")) {
Expand All @@ -95,8 +93,6 @@ function diffProps (cProps, nProps, node, isSvg) {
if (isSvg) {
if (n === "href")
node.setAttributeNS("http://www.w3.org/1999/xlink", "href", newProp);
else if (n === "className" || n === "class")
node.setAttributeNS("http://www.w3.org/1999/xlink", "class", newProp);
else
node.setAttribute(n, newProp);
} else if (n in node && !(n === "list" || n === "form")) {
Expand Down

0 comments on commit ab4db2a

Please sign in to comment.