We're allowing a form of document.write that can add elements in and
around the static structure, but cannot affect the static structure, so
<p><script>document.write('</p><p>Foo');</script>Bar</p>
would yield
<p>Bar</p><p>Foo</p>
where the static structure is the same, instead of what normal
document.write does:
<p></p><p>FooBar</p>http://codereview.appspot.com/115062
