开发者

HTML5 Validation for Grooveshark Widgets

I can't seem to find a way to fix the validation without breaking the widget. My element is missing 'data' and 'type' attributes.

Line 769, Column 38: Element object is missing one or more of the following attributes: data, type.

  <object width="250" height="40"> <param name="movie" value="http://listen…

I've added type="application/x-shockwave-flash" but that seems to break it too.

This is the full widget:

<object width="250" height="40"> <para开发者_StackOverflowm name="movie" value="http://listen.grooveshark.com/songWidget.swf" />
<param name="wmode" value="opaque" /> <param name="allowScriptAccess" value="always" /> <param name="flashvars" value="hostname=cowbell.grooveshark.com&amp;widgetID=25014214&amp;style=metal&amp;p=0" /> <embed src="http://listen.grooveshark.com/songWidget.swf" type="application/x-shockwave-flash" width="250" height="40" flashvars="hostname=cowbell.grooveshark.com&amp;widgetID=25014214&amp;style=metal&amp;p=0" allowScriptAccess="always" wmode="window" /></object>

You can see the widget in action here: http://www.eportfolio.jameswmann.com


Use

<object width="250" height="40" data="http://listen.grooveshark.com/songWidget.swf">

and drop

<param name="movie" value="http://listen.grooveshark.com/songWidget.swf" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜