diff --git a/Tests/LibWeb/Text/expected/script-src-set-after-insertion.txt b/Tests/LibWeb/Text/expected/script-src-set-after-insertion.txt new file mode 100644 index 00000000000..7ef22e9a431 --- /dev/null +++ b/Tests/LibWeb/Text/expected/script-src-set-after-insertion.txt @@ -0,0 +1 @@ +PASS diff --git a/Tests/LibWeb/Text/input/script-src-set-after-insertion.html b/Tests/LibWeb/Text/input/script-src-set-after-insertion.html new file mode 100644 index 00000000000..a30bc14a331 --- /dev/null +++ b/Tests/LibWeb/Text/input/script-src-set-after-insertion.html @@ -0,0 +1,13 @@ + +
+ + diff --git a/Tests/LibWeb/Text/input/script-src-set-after-insertion.js b/Tests/LibWeb/Text/input/script-src-set-after-insertion.js new file mode 100644 index 00000000000..ab333c9f6ae --- /dev/null +++ b/Tests/LibWeb/Text/input/script-src-set-after-insertion.js @@ -0,0 +1 @@ +println("PASS"); diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp index 1eca1aad78b..cfd6df6125e 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp @@ -58,6 +58,16 @@ void HTMLScriptElement::attribute_changed(FlyString const& name, Optional