mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibWeb: Implement Document.getElementById()
This was pleasantly simple! We don't have an ElementWrapper yet, so it just returns a NodeWrapper, but it still basically works. :^)
This commit is contained in:
parent
1c406294fc
commit
b5a22fc408
3 changed files with 14 additions and 3 deletions
|
@ -4,9 +4,8 @@
|
|||
<body>
|
||||
<div id="foo"></div>
|
||||
<script>
|
||||
alert(document.nodeName);
|
||||
//var e = document.getElementById("foo");
|
||||
//alert(e.nodeName);
|
||||
var e = document.getElementById("foo");
|
||||
alert(e.nodeName);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue