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 returns the same value as the textContent attribute.");
11 var div
= document
.createElement('div');
12 div
.innerHTML
= '<a>a<br>b</a>';
13 var a
= div
.firstChild
;
14 shouldBe("a.__proto__", "HTMLAnchorElement.prototype");
16 shouldBeEqualToString('a.text', 'ab');
17 shouldBeEqualToString('a.textContent', 'ab');