Support » Plugins » [Plugin: TweetMeme Button] Does not validate

  • I love the Tweetmeme plug-in, but it currently prevents my site from validating at XHTML Transitional. I receive 20 errors, but if I remove the tweetmeme div, it validates.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Removed – read below!

    Ah, I know what the problem is. The plugin is calling a “div id” multiple times on one page, you can only call an ID one time only on the same page, or it will fail validation. So if you have 20 articles advertised on one page displaying the tweet button, your repeating that same ID 20 times. Which will give you 20 errors.

    Were as you can call a “div class” multiple times and it will still pass XHTML validation (Even Strict).

    That’s the problem. They should have used a “class” instead of an “ID” like this:

    <div class=”tweetmeme_button”

    And in their stylesheet used:

    .tweetmeme_button {
    border: bla;
    }

    instead of this below for styling

    #tweetmeme_button {
    border: bla;
    }

    And if they are using an ID because it makes use of classes under it. They still could have done it like this.

    .tweetmeme_button {
    border: bla;
    }

    .tweetmeme_button .classone {
    border: bla;
    }

    .tweetmeme_button .classtwo {
    border: bla;
    }

    So they avoid using an “ID” for style

    Sorry, please ignore what I said above. There does indeed appear to be all sorts of problems not releated the the ID style side of things.

    I recently found out that Tweetmeme button preventing me from validating XHTML.

    I tinkered around with the php file (i know, i shouldnt) but I hope this will help some people.

    This small guide will help make the current Tweetmeme button XHTML valid.

    Making Tweetmeme Button XHTML Valid

    It does now! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: TweetMeme Button] Does not validate’ is closed to new replies.