| <!DOCTYPE html> |
| <html> |
| <head> |
| <script type="text/javascript" src="OutlineTest.js"></script> |
| <script> |
| function performTest() |
| { |
| Outline_init(); |
| if (Outline_detectSectionNumbering()) |
| setupOutlineNumbering(); |
| PostponedActions_perform(); |
| |
| Outline_setNumbered("item3",true); |
| PostponedActions_perform(); |
| |
| return Outline_plainText()+PrettyPrinter.getHTML(document.documentElement); |
| } |
| </script> |
| </head> |
| <body> |
| <h1 id="item1">9 First heading</h1> |
| <h1 id="item2">9 Second heading</h1> |
| <h1 id="item3">Third heading</h1> |
| <h1 id="item4">Fourth heading</h1> |
| <p>First ref: Section <a href="#item1"></a></p> |
| <p>Second ref: Section <a href="#item2"></a></p> |
| <p>Third ref: Section <a href="#item3"></a></p> |
| <p>Fourth ref: Section <a href="#item4"></a></p> |
| </body> |
| </html> |