summaryrefslogtreecommitdiff
path: root/test/js/doc-dom1.html
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-08-15 18:48:46 +0100
committerVincent Sanders <vince@netsurf-browser.org>2012-08-15 18:48:46 +0100
commita3ef5c2c3c448f6ded44b4135a1a745721653230 (patch)
tree5b9ca648b572d2b0427c7d8d72dcce375a6a301f /test/js/doc-dom1.html
parentc3f9e3d3cea7bddb708fb0c75d9b4ed31e6341d7 (diff)
downloadnetsurf-a3ef5c2c3c448f6ded44b4135a1a745721653230.tar.gz
netsurf-a3ef5c2c3c448f6ded44b4135a1a745721653230.tar.bz2
fixup jsapi dom interface to include correct html/dom acessor hierachy
Diffstat (limited to 'test/js/doc-dom1.html')
-rw-r--r--test/js/doc-dom1.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/js/doc-dom1.html b/test/js/doc-dom1.html
new file mode 100644
index 000000000..b7743f4c2
--- /dev/null
+++ b/test/js/doc-dom1.html
@@ -0,0 +1,14 @@
+<html>
+<head>
+<title>Direct DOM element reference</title>
+<link rel="stylesheet" type="text/css" href="tst.css">
+</head>
+<body>
+<h1>Direct DOM element reference</h1>
+<p>head</p>
+<script>document.write(document.head.firstElementChild.textContent);</script>
+<p>body</p>
+<script>document.write(document.body.firstElementChild.textContent);</script>
+<p>after</p>
+</body>
+</html>