CSS validation question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NWhite

    CSS validation question

    Hi all,

    In the CSS I'm working on I have code along the following lines:

    #pageMenu a {
    [style info] }

    This seems fine to me, but I'm obviously wrong as it doesn't validate. I
    just wondered if someone could tell me specifically why this is, as the
    validator itself doesn't give any clue?

    The site is at www.nowpc.co.uk

    Thanks in advance,
    Neil

    e-mail: take THIS out


  • Harlan Messinger

    #2
    Re: CSS validation question


    "NWhite" <newsgroups@THI Sneilwhite.org. uk> wrote in message
    news:VeHxc.4046 2$B63.12203@doc tor.cableinet.n et...[color=blue]
    > Hi all,
    >
    > In the CSS I'm working on I have code along the following lines:
    >
    > #pageMenu a {
    > [style info] }
    >
    > This seems fine to me, but I'm obviously wrong as it doesn't validate. I
    > just wondered if someone could tell me specifically why this is, as the
    > validator itself doesn't give any clue?[/color]

    The blendTrans macro is IE-specific, so the validator doesn't know how to
    read blendTrans(dura tion=0.5).

    Comment

    • NWhite

      #3
      Re: CSS validation question

      "NWhite" <newsgroups@THI Sneilwhite.org. uk> wrote in message[color=blue][color=green]
      > > In the CSS I'm working on I have code along the following lines:
      > >
      > > #pageMenu a {
      > > [style info] }
      > >
      > > This seems fine to me, but I'm obviously wrong as it doesn't validate. I
      > > just wondered if someone could tell me specifically why this is, as the
      > > validator itself doesn't give any clue?[/color][/color]

      "Harlan Messinger" replied[color=blue]
      > The blendTrans macro is IE-specific, so the validator doesn't know how to
      > read blendTrans(dura tion=0.5).[/color]

      Hi Harlan,

      Thanks for the reply. So is that why the [#pageMenu a] style is shown as an
      error? Is the validator being thrown a curve that it can't deal with? Why
      doesn't it just reject the blendTrans?


      Comment

      • Harlan Messinger

        #4
        Re: CSS validation question


        "NWhite" <newsgroups@THI Sneilwhite.org. uk> wrote in message
        news:BNHxc.4047 3$B63.37887@doc tor.cableinet.n et...[color=blue]
        > "NWhite" <newsgroups@THI Sneilwhite.org. uk> wrote in message[color=green][color=darkred]
        > > > In the CSS I'm working on I have code along the following lines:
        > > >
        > > > #pageMenu a {
        > > > [style info] }
        > > >
        > > > This seems fine to me, but I'm obviously wrong as it doesn't validate.[/color][/color][/color]
        I[color=blue][color=green][color=darkred]
        > > > just wondered if someone could tell me specifically why this is, as[/color][/color][/color]
        the[color=blue][color=green][color=darkred]
        > > > validator itself doesn't give any clue?[/color][/color]
        >
        > "Harlan Messinger" replied[color=green]
        > > The blendTrans macro is IE-specific, so the validator doesn't know how[/color][/color]
        to[color=blue][color=green]
        > > read blendTrans(dura tion=0.5).[/color]
        >
        > Hi Harlan,
        >
        > Thanks for the reply. So is that why the [#pageMenu a] style is shown as[/color]
        an[color=blue]
        > error? Is the validator being thrown a curve that it can't deal with? Why
        > doesn't it just reject the blendTrans?[/color]

        It *is* rejecting it. It's telling you that it's invalid. What do you think
        "validate" means? "Ignore all the invalid constructs in my code and then
        tell me that my code is valid anyway"?

        Comment

        • NWhite

          #5
          Re: CSS validation question

          "NWhite" wrote in message[color=blue][color=green][color=darkred]
          > > > > In the CSS I'm working on I have code along the following lines:
          > > > >
          > > > > #pageMenu a {
          > > > > [style info] }
          > > > >
          > > > > This seems fine to me, but I'm obviously wrong as it doesn't[/color][/color][/color]
          validate.[color=blue]
          > I[color=green][color=darkred]
          > > > > just wondered if someone could tell me specifically why this is, as[/color][/color]
          > the[color=green][color=darkred]
          > > > > validator itself doesn't give any clue?[/color][/color][/color]


          "Harlan Messinger" replied[color=blue][color=green][color=darkred]
          > > > The blendTrans macro is IE-specific, so the validator doesn't know how[/color][/color]
          > to[color=green][color=darkred]
          > > > read blendTrans(dura tion=0.5).[/color][/color][/color]

          Neil White replied[color=blue][color=green]
          > > Hi Harlan,
          > >
          > > Thanks for the reply. So is that why the [#pageMenu a] style is shown as[/color]
          > an[color=green]
          > > error? Is the validator being thrown a curve that it can't deal with?[/color][/color]
          Why[color=blue][color=green]
          > > doesn't it just reject the blendTrans?[/color][/color]

          "Harlan Messinger" replied[color=blue]
          > It *is* rejecting it. It's telling you that it's invalid. What do you[/color]
          think[color=blue]
          > "validate" means? "Ignore all the invalid constructs in my code and then
          > tell me that my code is valid anyway"?[/color]

          Not quite, Harlan :-)

          My point was that the specific problem wasn't highlighted. As it is, valid
          code was shown as an error - hence the post. Of course, you're right though:
          the CSS validates fine without the filter:blendTra ns line; yes, it was my
          fault for not checking its validity before using it.

          Thanks for the help,
          Neil White


          Comment

          • Harlan Messinger

            #6
            Re: CSS validation question


            "NWhite" <newsgroups@THI Sneilwhite.org. uk> wrote in message
            news:HJIxc.4049 2$B63.33511@doc tor.cableinet.n et...[color=blue]
            > "NWhite" wrote in message[color=green][color=darkred]
            > > > > > In the CSS I'm working on I have code along the following lines:
            > > > > >
            > > > > > #pageMenu a {
            > > > > > [style info] }
            > > > > >
            > > > > > This seems fine to me, but I'm obviously wrong as it doesn't[/color][/color]
            > validate.[color=green]
            > > I[color=darkred]
            > > > > > just wondered if someone could tell me specifically why this is,[/color][/color][/color]
            as[color=blue][color=green]
            > > the[color=darkred]
            > > > > > validator itself doesn't give any clue?[/color][/color]
            >
            >
            > "Harlan Messinger" replied[color=green][color=darkred]
            > > > > The blendTrans macro is IE-specific, so the validator doesn't know[/color][/color][/color]
            how[color=blue][color=green]
            > > to[color=darkred]
            > > > > read blendTrans(dura tion=0.5).[/color][/color]
            >
            > Neil White replied[color=green][color=darkred]
            > > > Hi Harlan,
            > > >
            > > > Thanks for the reply. So is that why the [#pageMenu a] style is shown[/color][/color][/color]
            as[color=blue][color=green]
            > > an[color=darkred]
            > > > error? Is the validator being thrown a curve that it can't deal with?[/color][/color]
            > Why[color=green][color=darkred]
            > > > doesn't it just reject the blendTrans?[/color][/color]
            >
            > "Harlan Messinger" replied[color=green]
            > > It *is* rejecting it. It's telling you that it's invalid. What do you[/color]
            > think[color=green]
            > > "validate" means? "Ignore all the invalid constructs in my code and then
            > > tell me that my code is valid anyway"?[/color]
            >
            > Not quite, Harlan :-)
            >
            > My point was that the specific problem wasn't highlighted. As it is, valid
            > code was shown as an error - hence the post.[/color]

            I see what you mean. By the way, though, it would have been helpful if you
            had provided the error messages in your original posting.


            Comment

            Working...