WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. atao
    Member
    Posted 5 months ago #

    Hello,

    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

    Regards

    https://wordpress.org/plugins/social-linkz/

  2. Sed Lex
    Member
    Plugin Author

    Posted 5 months ago #

    Could you be more specific ? I do not understand

  3. atao
    Member
    Posted 5 months 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
    Member
    Plugin Author

    Posted 5 months ago #

    Should be corrected in the next version

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.