W3C home > Mailing lists > Public > www-html@w3.org > April 2007

Re: Semicolon after entities

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sat, 28 Apr 2007 09:49:54 +0300 (EEST)
To: www-html@w3.org
Message-ID: <Pine.GSO.4.64.0704280939410.20842@mustatilhi.cs.tut.fi>

On Sat, 28 Apr 2007, Lachlan Hunt wrote:

> if Lynx supports entity 
> references that are not defined in HTML4, and not supported by any other 
> browser either, that's a bug in Lynx.

For some odd reason, Lynx displays "&par;" as "PP". It's not the only 
browser that recognizes references for entities not defined in HTML 4.

It's not a bug, because there is no mandatory error processing. When a 
browser sees, say, &emdash; or &MDASH;, it may - as far as HTML 4 
specifications are concerned - apply any error handling it likes, 
including implicit fix to &mdash;. We might even argue that this is the 
_best_ error processing strategy in practice, since that's probably what 
the author meant, and if it isn't, we have little odds of achieving 
anything better using some other error handling. (I mildly disagree with 
this argument of mine, but let's not go into this deeper.)

Supporting "proprietary" entities - i.e. something that doesn't consist of 
guessing which of the standard entities was meant - is pragmatically 
different, but not formally.

Besides, &par; or &emdash; isn't really an error by SGML rules, which is 
what HTML 4 is nominally based on. They are just undefined. :-)

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Saturday, 28 April 2007 06:49:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:15 UTC