SVG2: drop xmlns requirement on svg root?

 From https://svgwg.org/svg2-draft/struct.html#NewDocumentOverview:

[[
In all cases, for compliance with the Namespaces in XML Recommendation  
[XML-NS], an SVG namespace declaration must be provided so that all SVG  
elements are identified as belonging to the SVG namespace.
]]

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? This is already allowed when inline in html[2].

As another data point, the w3c validator claims "<svg/>" is valid SVG 1.1  
(presumably because the DTD doesn't say that the xmlns attribute is  
required).

Just a thought...

[1] http://www.w3.org/Graphics/SVG/WG/wiki/XLink
[2] http://jsfiddle.net/HAPLF/1/

-- 
Erik Dahlstrom, Web Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group

Received on Tuesday, 1 April 2014 16:15:29 UTC