You are here: Re: HTML Space Rendering in IE7 « HTML « IT news, forums, messages
Re: HTML Space Rendering in IE7

Posted by Ed Mullen on 01/31/07 01:19

Jukka K. Korpela wrote:
> Scripsit Dan:
>
>> I saw some code like "&#x20&#x20&#x20&#x20", which leaves out the
>> semicolon; it's a good idea to use the semicolon even if in some cases
>> (maybe this one) it's permissible to leave it out.
>
> It's a particularly good idea because the authors of IE 7 decided to
> make it even less HTML 4.01 conformant than it used to be in this
> respect. By all HTML specifications up to and including HTML 4.01, you
> can omit the REFC, reference close (that's SGML jargon for the semicolon
> here), whenever the character reference is not followed by a name
> character. And "&" ain't no name character by HTML rules. XHTML changes
> this by making the semicolon required, and IE 7, madly enough, decided
> to follow suit - despite it's unwillingness to support XHTML! As if this
> were not mad enough, IE 7 imposes the rule on some types of character or
> entity references only.
>
> To maintain mental sanity, thus, close your references with the magic
> semicolon. Too bad there are probably millions of pages that lack such
> semicolons; for no good reason, IE 7 decided to break them.
>
>> Why encode spaces anyway?
>
> Beats me. To participate in an HTML obfuscation contest? :-)

Oooh! Fabulous! A new acronym is born: HOC = HTML Obfuscation
Contest!!! Can I play?

Nah, never mind. I'm already confused, no need to formalize it.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
I want to die in my sleep like my grandfather did, not screaming and
yelling like the passengers in his car.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация