W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

Re: [whatwg] Another issue in 12.2.5.5 parsing tokens in foreign content

From: Michael Day <mikeday@yeslogic.com>
Date: Thu, 04 Jul 2013 10:59:21 +1000
Message-ID: <51D4C8E9.8000609@yeslogic.com>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg@whatwg.org, Adam Barth <w3c@adambarth.com>
Hi Ian,

> The problem is that we can't do (2) in _all_ cases, e.g. innerHTML on an
> <svg> can't possibly break out of the <svg> if it sees one of these tags,
> since that's the "root" of what is being parsed.

Yes, HTML has already lost the composability of parsing that XML and 
other languages have, that's long gone. But that doesn't mean we should 
try to make it even more irregular :)

Currently Firefox, Chrome, and Prince all treat the fragment case the 
same as the whole document case, so we already have interoperable 
behaviour on this issue.

Since the HTML spec is supposed to reflect reality, it seems pointless 
to deliberately introduce an inconsistency in the parsing model that 
requires changes in all user agents to implement.

Best regards,

Michael

-- 
Prince: Print with CSS!
http://www.princexml.com
Received on Thursday, 4 July 2013 00:59:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC