mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 00:09:41 +03:00
15 lines
678 B
HTML
15 lines
678 B
HTML
<html>
|
|
<head>
|
|
<title>DOM previousElementSibling and nextElementSibling reference</title>
|
|
<!-- comment node should be skipped -->
|
|
<link rel="stylesheet" type="text/css" href="tst.css">
|
|
</head>
|
|
<body>
|
|
<h1>DOM previousElementSibling and nextElementSibling reference</h1>
|
|
<!-- comment node should be skipped -->
|
|
<p><b>head.lastElementChild.previousElementSibling:</b> <script>document.write(document.head.lastElementChild.previousElementSibling.textContent);</script></p>
|
|
<!-- comment node should be skipped -->
|
|
<p><b>body.firstElementChild.nextElementSibling:</b> <script>document.write(document.body.firstElementChild.nextElementSibling.textContent);</script></p>
|
|
</body>
|
|
</html>
|