1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

[test] fragment.firstChild.html

This commit is contained in:
Witold Filipczyk 2024-10-13 17:38:24 +02:00
parent 5f795dbc27
commit 5fe7ef2a94
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<html>
<body>
<a href="/home">BBB</a>
<b dir="ltr" id="aaaa" class="a b c">bbb</b>
<a dir="rtl" id="blabla" href="/"><b id="b1">AAA</b><u dir="auto" id="ble" title="test">UUU</u>AAAAAAA
</a>
<a id="bb" dir="blalalala" href="/">BB</a>
<script>
function aa()
{
var d = document.createDocumentFragment();
var e = document.createElement('b');
e.id = 'aaa';
d.appendChild(e);
var x = d.firstChild.id;
console.assert(x === 'aaa', 'aaa');
}
console.error('fragment.firstChild.html');
aa();
console.exit();
</script>
<button onclick="return aa()">Click me!</button>
</body>
</html>

View File

@ -75,6 +75,7 @@ took = [
'eventListener.html',
'fetch.html',
'fragment.appendChild.html',
'fragment.firstChild.html',
'fragment.getElementsByTagName.html',
'fragment.hasChildNodes.html',
'keyboardEvent.html',