Skip to content

Commit 026ceb5

Browse files
authored
Do not fire "load" on <script> without src=""
1 parent a5204df commit 026ceb5

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/jsdom/living/nodes/HTMLScriptElement-impl.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const reportException = require("../helpers/runtime-script-errors");
99
const { domSymbolTree, cloningSteps } = require("../helpers/internal-constants");
1010
const { asciiLowercase } = require("../helpers/strings");
1111
const { childTextContent } = require("../helpers/text");
12-
const { fireAnEvent } = require("../helpers/events");
1312
const { parseURLToResultingURLRecord } = require("../helpers/document-base-url");
1413
const nodeTypes = require("../node-type");
1514

@@ -113,8 +112,6 @@ class HTMLScriptElementImpl extends HTMLElementImpl {
113112

114113
document._queue.push(null, () => {
115114
this._innerEval(this.text, document.URL);
116-
117-
fireAnEvent("load", this);
118115
}, null, false, this);
119116
}
120117

test/web-platform-tests/to-run.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,6 @@ execution-timing/015a.html: [fail, Unknown]
969969
execution-timing/016.html: [fail, Unknown]
970970
execution-timing/017.html: [fail, Unknown]
971971
execution-timing/018.html: [fail, Unknown]
972-
execution-timing/019.html: [fail, Unknown]
973972
execution-timing/025.html: [fail, Unknown]
974973
execution-timing/027.html: [fail, Unknown]
975974
execution-timing/028.html: [fail, Unknown]

0 commit comments

Comments
 (0)