blob: 846181cb9325e9f652729f32bf18658cfa355bc5 [file] [log] [blame]
<p>This page tests nesting h3 and h4 elements as seen in <a href="http://bugs.webkit.org/show_bug.cgi?id=12646">RapidWeaver 3.5.1</a>.</p>
<hr>
<pre id="console"></pre>
<h3 id="h3"><a style="display: block"><h4>header</h4></a></h3><div>content</div>
<script>
function log(s)
{
document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
}
if (window.testRunner)
testRunner.dumpAsText();
var h3 = document.getElementById("h3");
log("h3.firstChild: " + h3.firstChild.tagName);
log("h3.nextSibling: " + h3.nextSibling.tagName);
log("h3.nextSibling.innerText: " + h3.nextSibling.innerText);
</script>