Index: third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html b/third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html |
index fa1575d5230b39b62f8bddf17fa070bba784d5dc..6757ece09b9f5909b55ca8c995ecfe08d4bcb3bd 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html |
+++ b/third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html |
@@ -31,6 +31,7 @@ function test() |
var objectHash = new Object(); |
var embedHash = new Object(); |
var intersectionHash = new Object(); |
+ var divElement = document.createElement('div'); |
var object, embed; |
@@ -52,7 +53,7 @@ function test() |
print("[OBJECT, EMBED] share:", "green"); |
var array = new Array(); |
for (var p in intersectionHash) |
- if (typeof document.body[p] == 'undefined') // weed out items shared by all elements |
+ if (typeof divElement[p] == 'undefined') // weed out items shared by all elements |
array.push(p); |
array.sort(); |
array.forEach(print); |
@@ -83,8 +84,8 @@ function test() |
<hr> |
<div id='console'></div> |
-<object class="invisible" id="object"></object> |
-<embed class="invisible" id="embed"></embed> |
+<div><object class="invisible" id="object"></object></div> |
+<div><embed class="invisible" id="embed"></embed></div> |
</body> |
</html> |