Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / fast / parser / xhtml-scripts.xhtml
blob2f10cf6a515e857f2fd58f37a30aa7787237adc7
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body>
3 <script>
4 if (window.layoutTestController)
5 layoutTestController.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>