https://bugzilla.wikimedia.org/show_bug.cgi?id=41174

--- Comment #21 from Derk-Jan Hartman <[email protected]> 2012-10-25 
09:53:52 UTC ---
>From my point of view, SVG files can only be hosted on the web if they are
valid XML files. This is because there is only one valid Content-Type for these
files, and that is "image/svg+xml". This declares that the 'downloaded file' is
an XML file, which is also a requirement by by
http://www.w3.org/TR/SVG/conform.html.

Files without xmlns are valid XML files. I think they are even well formed xml.
Per the specification in G2 of the SVG conformance specification, they are
however not valid SVG files because it specifies as a requirement for 'valid':
"Set the attributes xmlns="http://www.w3.org/2000/svg"; and
xmlns:xlink="http://www.w3.org/1999/xlink"; on D's document element", which
these files do not have.

I note however, that for our parser, probably only xmlns is required, not
xmlns:xlink...
Our parser also doesn't trip over files with missing DTD information and that
is a requirement for valid SVG files.

This is all details. In theory we could have our parser retry the file without
namespace information, if the root matches exactly <svg. However, considering
the fact that neither Firefox, Chrome, Safari nor Mac OS X itself are able to
display this file, I'm not sure if that is a good idea.

Are these files right now accepted for upload ?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to