Click here to get back home

When did IE stop recognizing entity references without ";"?

 HomeNewsGroups | Search

comp.infosystems.www.authoring.html - discuss HTML authoring here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
When did IE stop recognizing entity references without ";"? Jukka K. Korpela 10-11-2005
Posted by Jukka K. Korpela on October 11, 2005, 10:51 am
Please log in for more thread options


I noticed that Internet Explorer (6.0, on Win XP SP 2, all fixes
installed) incorrectly renders e.g.
&harr &euro &Omega
literally and not as characters denoted by the entities, but if a
semicolon is appended to each of the entity references, they work.

I'm pretty sure that previous versions of IE rendered them by the
specifications. I first thought this has something to do with XML (i.e.
maybe IE pretends to play a little bit of XML game when processing HTML,
even when I serve it as text/html and use an HTML 4.01 DOCTYPE). But on
closer look, I notice that
&auml &eacute
work correctly.

It seems that ISO Latin 1 entities work without a semicolon, newer
entities don't. Am I mistaken, i.e. was this always the case on IE?

(Of course, it has always been recommendable to use the terminating
semicolon in entity references, but it is not required by SGML, hence by
classic HTML rules, when the reference is followed by a character that
is not a name character, e.g. by a space. There must be _lots_ of legacy
documents that play fast with entity references without semicolons.)

Posted by Leif K-Brooks on October 11, 2005, 8:00 am
Please log in for more thread options


Jukka K. Korpela wrote:
show/hide quoted text

Internet Explorer 5.5 seems to behave the same way.

Posted by Els on October 11, 2005, 10:07 am
Please log in for more thread options


Leif K-Brooks wrote:

show/hide quoted text

Mine too, as does my IE4.0. But I reckon it maybe due to those being
installed on WinXP with SP2. For a real test, you should look at an
installation on Win98 or Win95 I think.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Posted by David Ross on October 11, 2005, 6:41 pm
Please log in for more thread options


"Jukka K. Korpela" wrote:
show/hide quoted text

Section 5.3 of the HTML 4.01 specification says:
"Note. In SGML, it is possible to eliminate the final ";" after a
character reference in some cases (e.g., at a line break or
immediately before a tag). In other circumstances it may not be
eliminated (e.g., in the middle of a word). We strongly suggest
using the ";" in all cases to avoid problems with user agents that
require this character to be present."

Thus, the absence of a semi-colon is not necessarily wrong even if
it is contrary to a strong suggestion to always have the
semi-colon.

--

David E. Ross
show/hide quoted text

I use Mozilla as my Web browser because I want a browser that
show/hide quoted text

Posted by Lachlan Hunt on October 16, 2005, 1:13 am
Please log in for more thread options


Jukka K. Korpela wrote:
show/hide quoted text

Support in IE actually looks a little worse than that. It is, indeed,
as you mentioned, IE only supports ISO-8859-1 entity references without
the semi-colon, plus &amp, &lt, &gt and &quot from the markup
significant category. All others are only supported with the semi-colon.

However, it also fails to support any hex character reference without
the semi-colon, but does support numeric (decimal) character references
just fine with or without.

See the tests:
http://lachy.id.au/dev/markup/tests/html401/charref/syntax

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox

Similar ThreadsPosted
Entity References October 11, 2007, 11:48 pm
Entity reference Difference? July 27, 2007, 3:47 pm
Browser support for internal entity definitions April 4, 2006, 5:22 pm
HTML5 and XHTML 1.1+ MUST Stop for Now June 18, 2007, 12:25 pm
Stop text from wrapping in span September 28, 2005, 2:51 am
How to stop directory listing a folder January 22, 2006, 2:51 am
STOP what you’re doing - It doesn’t work! PQ29 July 28, 2006, 5:29 pm
STOP what you’re doing - It doesn’t work! 5YFN July 29, 2006, 1:35 pm
IE Explorer wont' stop rendering tags September 4, 2004, 7:39 am
Guest-book page getting spam, how can I stop this? July 6, 2006, 4:42 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy