blob: fe40d0c3e8716506a3dd2bbe447bc4ffb0ff8a8d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="resources/xml-stylesheet-pi-not-in-prolog.css" title="style1" type="text/css"?>
<?xml-stylesheet href="resources/xml-stylesheet-pi-not-in-prolog.css" title="another style" type="text/css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>xml-stylesheet pseudo attribute title test</title>
<script type="text/javascript">
function runTest() {
if (window.testRunner)
testRunner.dumpAsText();
var pi = document.firstChild;
if (pi.sheet.title == "style1" &amp;&amp;
pi.nextSibling.sheet.title == "another style")
document.getElementById('result').innerHTML = 'SUCCESS';
}
</script>
</head>
<body onload="runTest();">
<div id="result">FAILURE</div>
</body>
</html>