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

Re: Error recovery

From: Liam R E Quin <liam@w3.org>
Date: Sat, 17 Nov 2012 17:05:43 -0500
To: Uche Ogbuji <uche@ogbuji.net>
Cc: "public-microxml (public-microxml@w3.org)" <public-microxml@w3.org>
Message-ID: <1353189943.4860.270.camel@localhost.localdomain>
On Sat, 2012-11-17 at 13:27 -0700, Uche Ogbuji wrote:

> > (a) <e a="x"/>, or
> >
> > (b) <e a="x/">

> I prefer (a) since it's the likeliest interpretation of the author's
> intention.

<p><a href=/socks/>more interesting articles</a></p>

(a) is not unreasonable; a better implementation would look ahead and
find the </a>, although in HTML one could perhaps omit the </a> because
of the </p> and have the "right thing" happen, because of the
domain-specific knowledge in the parser. (b) is the right answer here of

Since MicroXML is/was aimed at Web usage, I think (b) the better choice,
*or* build-in to the parser a list of empty HTML elements and use (a)
for those and (b) for the rest.


Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of "Beginning XML", Wrox, Summer 2012
Received on Saturday, 17 November 2012 22:06:45 UTC

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