blob: e3e57b2ecf48c01b36c4dd38d538b7b38019844b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<div id="div"><menuitem></div>
<menu id="menu" type=context><menuitem id="first_item"><menuitem id="second_item"></menu>
<script>
description("This test checks parsing of menuitem tag which is a self closing tag with no end tag.");
shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem>");
shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id=\"first_item\"><menuitem id=\"second_item\">");
shouldBeNull("document.getElementById('first_item').firstChild");
shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.getElementById('second_item')");
</script>
|