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

Commit

Permalink
make style elements work
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 7, 2014
1 parent 9859d3a commit ee935a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ var importParser = {
this.parseGeneric(elt);
},
parseGeneric: function(elt) {
if (needsMainDocumentContext(elt)) {
// TODO(sorvell): because of a style element needs to be out of
// tree to fire the load event, avoid the check for parentNode that
// needsMainDocumentContext does. Why was that necessary? if it is,
// refactor this.
//if (needsMainDocumentContext(elt)) {
if (!inMainDocument(elt)) {
this.trackElement(elt);
document.head.appendChild(elt);
}
Expand Down

0 comments on commit ee935a1

Please sign in to comment.