WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddThis
[resolved] [Plugin: AddThis] Valid and efficient markup (3 posts)

  1. Alex997
    Member
    Posted 2 years ago #

    On the Goringe Accountants London website I am running the AddThis WordPress plugin on all my pages (bottom right).

    When I analyse the home page with gtmetrix.com or validator.w3.org I get lots of addthis coding warnings and errors. I would like to clean up my code so that it is valid and performs well but I cannot do this without AddThis making changes to the plugin. Please could I request such changes?

    Invalid Markup

    • Line 2, Column 122: Attribute xmlns:fb not allowed here.
      …om/2008/fbml" xmlns:addthis="http://www.addthis.com/help/api-spec" <strong title="Position where error was detected.">><head>
      
    • Line 2, Column 122: Attribute with the local name xmlns:fb is not serializable as XML 1.0.
      …om/2008/fbml" xmlns:addthis="http://www.addthis.com/help/api-spec" <strong title="Position where error was detected.">><head>
      

       

    • Line 2, Column 122: Attribute xmlns:addthis not allowed here.
      …om/2008/fbml" xmlns:addthis="http://www.addthis.com/help/api-spec" <strong title="Position where error was detected.">><head>
      

       

    • Line 2, Column 122: Attribute with the local name xmlns:addthis is not serializable as XML 1.0.
      …om/2008/fbml" xmlns:addthis="http://www.addthis.com/help/api-spec" <strong title="Position where error was detected.">><head>
      
    • Line 309, Column 63: Attribute g:plusone:size is not serializable as XML 1.0.
      class="addthis_button_google_plusone" g:plusone:size="medium" <strong title="Position where error was detected.">>

       

    • Line 309, Column 63: Attribute g:plusone:size not allowed on element a at this point.
      class="addthis_button_google_plusone" g:plusone:size="medium" <strong title="Position where error was detected.">>

    Inefficient CSS selectors
    http://s7.addthis.com/static/r07/counter002.css has 0 very inefficient rules, 0 inefficient rules, and 3 potentially inefficient uses of :hover out of 34 total rules.

    Rules that use the :hover pseudo-selector on non-anchor elements. This can cause performance problems in Internet Explorer versions 7 and 8 when a strict doctype is used.

    • .addthis_counter .addthis_button_expanded:hover
    • .addthis_counter.addthis_bubble_style:hover
    • .addthis_32x32_style .addthis_counter.addthis_bubble_style:hover

    http://s7.addthis.com/static/r07/widget083.css has 0 very inefficient rules, 14 inefficient rules, and 11 potentially inefficient uses of :hover out of 764 total rules.

    Inefficient rules (good to fix on interactive pages):

    • #at16p form input Tag key with 2 descendant selectors
    • * html #at16abifc iframe Tag key with 3 descendant selectors
    • #at16pc form label Tag key with 2 descendant selectors
    • #at16pc form label span Tag key with 3 descendant selectors
    • * html #at_email textarea Tag key with 3 descendant selectors
    • :first-child+html #at_email textarea Tag key with 2 descendant selectors
    • #at16pc form input:focus Tag key with 2 descendant selectors
    • * html #at16psf input Tag key with 3 descendant selectors
    • :first-child+html #at16psf input Tag key with 2 descendant selectors
    • #at15s #at16pf a Tag key with 2 descendant selectors
    • #at_promo h4 sup Tag key with 2 descendant selectors
    • #at_hover.atm-s a Tag key with descendant selector and class overly qualified with ID
    • #at_hover.atm-s a:hover Tag key with descendant selector and class overly qualified with ID
    • .atm-s a span Tag key with 2 descendant selectors

    Rules that use the :hover pseudo-selector on non-anchor elements. This can cause performance problems in Internet Explorer versions 7 and 8 when a strict doctype is used.

    • #at15sptx:hover
    • #at_hover .at_item:hover
    • #at_hover .at_item:hover
    • #at_share .at_item:hover
    • .at300b:hover
    • .at300bs:hover
    • #at16p .atbtn:hover
    • #at16recap .atbtn:hover
    • #at20mc.ipad #at_hover .at_item:hover
    • .addthis_textshare:hover
    • .at_img_share:hover
  2. Alex997
    Member
    Posted 2 years ago #

    Man I wish this forum had a 'preview' button for editing posts before you submit them. The above took me about 10 attempts before it was half-readable! :(

  3. Aaron Jorbin
    Member
    Posted 2 years ago #

    Hi Alex997,

    The w3c validator (and it looks like gtmetrix.com ) don't recognize custom xml namespaces. You can read more about how to get your site to validate and what is going on at:

    http://support.addthis.com/customer/portal/articles/381263-addthis-client-api#valid-xhtml

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic