Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Side by Side Diff: LayoutTests/fast/dom/HTMLAnchorElement/get-text.html

Issue 272693002: Make HTMLAnchorElement.text getter behave according to specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLAnchorElement/get-text-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipa ge/text-level-semantics.html#dom-a-text">
5 <script src="../../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests that HTMLAnchorElement.text returns the same value as the tex tContent attribute.");
10
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");
15
16 shouldBeEqualToString('a.text', 'ab');
17 shouldBeEqualToString('a.textContent', 'ab');
18 </script>
19 </body>
20 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLAnchorElement/get-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698