| Index: LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/link.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/link.html b/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/link.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6d44a236de82707eaa203898023e93b3f7622581
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/link.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<meta charset=utf-8>
|
| +<title>Selector: pseudo-classes (:link)</title>
|
| +<link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org" id=link1>
|
| +<link rel=help href="https://html.spec.whatwg.org/multipage/#pseudo-classes" id=link2>
|
| +<link rel=stylesheet href="../../../../../../resources/testharness.css" id=link3>
|
| +<script src="../../../../../../resources/testharness.js"></script>
|
| +<script src="../../../../../../resources/testharnessreport.js"></script>
|
| +<script src="utils.js"></script>
|
| +<div id="log"></div>
|
| +<a id=link4></a>
|
| +<area id=link5></area>
|
| +<link id=link6></link>
|
| +<a href="http://www.w3.org" id=link7></a>
|
| +<area href="http://www.w3.org" id=link8></area>
|
| +<link href="http://www.w3.org" id=link9></link>
|
| +<a href="http://[" id=link10></a>
|
| +
|
| +<script>
|
| + testSelector(":link", ["link1", "link2", "link3", "link7", "link8", "link9", "link10"], "Only <a>s, <area>s and <link>s that have a href attribute match ':link'");
|
| +
|
| + document.getElementById("link9").removeAttribute("href");
|
| + testSelector(":link", ["link1", "link2", "link3", "link7", "link8", "link10"], "':link' doesn't match elements whos href attribute has been removed");
|
| +</script>
|
|
|