Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / xhtml-scripts.xhtml
blobdf39210304e48dda54c43451bdd676538d8681ed
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var failure = false;
9 // This shouldn't be known since we haven't parsed that far yet.
10 var d = document.getElementById('div1');
12 if (d)
13 failure = true;
14 </script>
16 <div id="div1"/>
18 <script src="resources/xhtml-scripts.js"/>
19 <div id="div2"/>
21 This tests that parsing stops when a script is encountered in an XML document. Parsing resumes when the script has finished executing.
22 <div id="result">FAILURE</div>
24 <script>
25 if (!failure)
26 document.getElementById('result').firstChild.nodeValue = 'SUCCESS';
27 </script>
28 </body>
29 </html>