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

Unified Diff: LayoutTests/fast/dom/HTMLDocument/object-by-name-or-id.html

Issue 50453004: Finding an <object> element by name only works it has no children other than <param> elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unnecessary include Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLDocument/object-by-name-or-id.html
diff --git a/LayoutTests/fast/dom/HTMLDocument/object-by-name-or-id.html b/LayoutTests/fast/dom/HTMLDocument/object-by-name-or-id.html
index fb639fb0c89b90914d8afa3e0cd39f1b5e4268e3..23ae63280bf23d6cc06cc0b6661d847821e577db 100644
--- a/LayoutTests/fast/dom/HTMLDocument/object-by-name-or-id.html
+++ b/LayoutTests/fast/dom/HTMLDocument/object-by-name-or-id.html
@@ -1,8 +1,7 @@
<body>
<p>This tests when object elements are accessible by name or id directly as properties of the
-document object. IE allows this only if the object has not child nodes other than param and
-whitespace anonymous text. A PASS result means that behavior matches IE. WebKit&rsquo;s results for comments differ.
+document object. A PASS result means that behavior matches IE and Firefox.
</p>
<hr>
@@ -52,18 +51,18 @@ print("By name:<br>");
testProperty("no children", "object1", true);
testProperty("param", "object2", true);
testProperty("param and whitespace", "object5", true);
-testProperty("param and empty comment", "object9", false);
-testProperty("param and non-empty comment", "object11", false);
-testProperty("param and text", "object6", false);
-testProperty("param and img", "object13", false);
+testProperty("param and empty comment", "object9", true);
+testProperty("param and non-empty comment", "object11", true);
+testProperty("param and text", "object6", true);
+testProperty("param and img", "object13", true);
print("<br>By id:<br>");
testProperty("no children", "object3", true);
testProperty("param", "object4", true);
testProperty("param and whitespace", "object8", true);
-testProperty("param and empty comment", "object10", false);
-testProperty("param and non-empty comment", "object12", false);
-testProperty("param and text", "object7", false);
-testProperty("param and img", "object14", false);
+testProperty("param and empty comment", "object10", true);
+testProperty("param and non-empty comment", "object12", true);
+testProperty("param and text", "object7", true);
+testProperty("param and img", "object14", true);
</script>
-</body>
+</body>

Powered by Google App Engine
This is Rietveld 408576698