Social Linkz
[resolved] duplicate ID when social links in widgets (4 posts)

  1. atao
    Posted 1 year ago #


    When I add Social Links in the widgets, then the generated html code for posts can't be validated as the same id is used for some links :
    - inside the widgets
    - inside the post



  2. Sed Lex
    Plugin Author

    Posted 1 year ago #

    Could you be more specific ? I do not understand

  3. atao
    Posted 1 year ago #

    WordPress is configured with:
    - Dashboard > SL Plugins > Social Links > Settings
    top position checked for posts
    - Dashboard > Appearance > Widgets
    Social Linkz in first position inside Sidebar

    When I check the generated page with http://validator.w3.org, for each social link I get this kind of messages:

    ` Error Line 229, Column 3647: Duplicate ID maskdfdf594015d19121d22b6a6ba36185b3.

    …1d22b6a6ba36185b3" class="social_mask"></div> <div id="dialogdfdf594015d19…

    Warning Line 130, Column 3647: The first occurrence of ID maskdfdf594015d19121d22b6a6ba36185b3 was here.

    …1d22b6a6ba36185b3" class="social_mask"></div> <div id="dialogdfdf594015d19…

    Each occurence of the social link uses a div tag with the same id, which is not allowed by specifications:

    - HTML 4.01 specification says ID must be document-wide unique.
    - HTML 5 specification says the same thing but in other words. It says that ID must be unique in its home subtree which is basically the document if we read the definition of it.

    Browsers are very accommodating, so they deal with it as long as no script use such id, but the page can't be validated.

  4. Sed Lex
    Plugin Author

    Posted 1 year ago #

    Should be corrected in the next version

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Linkz
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.