Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
cloneNode is used by polymer, not importNode
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Apr 24, 2014
1 parent 4f1736a commit ce0ac12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/html/styling/imports/ce-style-import.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
var styles = t.content.querySelectorAll('style').array();
Platform.styleResolver.loadStyles(styles, t.ownerDocument.baseURI, function() {
sr.appendChild(document.importNode(t.content, true));
sr.appendChild(t.content.cloneNode(true));
this.dispatchEvent(new CustomEvent('custom-style-loaded', {bubbles: true}));
});
};
Expand Down

0 comments on commit ce0ac12

Please sign in to comment.