Add test for document.write() adding a STYLE element.

This commit is contained in:
Michael Drake 2016-02-02 12:19:00 +00:00
parent 18c8cb0f85
commit 3cc80b6a7d
1 changed files with 15 additions and 0 deletions

View File

@ -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>