Re: Semicolon after entities

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 & 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 UTC