mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 12:12:35 +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">
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="heading">Direct DOM element reference</h1>
|
||||
<p>Before</p>
|
||||
<script>document.write(document.getElementById("heading").textContent);</script>
|
||||
<p>Afterwards</p>
|
||||
<h1>DOM getElementById element reference</h1>
|
||||
<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>
|
||||
<p>Referenced text</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>
|
||||
</html>
|
||||
|
@ -10,7 +10,7 @@
|
||||
</ul>
|
||||
<h2>Document write tests</h2>
|
||||
<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="inline-doc-write.html">Script within inline script</a></li>
|
||||
<li><a href="sync-script.html">External syncronous script</a></li>
|
||||
|
Loading…
Reference in New Issue
Block a user