Forum Bugs

HTML5 data attributes

TGFisher
When will data attributes (http://www.w3.org/html/wg/drafts/html/master/single-page.html#custom-data-attribute) be available for use within Prince?

I use them a lot when working with jQuery and have been unable to get them to work.
mikeday
Prince doesn't support the "dataset" property, but you can still access them as regular attributes:
<div data-oh-boy="hello">...</div>

// this will not work yet
alert(div.dataset.ohBoy)

// this will work
alert(div.getAttribute("data-oh-boy"))