7 ms·
Hmmmm... does require the addition of a non-standard attribute ("data-id") to the HTML/XHTML... so it will be invalid... Shame that cant be done with class name
by al_james 17y ago
Hmmmm... does require the addition of a non-standard attribute ("data-id") to the HTML/XHTML... so it will be invalid... Shame that cant be done with class names. E.g. class="data-id-macos".
- hbien 17y agoI think it's fine moving forward towards HTML5.
- cheald 17y agoI'm almost positive you could use jQuery's data functionality to modify that out.
- rossriley 17y agoYes, that's a standard and valid HTML5 attribute.
- al_james 17y agoOh is it? Whoops!
- nostrademons 17y agohttp://dev.w3.org/html5/spec/Overview.html#attr-data http://dev.w3.org/html5/spec/Overview.html#attr-data
- OmarIsmail 17y agoIn the docs there's a parameter for attribute. From the docs it seems like you can use this param to replace the data-id with an XHTML valid attribute.