diff --git a/src/lib/dom-api.html b/src/lib/dom-api.html index d022275fcf..bba37586ac 100644 --- a/src/lib/dom-api.html +++ b/src/lib/dom-api.html @@ -13,6 +13,7 @@ diff --git a/src/standard/utils.html b/src/standard/utils.html index 02ccbfd7de..c2354c06f1 100644 --- a/src/standard/utils.html +++ b/src/standard/utils.html @@ -34,9 +34,9 @@ bool = !node.classList.contains(name); } if (bool) { - node.classList.add(name); + Polymer.dom(node).classList.add(name); } else { - node.classList.remove(name); + Polymer.dom(node).classList.remove(name); } }, @@ -55,9 +55,9 @@ bool = !node.hasAttribute(name); } if (bool) { - node.setAttribute(name, ''); + Polymer.dom(node).setAttribute(name, ''); } else { - node.removeAttribute(name); + Polymer.dom(node).removeAttribute(name); } }, @@ -71,10 +71,10 @@ */ classFollows: function(name, toElement, fromElement) { if (fromElement) { - fromElement.classList.remove(name); + Polymer.dom(fromElement).classList.remove(name); } if (toElement) { - toElement.classList.add(name); + Polymer.dom(toElement).classList.add(name); } }, @@ -88,10 +88,10 @@ */ attributeFollows: function(name, toElement, fromElement) { if (fromElement) { - fromElement.removeAttribute(name); + Polymer.dom(fromElement).removeAttribute(name); } if (toElement) { - toElement.setAttribute(name, ''); + Polymer.dom(toElement).setAttribute(name, ''); } }, diff --git a/test/smoke/nested-ip.html b/test/smoke/nested-ip.html new file mode 100644 index 0000000000..d1e65a4137 --- /dev/null +++ b/test/smoke/nested-ip.html @@ -0,0 +1,125 @@ + + +
+