[Plugin: Sociable] Plugin socialble is not w3c ready (3 posts)

  1. dunkelangst
    Posted 7 years ago #


    Thank you for the great plugin. I think it's a pitty, that it is not w3c ready. It has got some mistakes:

    Line 177, Column 41: ID "email" already defined
    …<input type="text" name="email" id="email" value="" size="30" tabindex="2" />
    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 138, Column 27: ID "email" first defined here
    	<li><a rel="nofollow" id="email" href="javascript:window.location='mailto%3A%3F

    Please fix that mistakes!

    Thank you very much

  2. bbodine1
    Posted 7 years ago #

    I was validating my site after I installed the plugin and ran into an issue where you have multiple post on the same page.

    If the sociable function is called more than once it places the same "ID" in multiple places. I fixed this by changing ( id=" ) on line 699 to ( class=" ). There were six locations where this needed to be changed. Lines 699, 893, 1013, 1015, 1019 and 1040.

  3. bnordby
    Posted 7 years ago #

    I'm noticing the same problem. Is it possible to change the id of the links to a class instead. Validation is broken on pages where more than one post is displayed because of the non-unique id's.

Topic Closed

This topic has been closed to new replies.

About this Topic