summaryrefslogtreecommitdiff
path: root/test/js/dom-element-next_prev_ElementSibling.html
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-11-18 12:59:10 +0000
committerVincent Sanders <vince@kyllikki.org>2012-11-18 12:59:10 +0000
commit99d3633e0348fcff3f99d87696b57a70cbdcaf4d (patch)
tree0531195ed697cb8d6e7d387c9361da9c8075b59a /test/js/dom-element-next_prev_ElementSibling.html
parentbec871152864b1cfb42484505a6622f7f524a405 (diff)
downloadnetsurf-99d3633e0348fcff3f99d87696b57a70cbdcaf4d.tar.gz
netsurf-99d3633e0348fcff3f99d87696b57a70cbdcaf4d.tar.bz2
implement previousElementSibling and nextElementSibling
Diffstat (limited to 'test/js/dom-element-next_prev_ElementSibling.html')
-rw-r--r--test/js/dom-element-next_prev_ElementSibling.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/js/dom-element-next_prev_ElementSibling.html b/test/js/dom-element-next_prev_ElementSibling.html
new file mode 100644
index 000000000..85263cc17
--- /dev/null
+++ b/test/js/dom-element-next_prev_ElementSibling.html
@@ -0,0 +1,14 @@
+<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>