Home | History | Annotate | Download | only in script-tests

Lines Matching full:attributes

15 var attributes = element.attributes;
20 shouldBe("attributes.length", "1");
21 shouldBe("attributes[0]", "attributes.item(0)");
22 shouldBe("attributes.getNamedItem('a')", "attributes.item(0)");
24 shouldBe("attributes.item(0).name", "'a'");
25 shouldBe("attributes.item(0).specified", "true");
26 shouldBe("attributes.item(0).value", "'b'");
27 shouldBe("attributes.item(0).ownerElement.tagName", "'P'");
29 attributes.item(0).value = 'c';
31 shouldBe("attributes.item(0).value", "'c'");
33 attributes.removeNamedItem('a');
35 shouldBe("attributes.length", "0");
39 var attr = element.attributes.item(0);