1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00
elinks/test/js/assert/fragment.firstChild.html
2024-10-13 17:38:24 +02:00

26 lines
581 B
HTML

<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>