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

Re: Error recovery

From: Liam R E Quin <liam@w3.org>
Date: Fri, 16 Nov 2012 22:41:04 -0500
To: James Clark <jjc@jclark.com>
Cc: public-microxml@w3.org
Message-ID: <1353123664.4860.217.camel@localhost.localdomain>
On Sat, 2012-11-17 at 09:53 +0700, James Clark wrote:

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

There's no single answer. Web browsers do it based on knowledge of the
attribute - a URI is more likely to have / as part of the attrbute
value, e.g.
<a href=images/>pictures</a>

To help emphasize the interoperability nightmare of undocumented error
recovery, you could just have the parser flip a coin and make a random
decision.

Liam

-- 
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
Received on Saturday, 17 November 2012 03:42:05 GMT

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