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 b
= document
.getElementsByTagName("b")[0];
16 var div
= document
.getElementById("nested");
17 var items
= div
.children
.length
;
18 for (var i
= 0; i
< items
; ++i
)
19 div
.removeChild(div
.firstElementChild
);
21 list
.removeChild(document
.getElementById("item"));
23 document
.getElementById("console").innerHTML
= dumpList(list
);
25 // Don't show the actual list as it is useless in the text-only mode.
26 list
.parentNode
.removeChild(list
);
30 <body onload=
"test()">
31 <p>This tests that list item markers are updated when removing existing items that are not direct children of the list element.
</p>
45 <div id=
"item" style=
"display: list-item">Foo
</div>
49 <div id=
"console"></div>