W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2006

[whatwg] ' in text/html

From: Henri Sivonen <hsivonen@iki.fi>
Date: Tue, 25 Apr 2006 13:00:07 +0300
Message-ID: <98C55C78-B628-467C-8909-6B78B244D659@iki.fi>
On Mar 11, 2006, at 02:21, Ian Hickson wrote:

> On Wed, 26 Oct 2005, Simon Pieters wrote:
>>
>> Should "&apos;" be a valid charater reference in text/html? If  
>> not, what
>> would be correct error handling?
>
> I went with making it valid, since it's valid in XML.

That's problematic, because allowing it as a conforming entity  
reference does not add any expressiveness to the language but makes  
conformance checking less useful as an authoring aid (because &apos;  
fails in IE and such failure could be trivially avoided).

I think I'm going to emit a warning even if &apos; is conforming.

I am uncomfortable with &LT;, &GT;, &AMP;, &QUOT; and &COPY; on  
aesthetic grounds, but at least they work interoperably.

By the way, the handling of these entities is currently the only  
special case in my parser that varies depending on the doctype (HTML  
4.01 vs. HTML5).

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
Received on Tuesday, 25 April 2006 03:00:07 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC