Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/parser/parse-menuitem.html

Issue 2819773002: Change <menuitem> parsing rules to match spec (Closed)
Patch Set: Fix affected layout test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <div id="div"><menuitem></div> 5 <div id="div"><menuitem></menuitem></div>
6 <menu id="menu" type=context><menuitem id="first_item"><menuitem id="second_item "></menu> 6 <menu id="menu" type=context><menuitem id="first_item"></menuitem><menuitem id=" second_item"></menuitem></menu>
7 <script> 7 <script>
8 description("This test checks parsing of menuitem tag which is a self closing ta g with no end tag."); 8 description("This test checks parsing of menuitem tag which has an end tag.");
9 shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem>"); 9 shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem></m enuitem>");
10 shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id =\"first_item\"><menuitem id=\"second_item\">"); 10 shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id =\"first_item\"></menuitem><menuitem id=\"second_item\"></menuitem>");
11 shouldBeNull("document.getElementById('first_item').firstChild"); 11 shouldBeNull("document.getElementById('first_item').firstChild");
12 shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.get ElementById('second_item')"); 12 shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.get ElementById('second_item')");
13 </script> 13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698