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

Michael T. Dean mtdean at thirdcontact.com
Sat Feb 24 18:28:24 UTC 2007


On 02/24/2007 10:44 AM, MythTV wrote:
> #3132: Mythweb CSS uses '_' in identifiers, not in CSS syntax, causes Firefox to
> ignore those styles.
> -----------------------+----------------------------------------------------
>  Reporter:  anonymous  |       Owner:  xris   
>      Type:  defect     |      Status:  new    
>  Priority:  major      |   Milestone:  unknown
> Component:  mythweb    |     Version:  0.20   
>  Severity:  medium     |  
> -----------------------+----------------------------------------------------
>  The CSS specification does not allow the underscore character in
>  identifiers for CSS class and id.  This causes Firefox to ignore any
>  styles defined with an underscore in the name.  If the Mythweb pages and
>  CSS are modified to change '_' into '-', it will work as expected.  Right
>  now, the pages do not display correctly since many of the styles are not
>  being applied.
>   

Can you provide a link or reference to a location within the 
specification that prohibits the use of "_"?  I looked through several 
versions of the CSS and HTML and xHTML specifications and saw no mention 
of the use of "_" in class or id names being illegal (or even discouraged).

Also, the W3C's CSS Validator ( http://jigsaw.w3.org/css-validator/ ) 
says the CSS is valid (only providing an error on "Property behavior 
doesn't exist"--for the IE PNG transparency hack) on the pages I 
checked.  The HTML Validator ( http://validator.w3.org/ ) also doesn't 
complain about the id/class names (showing only a few (i.e. 13 for the 
home page) minor errors--most (8 for the home page) of which were the 
lack of ALT text for images).

Are you sure this wasn't just an issue of browser caching that you 
"fixed" by changing names, causing the browser to reload the CSS?  (I.e. 
did you try a Shift-Reload and/or clearing your browser cache?)

Mike



More information about the mythtv-dev mailing list