- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 1 Apr 2014 09:24:06 -0700
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: www-svg <www-svg@w3.org>
On Tue, Apr 1, 2014 at 9:20 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote: > On 4/1/14 12:14 PM, Erik Dahlström wrote: >> Since in SVG2 we are dropping the requirement for having the xlink:xmlns >> attribute[1], how much of a stretch would it be to also allow xmlns-less >> <svg> root elements? > > So the syntax would just say <svg> but the DOM would have the node in the > SVG namespace, right? Presumably this would be limited to content with the > image/svg+xml MIME type or something? > > The big problem here is that this sounds like it requires some sort of > custom XML parser.... or just not using an XML parser at all for > image/svg+xml. An off-the-shelf XML parser wouldn't be able to produce the > behavior that's being suggested, as far as I can see. Ideally, we just define that SVG is parsed with the HTML parser. Documents with an SVG root would switch into foreign-content mode immediately. ~TJ
Received on Tuesday, 1 April 2014 16:24:56 UTC