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

Commit

Permalink
Merge pull request #16 from pennyfx/script-execution-fix
Browse files Browse the repository at this point in the history
Script tag execution should be more specific to javascript
  • Loading branch information
Scott J. Miles committed Jun 28, 2013
2 parents 1d58da6 + 2806add commit e7cfac4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/HTMLImports.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ var importer = {
'link[rel=' + IMPORT_LINK_TYPE + ']',
'element link[rel=' + STYLE_LINK_TYPE + ']',
'template',
'script[src]'
'script[src]',
'script:not([type])',
'script[type="text/javascript"]'
].join(','),
loader: function(inNext) {
// construct a loader instance
Expand Down Expand Up @@ -82,10 +84,10 @@ var importer = {
nodes = Array.prototype.filter.call(nodes, function(n) {
if (n.localName === 'template') {
if (n.content) {
var l$ = n.content.querySelectorAll('link[rel=' + STYLE_LINK_TYPE +
var l$ = n.content.querySelectorAll('link[rel=' + STYLE_LINK_TYPE +
']');
if (l$.length) {
extra = extra.concat(Array.prototype.slice.call(l$, 0));
extra = extra.concat(Array.prototype.slice.call(l$, 0));
}
}
return false;
Expand Down

0 comments on commit e7cfac4

Please sign in to comment.