Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / parse-menuitem.html
blob62be03375b0c0e4152f1fb910b6e9ec5f444424f
1 <!DOCTYPE html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <div id="div"><menuitem></div>
6 <menu id="menu" type=popup><menuitem id="first_item"><menuitem id="second_item"></menu>
7 <script>
8 description("This test checks parsing of menuitem tag which is a self closing tag with no end tag.");
9 shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem>");
10 shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id=\"first_item\"><menuitem id=\"second_item\">");
11 shouldBeNull("document.getElementById('first_item').firstChild");
12 shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.getElementById('second_item')");
13 </script>