/[suikacvs]/www/test/dom/style-declaration/item/style-rule-item-1.html
Suika

Contents of /www/test/dom/style-declaration/item/style-rule-item-1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Sun Dec 30 08:52:53 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -1 lines
File MIME type: text/html
New tests; support for IE

1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>{prop:value}.item (i)</title>
5 <style type="text/css">
6 div {
7 color: red;
8 background-color: white;
9 }
10 </style>
11 <script type="text/javascript" src="../../../support/result0.js"></script>
12 </head>
13 <body>
14 <script type="text/javascript">
15 var style = document.getElementsByTagName ('style')[0];
16 var sheet = style.sheet || style.styleSheet;
17 var rules = sheet.cssRules || sheet.rules;
18 var rule = rules[0];
19 var styledecl = rule.style;
20 document.write ('<ol>');
21 for (var i = 0; i < styledecl.length; i++) {
22 document.write ('<li>');
23 writeResult (styledecl.item (i));
24 document.write ('<' + '/li>');
25 }
26 document.write ('<' + '/ol>');
27 </script><noscript><p>noscript</p></noscript>
28 </body>
29 </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24