Harness status: OK
Found 1 tests
Result | Test Name | Message | ||
---|---|---|---|---|
Fail | Modify inline script element's text after prepare-a-script before evaluation (CSP) | assert_equals: <script>'s textContent should be already modified expected "t.unreached_func(\"CSP check was done against the original text but the updated text was evaluated\")();" but got "\nt.step(() => {\n // When this is evaluated after the stylesheet is loaded,\n // script0's textContent is modified by the async script above,\n // but the evaluated script is still the original script here,\n // not what is overwritten, because \"child text content\" is taken in\n // #prepare-a-script and passed to \"creating a classic script\".\n var s = document.getElementById('script0');\n assert_equals(s.textContent, updatedText,\n \"<script>'s textContent should be already modified\");\n t.done();\n });\n"at Test.<anonymous> (https://wpt.live/html/semantics/scripting-1/the-script-element/script-text-modifications-csp.html:42:5) at Test.step (https://wpt.live/resources/testharness.js:2642:25) at https://wpt.live/html/semantics/scripting-1/the-script-element/script-text-modifications-csp.html:35:3 Asserts run
|