[Bug 4476] Auto-Detect fallback document type based on root element

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





------- Comment #7 from ot@w3.org  2007-05-07 19:27 -------
Some recent improvements to the handling of XML documents have made this case
less acute:

e.g
http://qa-dev.w3.org/wmvs/HEAD/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4476-svg_nodoctype.svg;ss

The example:
http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4476-svg_nodoctype.svg;ss
* is served with an XML mime type
* does not have an <html> root element
=> and is therefore marked as being well-formed XML

The idea of falling back to an SVG doctype based on svg root element still
stands.

Note that in the case of direct input, sending something like:
<svg xmlns="http://www.w3.org/2000/svg"/>
 the validator will remain confused, for lack of a good way (i.e mediat type)
to know if the document is XML.

Received on Monday, 7 May 2007 19:27:22 UTC