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

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

--- Comment #6 from Jonas Sicking <jonas@sicking.cc> 2010-10-01 07:11:16 UTC ---
(In reply to comment #5)
> > 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.

Ah, right. Though I only mentioned parsing changes in my initial proposal,
which wouldn't affect when/how the insertion point is set, I do agree that if
we want to align the processing of HTML-script and SVG-in-HTML-script, then we
should set the insertion point for the latter too.

I don't see any bigger problem with re-entrant document.write in SVG-script,
than in HTML-script. If someone does, please do say so.

-- 
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 07:11:20 UTC