Skip to content

Commit

Permalink
Do not fire "load" on <script> without src=""
Browse files Browse the repository at this point in the history
  • Loading branch information
t1ger2080 authored Jan 22, 2023
1 parent a5204df commit 026ceb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions lib/jsdom/living/nodes/HTMLScriptElement-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const reportException = require("../helpers/runtime-script-errors");
const { domSymbolTree, cloningSteps } = require("../helpers/internal-constants");
const { asciiLowercase } = require("../helpers/strings");
const { childTextContent } = require("../helpers/text");
const { fireAnEvent } = require("../helpers/events");
const { parseURLToResultingURLRecord } = require("../helpers/document-base-url");
const nodeTypes = require("../node-type");

Expand Down Expand Up @@ -113,8 +112,6 @@ class HTMLScriptElementImpl extends HTMLElementImpl {

document._queue.push(null, () => {
this._innerEval(this.text, document.URL);

fireAnEvent("load", this);
}, null, false, this);
}

Expand Down
1 change: 0 additions & 1 deletion test/web-platform-tests/to-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,6 @@ execution-timing/015a.html: [fail, Unknown]
execution-timing/016.html: [fail, Unknown]
execution-timing/017.html: [fail, Unknown]
execution-timing/018.html: [fail, Unknown]
execution-timing/019.html: [fail, Unknown]
execution-timing/025.html: [fail, Unknown]
execution-timing/027.html: [fail, Unknown]
execution-timing/028.html: [fail, Unknown]
Expand Down

0 comments on commit 026ceb5

Please sign in to comment.