summaryrefslogtreecommitdiff
path: root/test/js/dom-element-next_prev_ElementSibling.html
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-11-24 23:32:56 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-11-24 23:32:56 +0000
commit50b7b41ab7c06462517a348b88b644157a1d4852 (patch)
treeea782824c219b41b75deae9c2e2d1be8a1047c12 /test/js/dom-element-next_prev_ElementSibling.html
parent9a1a1209be4461eb3b7ff40eed23aa35ab0c54e2 (diff)
parentec43456e4bf0968bc68b437733199ad2af609c1e (diff)
downloadnetsurf-50b7b41ab7c06462517a348b88b644157a1d4852.tar.gz
netsurf-50b7b41ab7c06462517a348b88b644157a1d4852.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf into chris/frame-scroll
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>