Simple Twitter Connect
Not HTML5 valid: Here's the fix. (3 posts)

  1. psobko
    Posted 3 years ago #

    Hey just though I'd drop this in here in case the developer of this plugin or anyone else is interested in making this plugin HTML5 compliant:


    I realize that the W3C validator for HTML5 is still experimental but nonetheless I feel there's no harm in improving the script this way. The error produced is outlined in the HTML5 specs and will most likely always be invalid.

    The specific error the validator throws up is:

    "“& did not start a character reference”"

    Best of luck!


  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 3 years ago #

    Escaping like this in all cases is not compatible with a lot of other systems. Things like Facebook which scrape your site don't always parse the amp code into the & properly for using elsewhere.

    I wouldn't worry about validation, I'd be more concerned about things actually working with the most common systems. It would be nice if everybody followed the rules, but they don't, and I prefer to be practical.

  3. psobko
    Posted 3 years ago #

    I agree with your second point, WordPress itself isn't HTML5 compliant at this point. I'm just a nit-picker :P

    As to how other systems parse the code, I know Facebook has issues when it comes to using the & amp; in titles. Would using the amp code on your Twitter "Share" button have any sort of detrimental effects? What would they be?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic