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".
In 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.
I'm almost positive you could use jQuery's data functionality to modify that out.