[whatwg] ' in text/html

Ian Hickson ian at hixie.ch
Mon Jun 11 13:34:32 PDT 2007


On Tue, 25 Apr 2006, Henri Sivonen wrote:
> > > 
> > > Should "'" 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 ' fails in IE and 
> such failure could be trivially avoided).

True, but I think having the predefined XML entities be a subset of the 
HTML ones on the long term is better, even if it does cause short-term 
minor pain.


> I think I'm going to emit a warning even if ' is conforming.

That seems reasonable.


> I am uncomfortable with <, >, &, " and © on 
> aesthetic grounds, but at least they work interoperably.

Yeah.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list