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

Commit c0811c7

Browse files
committed
1 parent 5dff179 commit c0811c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/HTMLImports.js

+9
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,20 @@ Loader.prototype = {
222222
var receiveXhr = function(err, resource) {
223223
this.receive(url, elt, err, resource);
224224
}.bind(this);
225+
xhr.load(url, receiveXhr);
226+
// TODO(sorvell): blocked on
227+
// https://code.google.com/p/chromium/issues/detail?id=257221
228+
// xhr'ing for a document makes scripts in imports runnable; otherwise
229+
// they are not; however, it requires that we have doctype=html in
230+
// the import which is unacceptable. This is only needed on Chrome
231+
// to avoid the bug above.
232+
/*
225233
if (isDocumentLink(elt)) {
226234
xhr.loadDocument(url, receiveXhr);
227235
} else {
228236
xhr.load(url, receiveXhr);
229237
}
238+
*/
230239
},
231240
receive: function(inUrl, inElt, inErr, inResource) {
232241
if (!inErr) {

0 commit comments

Comments
 (0)