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

Re: Error recovery

From: Jeremy H. Griffith <jeremy@omsys.com>
Date: Sat, 17 Nov 2012 00:26:19 -0500
To: public-microxml@w3.org
Cc: James Clark <jjc@jclark.com>
Message-ID: <pc7ea8t6mt1o5a7e6nmpekepm0uht13nb0@4ax.com>
On Sat, 17 Nov 2012 09:53:27 +0700, James Clark <jjc@jclark.com> wrote:

>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/">

I'd be inclined to look ahead for </e> as
the next tag (possibly after other tags>.
If I saw the parent of this one close first,
I'd know for sure it was (a); if I saw </e>
first, I'd know for sure it was (b).

To save time, I'd assume (a) and proceed;
then if I saw </e>, it would be an error,
and I could switch the original one to (b)
to fix both errors.  If I never saw </e>,
then (a) was correct.

HTH!

-- Jeremy H. Griffith, at Omni Systems Inc.
  <jeremy@omsys.com>    http://mif2go.com/
Received on Saturday, 17 November 2012 05:27:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 17 November 2012 05:27:04 GMT