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

Script tag execution should be more specific to javascript #16

Merged
merged 1 commit into from
Jun 28, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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