Permalink
Browse files

Avoid processing style elements that are already in the main document.

  • Loading branch information...
sorvell committed Apr 29, 2013
1 parent c40f428 commit 632ef0f43a5bb693580345096c1748e27990e39f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Parser.js
View
@@ -72,7 +72,7 @@ var componentParser = {
}
},
parseStyle: function(inStyleElt) {
- if (!isElementElementChild(inStyleElt)) {
+ if (!inMainDocument(inStyleElt) && !isElementElementChild(inStyleElt)) {
document.querySelector('head').appendChild(inStyleElt);
}
},

0 comments on commit 632ef0f

Please sign in to comment.