W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

Re: [whatwg] SVG cloning elements from HTML5

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 26 Jun 2014 16:11:50 +0000 (UTC)
To: Robert O'Callahan <robert@ocallahan.org>
Message-ID: <alpine.DEB.2.00.1406261609210.1057@ps20323.dreamhostps.com>
Cc: www-svg <www-svg@w3.org>, WHATWG List <whatwg@whatwg.org>, "Tab Atkins Jr." <jackalmage@gmail.com>
On Tue, 24 Jun 2014, Robert O'Callahan wrote:
> <svg>
> <span id="s"></span>
> <div id="i"></div>
> the elements "s" and "i" are put in the HTML namespace already.

As siblings of the <svg> element, though, not descendants.

This was required to get some level of compatibility with deployed content 
while still allowing <svg> in HTML. There was content out there that, for 
reasons that defeat me, had <svg> start tags (but not end tags). If we had 
not introduced this limited trap door out of the foreign lands (it's a 
hard-coded list of tag names that bail out in this way), it would have 
caused the pages to be blank from the <svg> start tag to the end.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 26 June 2014 16:12:19 UTC

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