mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[test] element.remove
This commit is contained in:
parent
2735f29b21
commit
e8523fc1bf
9
test/ecmascript/assert/element.remove.html
Normal file
9
test/ecmascript/assert/element.remove.html
Normal file
@ -0,0 +1,9 @@
|
||||
<html><body><div id="div"><p id="demo">aaa</p>BBB</div>
|
||||
<script>
|
||||
console.error("element.remove.html");
|
||||
document.getElementById('demo').remove();
|
||||
console.assert(document.getElementById('div').outerHTML === '<div id="div">BBB</div>', document.getElementById('div').outerHTML);
|
||||
console.exit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -66,6 +66,7 @@ took = [
|
||||
'element.previousSibling.html',
|
||||
'element.querySelectorAll.html',
|
||||
'element.querySelector.html',
|
||||
'element.remove.html',
|
||||
'element.setAttribute.html',
|
||||
'element.textContent.html',
|
||||
#'event.html',
|
||||
|
Loading…
Reference in New Issue
Block a user