mirror of
https://github.com/RGBCube/serenity
synced 2025-10-13 16:32:06 +00:00

This was pleasantly simple! We don't have an ElementWrapper yet, so it just returns a NodeWrapper, but it still basically works. :^)
11 lines
198 B
HTML
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>
|