mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 07:02:54 +00:00
From https://html.spec.whatwg.org/multipage/scripting.html#script-processing-model: When a script element el that is not parser-inserted experiences one of the events listed in the following list, the user agent must immediately prepare the script element el: - [...] - The script element is connected and has a src attribute set where previously the element had no such attribute.
13 lines
338 B
HTML
13 lines
338 B
HTML
<!DOCTYPE html>
|
|
<head></head>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
asyncTest((done) => {
|
|
const el = document.createElement("script");
|
|
el.onload = () => {
|
|
done();
|
|
};
|
|
document.head.appendChild(el);
|
|
el.setAttribute("src", "script-src-set-after-insertion.js");
|
|
});
|
|
</script>
|