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

Re: Semicolon after entities

From: David Woolley <forums@david-woolley.me.uk>
Date: Tue, 24 Apr 2007 23:42:19 +0100
Message-ID: <462E87CB.4020003@david-woolley.me.uk>
To: www-html@w3.org

David Dorward wrote:
[ ; mandatory at end of entity reference ]

> It is in XHTML.

Moreover bare & is allowed in neither normal character data nor 
attribute values, so &copy= is a well formedness violation and will 
cause a conforming user agent to abort the document on seeing the 
non-name character.

Not using &amp; for & in href attributes is an error in HTML.  You get 
away with it because of browser error recovery, but you cannot rely on 
this because the number of defined entities may increase, or backwards 
compatibility may result in old entities being recognized.
Received on Tuesday, 24 April 2007 22:53:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:09 GMT