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:
parent
5f795dbc27
commit
5fe7ef2a94
25
test/js/assert/fragment.firstChild.html
Normal file
25
test/js/assert/fragment.firstChild.html
Normal 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>
|
@ -75,6 +75,7 @@ took = [
|
||||
'eventListener.html',
|
||||
'fetch.html',
|
||||
'fragment.appendChild.html',
|
||||
'fragment.firstChild.html',
|
||||
'fragment.getElementsByTagName.html',
|
||||
'fragment.hasChildNodes.html',
|
||||
'keyboardEvent.html',
|
||||
|
Loading…
Reference in New Issue
Block a user