OLD | NEW |
1 <?xml-stylesheet href="a" type="text/css"?> | 1 <?xml-stylesheet href="a" type="text/css"?> |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
4 <head></head> | 4 <head></head> |
5 <body onload="test()"> | 5 <body onload="test()"> |
6 <p> | 6 <p> |
7 This text should be styled green. | 7 This text should be styled green. |
8 </p> | 8 </p> |
9 <script> | 9 <script> |
10 if (window.testRunner) | 10 if (window.testRunner) |
11 testRunner.dumpAsText(); | 11 testRunner.dumpAsText(); |
12 | 12 |
13 if (!document.firstChild.data.match(/href="a"/)) | 13 if (!document.firstChild.data.match(/href="a"/)) |
14 alert("Please don't rename the stylesheet - the test needs its URL to be sin
gle character"); | 14 alert("Please don't rename the stylesheet - the test needs its URL to be sin
gle character"); |
15 | 15 |
16 function test() | 16 function test() |
17 { | 17 { |
18 if (document.firstChild.sheet.cssRules.length) | 18 if (document.firstChild.sheet.cssRules.length) |
19 document.getElementsByTagName("p")[0].innerHTML += " PASS."; | 19 document.getElementsByTagName("p")[0].innerHTML += " PASS."; |
20 } | 20 } |
21 | 21 |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |