views:

55

answers:

1

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 missed 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)

+1  A: 

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

<div id='x' class='bigDiv purple spectacular {size: 200, weight: "19kg"}'>
Pointy
Huh, interesting. Presumably this wouldn't affect any styles or anything?
Paul
well you separate the metadata stuff from your real classes - I'll type in an example
Pointy
Ok, perfect, thank you!
Paul
You can do multiple classes without any problem. You can't style the data between {} anyway.
douwe
Pointy
Woo hooo!! (what's a SXSW??)
Paul
South by Southwest Interactive conference (annual nerd fest in Austin)
Pointy