3 <script src=
"resources/dump-list.js"></script>
8 testRunner
.dumpAsText();
10 var list
= document
.getElementById("list");
11 list
.offsetTop
; // Force a relayout.
13 var nestedList
= document
.getElementById("nested-list");
15 var li2
= document
.createElement("li");
16 li2
.innerText
= "Twenty five";
18 var li1
= document
.createElement("li");
19 li1
.innerText
= "One";
20 var li3
= document
.createElement("li");
21 li3
.innerText
= "Twenty six";
23 nestedList
.appendChild(li2
);
24 nestedList
.insertBefore(li1
, li2
);
25 nestedList
.appendChild(li3
);
27 document
.getElementById("console").innerHTML
= dumpList(list
);
29 // Don't show the actual list as it is useless in the text-only mode.
30 list
.parentNode
.removeChild(list
);
34 <body onload=
"test()">
35 <p>This tests that list item markers do not change when adding new items to a nested list.
</p>
41 <li>Five
<ol id=
"nested-list"></ol></li>
46 <div id=
"console"></div>