<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function performTest() | |
{ | |
setupOutlineNumbering(); | |
Outline_init(); | |
PostponedActions_perform(); | |
var heading = document.getElementsByTagName("H1")[0]; | |
Selection_set(heading.lastChild,0,heading.lastChild,heading.lastChild.nodeValue.length); | |
Cursor_insertCharacter("d"); | |
PostponedActions_perform(); | |
showSelection(); | |
} | |
</script> | |
</head> | |
<body> | |
<nav class="tableofcontents"></nav> | |
<h1>One</h1> | |
<h1>Two</h1> | |
<h1>Three</h1> | |
</body> | |
</html> |