After some recent discussion about whether Mozilla's SVG implementation
will render SVG documents that omit the svg namespace declaration, I was
surprised to discover that Batik too accepted this. Isn't this
incorrect behaviour? The relevant code that allows this is in
SAXSVGDocumentFactory.startDocument. Actually, the line that adds the
XLink namespace seems to be ineffectual, but the one for the default
namespace does work to allow a document that looks like this to be
rendered:
<svg>
<circle cx="100" cy="100" r="100"/>
</svg>
If the DTD that predeclares the namespace were included, this would be
acceptable.
So my question is: should Batik's behaviour be changed? If so, should
this content be disallowed completely (quite possibly breaking existing
content)? This would be consistent with the general strictness of
Batik. Or, should this content display some sort of warning (possibly
like the little yellow bar that appears in Firefox when popups are
blocked or if an appropraite plugin is not available)?
--
e-mail : cam (at) mcc.id.au icq : 26955922
web : http://mcc.id.au/ msn : cam-msn (at) aka.mcc.id.au
office : +61399055779 jabber : heycam (at) jabber.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]