blob: 9b2ed4cb98aa7004ea795a8ca315247054a59ff0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!doctype html>
<div id=abc>Fail</div>
<a class=claz target="abcd">test test</a>
<script src=asserts.js></script>
<script>
const x = document.getElementById("abc")
const a = document.getElementsByTagName("a")[0];
assert_equals(a.target, "abcd");
a.target = "defg";
assert_equals(a.target, "defg");
assert_equals(a.relList + "", "");
a.relList = "...";
assert_equals(a.relList + "", "...");
assert_equals(a.className, "claz");
x.textContent = "Success";
a.remove(); /* ignore target... */
</script>
|