1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[js] test case for new Document

This commit is contained in:
Witold Filipczyk 2024-11-14 15:28:02 +01:00
parent 211f69c801
commit 4e13f17d82
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<body>
<script>
function myFunction() {
var doc = new Document;
console.assert(doc.nodeType === 9, 'new doc');
}
console.error('document.new.html');
myFunction();
console.exit();
</script>
</body>
</html>

View File

@ -25,6 +25,7 @@ took = [
'document.images.html',
'document.links.html',
'document.location.href.html',
'document.new.html',
'document.querySelectorAll.html',
'document.querySelector.html',
'domparser.html',