W3C home > Mailing lists > Public > www-style@w3.org > April 1998

IE4's handling of escape characters in CSS class names

From: Jonas Salling <salling@cooper.xanthus.se>
Date: Thu, 16 Apr 1998 14:23:24 +0100
Message-Id: <98Apr16.154508gmt+0100.28761-1@mimer.upnet.se>
To: <www-style@w3.org>
Correct me if I'm wrong, but IE4 may have a problem with escaped characters
is class names.

Consider the following HTML/CSS document:

-------------------

<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<HTML>
<HEAD>
<TITLE>Title</TITLE>
<STYLE TYPE="TEXT/CSS" >
span.My\0020Style {
 font-family: "Arial", sans-serif;
 font-weight: bold;
}
</STYLE>
</HEAD>
<BODY>
<P>a <SPAN class="My Style" >b</SPAN> c
</BODY>
</HTML>

--------------------

In IE4 (Windows) the rule isn't matched, so "a", "b", and "c" all look the
same.

BTW: I've tried variants like class="My\0020Style" to no avail.

Am I missing something here (Håkon, Bert)? Is there a workaround (Chris
Wilson)?

--
salling@xanthus.se
Senior Software Engineer
Xanthus' iWrite
Received on Thursday, 16 April 1998 09:27:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT