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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/link.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Selector: pseudo-classes (:link)</title>
4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org" id=link1>
5 <link rel=help href="https://html.spec.whatwg.org/multipage/#pseudo-classes" id= link2>
6 <link rel=stylesheet href="../../../../../../resources/testharness.css" id=link3 >
7 <script src="../../../../../../resources/testharness.js"></script>
8 <script src="../../../../../../resources/testharnessreport.js"></script>
9 <script src="utils.js"></script>
10 <div id="log"></div>
11 <a id=link4></a>
12 <area id=link5></area>
13 <link id=link6></link>
14 <a href="http://www.w3.org" id=link7></a>
15 <area href="http://www.w3.org" id=link8></area>
16 <link href="http://www.w3.org" id=link9></link>
17 <a href="http://[" id=link10></a>
18
19 <script>
20 testSelector(":link", ["link1", "link2", "link3", "link7", "link8", "link9", " link10"], "Only <a>s, <area>s and <link>s that have a href attribute match ':lin k'");
21
22 document.getElementById("link9").removeAttribute("href");
23 testSelector(":link", ["link1", "link2", "link3", "link7", "link8", "link10"], "':link' doesn't match elements whos href attribute has been removed");
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698