[Bug 10901] Use same parsing for HTML <script> and SVG <script>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10901

--- Comment #5 from Adam Barth <w3c@adambarth.com> 2010-10-01 01:06:45 UTC ---
> What prevents document.write() from inside SVG-in-HTML scripts from working
> right now? I don't see how the parsing model affects the runtime behavior here?

The spec whitelists the points at which document.write works by talking about
saving the current insertion point.  It's the same reason document.write
doesn't work for other synchronous script execution during parsing.

> One way to reduce the risk would be to only allow <![CDATA[ in the beginning of
> the <script>-contents, before any non-whitespace characters have been parsed.
> Though that doesn't solve the problem Adam high-lights, of course.

To be clear, I meant that we should study various corpuses of web content to
see what's workable from a compatibility standpoint.  It should be easy to
assess the compat impact of this change using grep.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 1 October 2010 01:06:48 UTC