| Index: LayoutTests/fast/dom/attribute-accessor.html
|
| diff --git a/LayoutTests/fast/dom/attribute-accessor.html b/LayoutTests/fast/dom/attribute-accessor.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..93734623be87ba1eb4e23a9e798553eb333a2a29
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/attribute-accessor.html
|
| @@ -0,0 +1,13 @@
|
| +<body>
|
| +<script>
|
| +e = document.createElement("div");
|
| +console.log(e.children instanceof HTMLCollection); // true
|
| +for (i in e.children) {
|
| + console.log(i); // length, item, namedItem
|
| +}
|
| +console.log(e.children.__proto__.hasOwnProperty("length")); // true
|
| +console.log(e.children.__proto__.hasOwnProperty("item")); // true
|
| +console.log(e.children.item(0)); // null (i.e., does not throw)
|
| +console.log(e.children.length); // Uncaught TypeError: Illegal invocation
|
| +</script>
|
| +</body>
|
|
|