Numeric CSS class - Firefox complains but Opera OK

Discussion in 'HTML' started by john@starmarkassociates.co.uk, Jun 22, 2006.

  1. Guest

    For the record (in case anyone in future hits the same problem):

    Firefox (1.5.0.4) raised an error on a page in my frameset:
    "Selector expected. Ruleset ignored due to bad selector."

    I could find no relevant documentation or newsgroup comment on this
    error, and the line-number specified as causing the problem was about
    10 more than the last line on the page.

    Only some miserable trial-and-error eventually identified the problem -
    a CSS class named ".800" defined within the page. The problem - having
    a leading numeral - is so very easily solved once identified.

    Interestingly, Opera (8,54 Build 7730) had no problems with it.

    John Geddes
    England
    , Jun 22, 2006
    #1
    1. Advertising

  2. wrote:
    > For the record (in case anyone in future hits the same problem):
    >
    > Firefox (1.5.0.4) raised an error on a page in my frameset:
    > "Selector expected. Ruleset ignored due to bad selector."
    >
    > I could find no relevant documentation or newsgroup comment on this
    > error, and the line-number specified as causing the problem was about
    > 10 more than the last line on the page.
    >
    > Only some miserable trial-and-error eventually identified the problem -
    > a CSS class named ".800" defined within the page. The problem - having
    > a leading numeral - is so very easily solved once identified.
    >
    > Interestingly, Opera (8,54 Build 7730) had no problems with it.


    See the spec:

    http://www.w3.org/TR/CSS21/syndata.html#q6

    ...."they cannot start with a digit."

    A class name '800' is not valid.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Jun 22, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob
    Replies:
    24
    Views:
    1,521
  2. Jeff
    Replies:
    3
    Views:
    1,115
  3. Vijay Bajwa
    Replies:
    3
    Views:
    336
    Vijay Bajwa
    Jan 26, 2007
  4. David Sudolcan
    Replies:
    7
    Views:
    2,023
    Eric Sosman
    Apr 4, 2011
  5. knowledgenotebook
    Replies:
    14
    Views:
    332
    beegee
    Apr 3, 2011
Loading...

Share This Page