开发者

jQuery MetaData "data" attribute doesn't validate

开发者 https://www.devze.com 2022-12-22 14:57 出处:网络
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\"\"

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

精彩评论

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