Stumbleupon badge xhtml validation errors
The stumbleupon's badge is breaking giving xhtml validation error. Is there any kind of way to make it validate using javascript or something else?
The su gives following line to display the badge:
<script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script>
And i get following two warnings:
line 5 column 1 - Warning: <html> proprietary attribute "xmlns:fb"
line 40 column 2 - Warni开发者_开发技巧ng: <span> ID "__su_server_time__" uses XML ID syntax
Note that warnings are not errors.
The code you provided validates on an otherwise valid page except for XHTML Strict doctypes using the W3C Validator
If that is your doctype, you need to add the type
attribute as instructed:
<script src="http://www.stumbleupon.com/hostedbadge.php?s=5" type="text/javascript"></script>
You need to be mindful of the doctype as these are what's used for validation. So paste this code in any html will not result validation errors.
精彩评论