Re: data-* : Custom Data Attributes

On Thu, 5 May 2011, Doug Schepers wrote:
> > > 
> > >  while @data- is just a way of adding metadata
> > 
> > data-*="" is just a place for storing declarative data for scripts, 
> > it's not really for metadata.
> 
> I'd argue that data-*="" is (or can be) still a kind of metadata, but I 
> agree that depends on how it's used in practice.

Sure. I just meant that it's not for publicly usable metadata. For 
example, you wouldn't put something into a data-*="" attribute that you'd 
expect a search engine, Web browser, or data mining tool to use. It's 
intended just for use by the author's own software (typically JS running 
on the page itself, but possibly also server-side software).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 5 May 2011 21:13:42 UTC