diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2016-02-02 12:19:00 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2016-02-02 12:19:00 +0000 |
commit | 3cc80b6a7d6e926278df56e0005788ab90ae213e (patch) | |
tree | 976eba636c9b0b57767b8b5d5b91868fbb39c5b5 /test/js | |
parent | 18c8cb0f8597e7c3a516032439069eddb13559b7 (diff) | |
download | netsurf-3cc80b6a7d6e926278df56e0005788ab90ae213e.tar.gz netsurf-3cc80b6a7d6e926278df56e0005788ab90ae213e.tar.bz2 |
Add test for document.write() adding a STYLE element.
Diffstat (limited to 'test/js')
-rw-r--r-- | test/js/doc-write-style.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/js/doc-write-style.html b/test/js/doc-write-style.html new file mode 100644 index 000000000..642da0a3b --- /dev/null +++ b/test/js/doc-write-style.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> +<style> +p { color: red; background: #fdd; } +</style> +</head> +<body> +<script> +document.write('<style>p#foo { color: green; background: #dfd; }</style>'); +</script> +<p id="foo">JS makes me green!</p> +</body> +</html> + |