mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
improve tests
This commit is contained in:
parent
5496a60431
commit
8f08f820f4
@ -4,9 +4,13 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="tst.css">
|
<link rel="stylesheet" type="text/css" href="tst.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="heading">Direct DOM element reference</h1>
|
<h1>DOM getElementById element reference</h1>
|
||||||
<p>Before</p>
|
<p>This shows the text content of an element obtained using <a href="http://dom.spec.whatwg.org/#dom-document-getelementbyid">document.getElementById</a></p>
|
||||||
<script>document.write(document.getElementById("heading").textContent);</script>
|
<p>Referenced text</p>
|
||||||
<p>Afterwards</p>
|
<p id="reftext">DOM getElementById element referenced test text</p>
|
||||||
|
<p>Inserted text</p>
|
||||||
|
<p><script>document.write(document.getElementById("reftext").textContent);</script></p>
|
||||||
|
<p>After inserted text</p>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<h2>Document write tests</h2>
|
<h2>Document write tests</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="inline-doc-write-simple.html">Simple docuemnt write</a></li>
|
<li><a href="inline-doc-write-simple.html">Simple document write</a></li>
|
||||||
<li><a href="noscript-inline-doc-write.html">Script within inline script document write with noscript alternative</a></li>
|
<li><a href="noscript-inline-doc-write.html">Script within inline script document write with noscript alternative</a></li>
|
||||||
<li><a href="inline-doc-write.html">Script within inline script</a></li>
|
<li><a href="inline-doc-write.html">Script within inline script</a></li>
|
||||||
<li><a href="sync-script.html">External syncronous script</a></li>
|
<li><a href="sync-script.html">External syncronous script</a></li>
|
||||||
|
Loading…
Reference in New Issue
Block a user