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

Commit 10721ad

Browse files
committed
Fix tests on FF.
1 parent f3c3ab7 commit 10721ad

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/HTMLImports.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,6 @@ Object.defineProperty(document, '_currentScript', {
446446
get: function() {
447447
return HTMLImports.currentScript || document.currentScript;
448448
},
449-
set: function(script) {
450-
HTMLImports.currentScript = script;
451-
},
452449
writeable: true,
453450
configurable: true
454451
});

test/html/imports/script-1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div>me</div>
22
<script>
33
var d = document._currentScript.ownerDocument.querySelector('div');
4-
chai.assert.equal(d.innerText, 'me', '_currentScript can locate element in import')
4+
chai.assert.equal(d.innerHTML, 'me', '_currentScript can locate element in import')
55
</script>

0 commit comments

Comments
 (0)