2 <html xmlns='http://www.w3.org/
1999/xhtml'
>
4 <title>crossorigin and XHTML
</title>
7 <p>In an XHTML document, test that a script element with a crossorigin attribute loads a cross-origin script correctly when the CORS check passes on the response.
</p>
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
16 var have_reported = false;
19 document.querySelector(
"pre").innerHTML = result;
20 if (window.testRunner)
21 testRunner.notifyDone();
26 <!-- This script should load -->
27 <script crossorigin=
"anonymous" src=
"http://localhost:8000/security/resources/cors-script.php?cors=true&&value=PASS"></script>
28 <script><![CDATA[loaded();]]
></script>