On Tuesday 2014-10-14 05:26 +0100, Simon Sapin wrote:
> >zwarich: On the web, is validity-checking for XML input required?
> 
> I don’t have evidence either way (and the only way to find out might
> be to try it), but it sounds unlikely that real content relies on an
> entire document failing to parse.

Careful here:  XML has two different concepts of document
conformance:  well-formedness (weaker) and validity (stronger).
Browsers today check for well-formedness but do not check for
validity.  (Gecko certainly doesn't check for validity; I don't
think others do either.)  The XML spec distinguishes between
validating processors (which have to check validity against a DTD)
and non-validating processors.  See
http://www.w3.org/TR/xml/#sec-conformance and
http://www.w3.org/TR/xml/#sec-terminology (esp. "fatal error",
"validity constraint", "well-formedness constraint").

-David

-- 
π„ž   L. David Baron                         http://dbaron.org/   𝄂
𝄒   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Attachment: signature.asc
Description: Digital signature

_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to