diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-08-15 18:48:46 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-08-15 18:48:46 +0100 |
commit | a3ef5c2c3c448f6ded44b4135a1a745721653230 (patch) | |
tree | 5b9ca648b572d2b0427c7d8d72dcce375a6a301f /test/js/doc-dom2.html | |
parent | c3f9e3d3cea7bddb708fb0c75d9b4ed31e6341d7 (diff) | |
download | netsurf-a3ef5c2c3c448f6ded44b4135a1a745721653230.tar.gz netsurf-a3ef5c2c3c448f6ded44b4135a1a745721653230.tar.bz2 |
fixup jsapi dom interface to include correct html/dom acessor hierachy
Diffstat (limited to 'test/js/doc-dom2.html')
-rw-r--r-- | test/js/doc-dom2.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/js/doc-dom2.html b/test/js/doc-dom2.html new file mode 100644 index 000000000..17a916c81 --- /dev/null +++ b/test/js/doc-dom2.html @@ -0,0 +1,12 @@ +<html> +<head> +<title>DOM getElementById</title> +<link rel="stylesheet" type="text/css" href="tst.css"> +</head> +<body> +<h1 id="heading">Direct DOM element reference</h1> +<p>Before</p> +<script>document.write(document.getElementById("heading").textContent);</script> +<p>Afterwards</p> +</body> +</html> |