Aweber & W3C Validation

4 replies
  • WEB DESIGN
  • |
Hello...I've just validated my site and there's a problem with the Aweber code...it says:

Line 125, Column 94: ID "REDIRECT_B8C300F7A202073052F078CF2DE0DAC1" already defined

...eber.com/form/thankyou_vo.html" id="redirect_b8c300f7a202073052f078cf2de0dac...✉

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

Line 58, Column 93: ID "REDIRECT_B8C300F7A202073052F078CF2DE0DAC1" first defined here
...weber.com/form/thankyou_vo.html" id="redirect_b8c300f7a202073052f078cf2de0dac


Any ideas?

Thank you
#aweber #validation #w3c
  • Profile picture of the author n7 Studios
    Yes. Each element in HTML (e.g. a form) can be assigned an ID. But each ID must be unique.

    I expect what you've done is pasted the same form code twice into a HTML page, to show the form twice - and with that, the ID has been duplicated too.

    You'll need to change one of the ID's, but I'm not sure how that effects aWeber.
    {{ DiscussionBoard.errors[650019].message }}
  • Profile picture of the author audio90
    does it matter that this is validated? does your form work?
    {{ DiscussionBoard.errors[666680].message }}
  • Profile picture of the author biggerdunk
    Well yeah it does work...I just thought google preffered sites that were all nice and tidy and no errors
    {{ DiscussionBoard.errors[674706].message }}
  • Profile picture of the author Adaptive
    What's the purpose of the rule about a unique ID for every element in a page?

    The purpose is so that people or programs who need to access an element by ID can do so without any confusion.

    No people will access elements in your page by ID. You might, when editing your page, but your readers using the page won't know or care what ID's are in the code.

    Will a script need to access elements in your page by ID? If you have a script that runs on the page, and that script does anything with either of the aweber elements, the script might fail. Or it might do what should be done with one element with both, or what should be done with both elements with neither, or access one of the elements twice and the other not at all.

    Do you have a script that accesses the elements by ID?

    If you don't have a script that accesses elements by ID, will someone else?

    The only script that might access your page and that you care about is the search engine. If the aweber elements are forms or links with nofollow, then the search engine won't get confused by the page.

    So the big question is whether or not you have put a script that will break. The way to find out is to simply load the page in several browsers- IE, Firefox, Safari - and see if each of the aweber elements works correctly. If that tests works, then you don't need to worry about it.

    Regards,
    Allen
    {{ DiscussionBoard.errors[674907].message }}

Trending Topics