W3C home > Mailing lists > Public > public-microxml@w3.org > November 2012

Re: Error recovery

From: David Carlisle <davidc@nag.co.uk>
Date: Sat, 17 Nov 2012 10:12:28 +0000
Message-ID: <50A7630C.6020606@nag.co.uk>
To: public-microxml@w3.org
On 17/11/2012 02:53, James Clark wrote:
> I have been writing a parser that does error recovery.
> I have a case where I can't make up my mind which behaviour I prefer
> and I would like to get this group's input.
> Do you prefer
> <e a=x/>
> to be treated as
> (a) <e a="x"/>, or
> (b) <e a="x/">
> ?
> James

I don't think it matters too much so long as it's a documented behaviour.

My personal inclination would be (a) but html5 (as often the case:-)
makes the opposite choice and does (b).

There is an argument that doing what html5 does causes the least amount
of confusion overall, but on the other hand if you do what html5 does in
all cases you are not speccing an xml error recovery, just implementing
an html5 parser.

Received on Saturday, 17 November 2012 10:12:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:12:12 UTC