<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function performTest() | |
{ | |
Outline_init(); | |
PostponedActions_perform(); | |
var nav = document.getElementsByTagName("NAV")[0]; | |
var offset = DOM_nodeOffset(nav); | |
Cursor_set(nav.parentNode,offset+1,nav.parentNode,offset+1); | |
Cursor_deleteCharacter(); | |
showSelection(); | |
} | |
</script> | |
</head> | |
<body> | |
<p>Text before</p> | |
<nav class="tableofcontents"> | |
</nav> | |
[] | |
<p>Text after</p> | |
<h1>First section</h1> | |
<h1>Second section</h1> | |
<h1>Third section</h1> | |
</body> | |
</html> |