开发者

jQuery MetaData "data" attribute doesn't validate

Using the jquery metadata plugin, I have an element on my page that looks like this:

But, if I run this through the W3C Validator - I get an error saying "there is no attribute "data""

...have I misse开发者_JS百科d anything (I realise data isn't a valid attribute, but this seems to be a 'bug' in the metadata plugin is it? - not one that's going to get fixed anyway)


For the metadata plugin, you put the data in the "class" string.

<div id='x' class='bigDiv purple spectacular {size: 200, weight: "19kg"}'>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜