Re: Error recovery

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 UTC