Embedded twitter feeds & validation issues


After embedding the twitter feed javascript into a website page and checking the W3C Markup Validation Service for problems
there are 2 errors associated with the javascript as copied below. (http://validator.w3.org/)
I’ve chosen to place the twitter feed on the page because the info outweighs the 2 errors showing up, but just wondering if anybody has a suggestion. I did find the solution to one of the errors, but when implemented, the embedded javscript wouldn’t work. (The tweets weren’t showing up on the page)
Anyway, it’s nice to have no errors, no warnings, nested tables, etc., after you have built a page, but if you embed a Twitter feed on your page you have 2 errors.
Thanks for any imput!


Line 171, Column 91: there is no attribute “data-widget-id”

….com/PittsburghPAbiz" data-widget-id=“355063779052122112”>Tweets by @Pittsbur

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the element to incorporate flash media in a Web page, see the FAQ item on valid flash.


Line 172, Column 12: required attribute “type” not specified

<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:…

The attribute given above is required for an element that you’ve used, but you have omitted it. For instance, in most HTML and XHTML document types the “type” attribute is required on the “script” element and the “alt” attribute is required for the “img” element.

Typical values for type are type=“text/css” for and type=“text/javascript” for .