[uf-new] Microformats for hidden data
Edward O'Connor
hober0 at gmail.com
Fri Nov 27 09:58:23 PST 2009
Hi Scott,
Tantek suggested:
>> 2. use the "data-*" attributes in HTML5 which were explicitly created
>> to handle the use case of data attributes for scripts/script
>> libraries among other things.
You replied:
> The prohibition of using data- attributes for public data seems to be
> a problem with this particular use case, as analytics engines are
> generally independent of the site being tracked and "These attributes
> are not intended for use by software that is independent of the site
> that uses the attributes."
I believe you misunderstand the restriction on data-*="" attributes.
Here's how James Graham explained the restriction recently on
the HTML WG mailing list[1]:
> [A] third party js-library is not considered independent of the site
> (since the site must decide to import the js-library into its pages).
[...]
> To take a slightly different example, it is OK to have data-marquee
> that is used by a script that the author includes in the page to
> implement marquee effects. But it is not permitted for a user agent to
> provide its own marquee effects based on the presence of a marquee
> attribute.
--
Edward O'Connor
hober0 at gmail.com
1. http://lists.w3.org/Archives/Public/public-html/2009Oct/0630.html
More information about the microformats-new
mailing list