1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[assert] document.documentElement

This commit is contained in:
Witold Filipczyk 2024-04-12 19:23:49 +02:00
parent 1445d613c6
commit 305664eaf9

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<body id="test">
<button onclick="myFunction()">Try it</button>
<a href="/">/</a>
<a href="/home">/home</a>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.documentElement.innerHTML;
console.assert(x.startsWith('<HEAD></HEAD><BODY id="test">'), 'head was added');
}
console.error('document.documentElement.html');
myFunction();
console.exit(0);
</script>
</body>
</html>