4 <link rel=
"help" href=
"http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#dom-a-text">
5 <script src=
"../../../resources/js-test.js"></script>
9 description("Tests that HTMLAnchorElement.text can be set.");
11 var a
= document
.createElement("a");
12 shouldBe("a.__proto__", "HTMLAnchorElement.prototype");
14 shouldBeEqualToString("a.textContent", "");
15 shouldBeEqualToString("a.text", "");
17 a
.textContent
= "text1";
18 shouldBeEqualToString("a.textContent", "text1");
19 shouldBeEqualToString("a.text", "text1");
22 shouldBeEqualToString("a.textContent", "text2");
23 shouldBeEqualToString("a.text", "text2");