Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    validator says not unique :( It is!!

    lol.

    The validator throws an error saying that my id tag must be a single token. presumably I need an underscore to be added.

    but will it cause any presentational errors or is the validator being simply pedantic

    Code:
        <div id="Airport Pick-up" style="display:none">
    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Quote Originally Posted by bazz View Post
    lol.


    but will it cause any presentational errors or is the validator being simply pedantic

    bazz
    Hey bazz,
    Did you test it?

    I would think a valid id would avoid presentational errors, as well as cure any caused by the space you have now.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Regular Coder
    Join Date
    Oct 2007
    Location
    Glencoe, Ontario, Canada
    Posts
    340
    Thanks
    19
    Thanked 27 Times in 27 Posts
    Well the validator works on strict guidelines, it wont cause any visual problems but to have it valid you need to follow the guidelines.
    Eric "PitbullMean" Melo
    Always Start your layout with*{border:0; margin:0; padding:0;}
    Be sure to Thank ALL Users who give assistance.

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    From the XHTML 1.0 Spec

    In XML, fragment identifiers are of type ID, and there can only be a single attribute of type ID per element. Therefore, in XHTML 1.0 the id attribute is defined to be of type ID. In order to ensure that XHTML 1.0 documents are well-structured XML documents, XHTML 1.0 documents MUST use the id attribute when defining fragment identifiers on the elements listed above. See the HTML Compatibility Guidelines for information on ensuring such anchors are backward compatible when serving XHTML documents as media type text/html.
    For multiples, it needs to be classes. You can have two classes like this
    Code:
    <div class="Airport Pick-up">
    and that would be styled in the CSS like this
    Code:
    .Airport {
    }
    .Pick-up {
    }
    And even that might not be valid since they start with caps.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #5
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by bazz View Post
    lol.

    The validator throws an error saying that my id tag must be a single token. presumably I need an underscore to be added.

    but will it cause any presentational errors or is the validator being simply pedantic

    Code:
        <div id="Airport Pick-up" style="display:none">
    bazz
    I think there is another ptoblem

    space is not allowed in id:

    http://www.w3.org/TR/REC-html40/types.html#type-name

    the link is for html 4.0 but I think this apply to other recomandations.

    best regards

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Thanks guys,

    The issue was with the space.

    @Excavator: it wasn't multiples but I see the confusion and likely it confused the validator as well.

    I forced the replacement of 'space' with underscore and it's all tickety boo now.

    thanks

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •