| 1 |
<!DOCTYPE HTML> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>document.styleSheets</title> |
| 5 |
<script src="../../../../support/result0.js"></script> |
| 6 |
</head> |
| 7 |
<body> |
| 8 |
|
| 9 |
<p><code>createDocument ().styleSheets</code> = <script> |
| 10 |
var doc = document.implementation.createDocument (null, null, null); |
| 11 |
var ss = doc.styleSheets; |
| 12 |
writeResult (ss); |
| 13 |
</script>.</p> |
| 14 |
|
| 15 |
<script> |
| 16 |
if (ss) { |
| 17 |
document.write ('<ul>'); |
| 18 |
for (var v in ss) { |
| 19 |
document.write ('<li><code>' + htescape (v) + '</code> = '); |
| 20 |
writeResult (ss[v]); |
| 21 |
document.write ('</li>'); |
| 22 |
} |
| 23 |
document.write ('</ul>'); |
| 24 |
} |
| 25 |
</script> |
| 26 |
|
| 27 |
</body> |
| 28 |
</html> |