4 <title>Test of HTML5 nav element
</title>
8 testRunner
.dumpAsText();
12 nav { border:
1px solid green; padding:
2px; }
13 p
> nav { border:
3px solid red; }
14 nav
> p { border:
1px solid green; }
24 <p><nav>Test that
<code>nav
</code> closes
<code>p
</code>. This paragraph should be surrounded by a thin green border, instead of a thick red one. Also tests that nav lays out as a block. There should be only a single border box with width of the content area (minus margins).
</nav>
26 <nav><p>Test that
<code>p
</code> does not close
<code>nav
</code>. This paragraph should have a double green border.
</nav>
28 <nav><nav>Test that
<code>nav
</code> can nest inside itself. This paragraph should have a double green border.
</nav></nav>
30 <b><nav>Test of residual style. This text should be bold.
</nav>This should be bold too.
</b>
34 <div contentEditable=true id=editable
>
35 Test of FormatBlock behavior. This text should have a green border.
43 <h4>DOM for the above (so this test can dump as text)
</h4>
49 var ed
= document
.getElementById("editable");
50 var selection
= window
.getSelection();
51 selection
.selectAllChildren(ed
);
52 document
.execCommand("FormatBlock", false, "nav");
53 selection
.removeAllRanges();
56 var tests
= document
.getElementById("testArea");
57 var markup
= document
.getElementById("markupArea");
58 var textNode
= document
.createTextNode(testArea
.innerHTML
);
59 markup
.appendChild(textNode
);