3 <style id=
"link1">span { margin:
1px; }
</style>
4 <style id=
"link2"></style>
5 <script src=
"../../resources/js-test.js"></script>
7 <body style=
"margin: 1px">
8 <div id=
"testElements">
9 <input type=
"text" id=
"element0" name=
"foo">
10 <input type=
"text" id=
"element1" name=
"bar">
13 description("This test ensures the collection item obtained by named property getter is overridden by object's own property.");
15 shouldBe("document.all.foo", "document.getElementById('element0')");
17 shouldBe("document.all.foo", "1");
19 shouldBe("document.styleSheets.link1", "document.styleSheets[0]");
20 document
.styleSheets
.link1
= 1;
21 shouldBe("document.styleSheets.link1", "1");
23 shouldBe("document.body.attributes.style", "document.body.attributes['style']");
24 document
.body
.attributes
.style
= 1;
25 shouldBe("document.body.attributes.style", "1");
28 document
.getElementById('testElements').style
.display
= 'none';
30 var successfullyParsed
= true;