diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-21 18:09:31 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-21 18:09:31 +0000 |
commit | e3c906a74dc846966b107dc35512b9ff06ba29c0 (patch) | |
tree | bc25a3ee331f75e5e281ac51a18d9bad4e88111e /html/inner.html | |
parent | 5d6ae00155ab3af3b05f9c6a6c687861a5dc4293 (diff) | |
download | netsurf-test-e3c906a74dc846966b107dc35512b9ff06ba29c0.tar.gz netsurf-test-e3c906a74dc846966b107dc35512b9ff06ba29c0.tar.bz2 |
Monkey: Add innerHTML test
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'html/inner.html')
-rw-r--r-- | html/inner.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/html/inner.html b/html/inner.html new file mode 100644 index 0000000..7d12319 --- /dev/null +++ b/html/inner.html @@ -0,0 +1,14 @@ +<html><head><title>Inner</title> + + <style> + h1 { visibility: hidden; } + div#magic > h1 { visibility: visible; } + </style> + </head> + <body> + <div id="magic"></div> + </body> + <script> + document.getElementById("magic").innerHTML = "<h1>innerHTML worked</h1>"; + </script> +</html> |