| <script src="resources/dump-list.js"></script> |
| var list = document.getElementById("list"); |
| list.offsetTop; // Force a relayout. |
| var p = document.getElementById("nested"); |
| var li1 = document.createElement("li"); |
| var li2 = document.createElement("li"); |
| var item3 = document.createElement("div"); |
| item3.innerText = "Nine"; |
| item3.style.display = "list-item"; |
| p.insertBefore(li2, li1); |
| document.getElementById("console").innerHTML = dumpList(list); |
| // Don't show the actual list as it is useless in the text-only mode. |
| list.parentNode.removeChild(list); |
| <p>This tests that list item markers are updated when adding new items as indirect children of the list element.</p> |
| <div><li>Three</li></div> |