Add test for document.write() adding a STYLE element.
This commit is contained in:
parent
18c8cb0f85
commit
3cc80b6a7d
|
@ -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>
|
||||
|
Loading…
Reference in New Issue