[mythtv] [mythtv-commits] Ticket #3132: Mythweb CSS uses '_' in identifiers, not in CSS syntax, causes Firefox to ignore those styles.

Chris Petersen lists at forevermore.net
Sun Feb 25 20:48:01 UTC 2007

Karl Hegbloom wrote:
> On Sat, 2007-02-24 at 20:22 +0000, MythTV wrote:
>>  fyi, css2 allows underscores just fine.
> No, I am fairly certain that you are mistaken.  Please see the CSS
> grammar specifications at:
>   http://www.w3.org/TR/REC-CSS2/syndata.html#tokenization



In CSS 2.1, identifiers  (including element names, classes, and IDs in
selectors) can contain only the characters [A-Za-z0-9] and ISO 10646
characters 161 and higher, plus the hyphen (-) and the underscore (_);
they cannot start with a hyphen or a digit. They can also contain
escaped characters and any ISO 10646 character as a numeric code (see
next item). For instance, the identifier "B&W?" may be written as
"B\&W\?" or "B\26 W\3F".

> I am curious as to what browser the Mythweb CSS style sheet author is
> testing with?  If those style sheets work for him, then that browser is
> not following the standard, as far as I can tell.

Firefox 1.5 and more recently 2.0 (under linux, if it matters).  Just
for kicks, I fired up Konqueror and it also works fine, and have had
confirmations that aside from some javascript glitches on the index
page, Opera and IE 7 work perfectly, and IE 6 only has issues with
identifiers that *start* with underscore, but has no trouble if the
underscore is in the middle of the name.

Your problems are *not* related to the underscore issue (which, btw,
will be corrected for older versions of IE which do not follow css 2.1).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20070225/67914fa5/attachment.pgp 

More information about the mythtv-dev mailing list