mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[assert] element.hasAttributes
This commit is contained in:
parent
fc5f10c48e
commit
daadb89a33
22
test/ecmascript/assert/element.hasAttributes.html
Normal file
22
test/ecmascript/assert/element.hasAttributes.html
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<a href="/home">BBB</a>
|
||||||
|
<b id="aaaa">bbb</b>
|
||||||
|
<a id="blabla" href="/" rel="nofollow">
|
||||||
|
<b>AAA</b><u id="ble">UUU</u>AAAAAAA
|
||||||
|
</a>
|
||||||
|
<a id="bb" href="/">BB</a>
|
||||||
|
<script>
|
||||||
|
function aa()
|
||||||
|
{
|
||||||
|
var a = document.getElementById('blabla').hasAttributes();
|
||||||
|
console.assert(a, 'True');
|
||||||
|
}
|
||||||
|
|
||||||
|
console.error('element.hasAttributes.html');
|
||||||
|
aa();
|
||||||
|
console.exit(0);
|
||||||
|
</script>
|
||||||
|
<button onclick="return aa()">blabla has attributes</button>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user