OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <title>li element</title> | |
6 <link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com"> | |
7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-li-elemen
t"> | |
8 <link rel="match" href="grouping-li-reftest-001-ref.html" /> | |
9 <meta name="assert" content="The value attribute has no effect when applied
to a li element whose parent is a non-ol element." /> | |
10 </head> | |
11 <body> | |
12 <h1>Description</h1> | |
13 <p>This test continues to validate the li element.</p> | |
14 | |
15 <p>The spec states:</p> | |
16 <blockquote>"If the parent element is an ol element, then the li element has
an ordinal value. The value attribute is processed relative to the element's pa
rent ol element (q.v.), if there is one. If there is not, the attribute has no e
ffect."</blockquote> | |
17 <p>This reftest verifies that the value attribute has no effect when applied
to a list item NOT having an ol parent.</p> | |
18 <p>A reftest is necessary because the values of li elements as calculated by
the user agent are NOT available programatically. Only explicitly-set values a
re then available programatically.</p> | |
19 <p>This reftest passes if you see NO sequencing information on any of the it
ems below.</p> | |
20 | |
21 <p>Unordered List</p> | |
22 <ul> | |
23 <li value="2">list item</li> | |
24 <li>list item</li> | |
25 <li>list item</li> | |
26 </ul> | |
27 | |
28 <menu> | |
29 <li>Menu Item</li> | |
30 <li value="3">Menu Item</li> | |
31 </menu> | |
32 | |
33 <menu type="toolbar"> | |
34 <li value="4"> | |
35 <menu label="ToolbarLabel"> | |
36 <li value="5"><a>Toolbar Menu Item</a></li> | |
37 <li><a>Toolbar Menu Item</a></li> | |
38 </menu> | |
39 </li> | |
40 <li value="6"> | |
41 <menu label="ToolbarLabel"> | |
42 <li value="10"><a>Toolbar Menu Item</a></li> | |
43 <li><a>Toolbar Menu Item</a></li> | |
44 </menu> | |
45 </li> | |
46 </menu> | |
47 | |
48 </body> | |
49 </html> | |
OLD | NEW |