close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

G+ code fails W3C validation

Thread began 10/10/2011 7:22 am by info97301 | Last modified 10/12/2011 11:11 pm by info97301 | 1163 views | 2 replies |

info97301

G+ code fails W3C validation

Hi

I've installed the 'share' icons on a page, which otherwise validates properly on the W3C markup checker.

However, the google+ code fails on the following:

There is no attribute "size"

<g:plusone size="medium" count="false" href="https://etc </g:plusone>

For the same libe there is also:
There is no attribute "count"
There is no attribute "href"

element "g:plusone" undefined

There is also, further down (in the LinkedIn section):

there is no attribute "data-url"

<script type="in/share" data-url="https://etc "></script>

Plus, the URL's have become https: whereas it is actually http:// (I see this should be easy to change in code view.

Appreciate any fixes.

Thanks
Chris

Sign in to reply to this post

Dani Chankhour

Unfortunately we can't change the syntax of the code that is displayed since that is the recommended code from each of the Social Media.

We will make a note of this issue in future releases to see if there is a work around. But meanwhile all those attributes are need for the share button to work properly.

Sign in to reply to this post

info97301

Hi Dani

Thanks for checking anyway; I find it very disappointing that one of the leading Internet businesses can't be bothered to ensure compliance before releasing code. Not the first time that Google generated code hasn't been compliant.

If Google can't insist on it, what encouragement is there for others?

Cheers
Chris

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...