about summary refs log blame commit diff stats
path: root/test/js/reflect.html
blob: 45debe3990ca6c69de32b88b3a7db03a08c6a531 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                      
<!doctype html>
<div id=abc>Fail</div>
<a class=claz target="abcd">test test</a>
<script>
(function() {
	let x = document.getElementById("abc")
	let a = document.getElementsByTagName("a")[0];
	if (a.target != "abcd") return;
	a.target = "defg";
	if (a.target != "defg") return;
	if (a.relList != "") return;
	a.relList = "...";
	if (a.relList != "...") return;
	if (a.className != "claz") return;
	x.textContent = "Success";
	a.remove(); /* ignore target... */
})()
</script>