Various tests for the main element. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
closes

: PASS main1.parentNode.nodeName == "p" is false

does not close

: PASS p1.parentNode.nodeName is "MAIN"
can be nested inside
: PASS main3.parentNode.id is "main2" Residual style: PASS getWeight("main4") is "bold" PASS getWeight("span1") is "bold" FormatBlock: PASS document.getElementById("span2").parentNode.nodeName is "MAIN" PASS successfullyParsed is true TEST COMPLETE