Re: For review: Character encodings in HTML and CSS

Leif Halvard Silli scripsit:

> (1) It should be mentioned that in SGML based mark-up, such as HTML4, 
> one may omit the ";" in NCRs. All the big 6 (IE, Firefox, Opera, 
> Webkit, Konqueror, Chrome [assuming it is like Webkit]) desktop 
> browsers supports this _inside attributes_.   (I have a quite thorough 
> test document here: <http://målform.no/ncr-test/> ) They also all 
> support it for text, except that IE has an exception when it comes to 
> NCRs directly in text: Then, for hex NCRs, IE requires semicolons, 
> while for decimal NCRs it does not require it. [IE got support for hex 
> NCRs later on, didn't it? Must be a bug ... !] So one could give the 
> usage advice that is "better" and simpler to use the semicolon than to 
> avoid it. But still tell that it is permitted to drop it. (My view is 
> that it should be permitted in HTML5 too.) Another part of the advice 
> could be that it is safer - and more justified - to use inside machine 
> readable attributes than inside human readable text.

On the contrary, I would not document that you can drop it, particularly
when you can't always.

-- 
Henry S. Thompson said, / "Syntactic, structural,               John Cowan
Value constraints we / Express on the fly."                 cowan@ccil.org
Simon St. Laurent: "Your / Incomprehensible     http://www.ccil.org/~cowan
Abracadabralike / schemas must die!"

Received on Wednesday, 10 February 2010 07:39:19 UTC