21 lines
632 B
HTML
21 lines
632 B
HTML
<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>
|