1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 16:32:06 +00:00
serenity/Base/home/anon/www/dom.html
Andreas Kling b5a22fc408 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. :^)
2020-03-14 13:25:40 +01:00

11 lines
198 B
HTML

<!DOCTYPE>
<html>
<head></head>
<body>
<div id="foo"></div>
<script>
var e = document.getElementById("foo");
alert(e.nodeName);
</script>
</body>
</html>