Re: data-* attributes [was: Re: ISSUE-41/ACTION-97 decentralized-extensibility]

On Mon, Oct 19, 2009 at 1:02 PM, Leif Halvard Silli
<xn--mlform-iua@xn--mlform-iua.no> wrote:
> Having said the above, the draft says:
>
>  ]]These attributes are not intended for use by software that is independent
> of the site that uses the attributes.[[
>
> Except user agents, when is a software independent of the site that uses the
> attributes?

Sorry for skipping over this, Leif.  I believe an appropriate metric
is to consider software 'independent' if the author of the page does
not have source-level control over the software, and/or the software
does not have the ability to alter the page by itself.

For example, the jQuery library is not independent, as the author can
download it, alter its source, and host it on their own domain.
Linking to it from Google's CDN doesn't change this, as the author can
potentially still do so, and the library can still make changes to the
page.  On the other hand, the Googlebot is an independent piece of
software, as it cannot alter a page.  Any data-* attributes on the
page could *not* have originated from the Googlebot, and so the
Googlebot must ignore them.

There may be some edge cases under this definition, but it's still a
pretty simple principle.  As long as the author is in control of the
tool, the tool is not independent.

~TJ

Received on Monday, 19 October 2009 20:46:10 UTC