aboutsummaryrefslogtreecommitdiffstats
path: root/test/js/element.html
blob: cdbd91f765d8125b12a4f70521db90e0b89b8f7c (plain) (blame)
1
2
3
4
5
6
7
8
9
<!doctype html>
<title>Element test</title>
<div id=x>Fail</div>
<script src=asserts.js></script>
<script>
const x = document.getElementById("x");
assert(x.localName == "div");
x.textContent = "Success";
</script>