1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <?xml-stylesheet href=
"resources/xml-stylesheet-pi-not-in-prolog.css" type=
"text/css" alternate=
"yes" title=
"alt1"?>
3 <?xml-stylesheet href=
"resources/xml-stylesheet-pi-not-in-prolog.css" type=
"text/css" alternate=
"no"?>
4 <?xml-stylesheet href=
"resources/xml-stylesheet-pi-not-in-prolog.css" type=
"text/css"?>
5 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
8 <title>xml-stylesheet pseudo attribute alternate test
</title>
9 <script type=
"text/javascript">
11 if (window.testRunner)
12 testRunner.dumpAsText();
13 var pi = document.firstChild;
14 if (pi.sheet.disabled != true) return;
16 if (pi.sheet.disabled != false) return;
18 if (pi.sheet.disabled != false) return;
20 document.getElementById('result').innerHTML = 'SUCCESS';
24 <body onload=
"runTest();">
25 <div id=
"result">FAILURE
</div>