W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] Prevent abuse of data-*

From: Roger Hågensen <rescator@emsai.net>
Date: Thu, 18 Mar 2010 09:11:47 +0100
Message-ID: <4BA1E043.201@emsai.net>
On 2010-03-17 17:28, Jonas Sicking wrote:
> >>/  I'm wondering if data-* attributes should be renamed to priv-* to make
> />>/  it clearer that it's page's _private_ data.
> />>/
> />>/  "data-" is such a nice generic prefix that I'm afraid sooner or later
> />>/  someone will start basing microformats-like markup on that.
> />/
> />/  It's not a bad idea... Unfortunately data-* is already being used quite a
> />/  lot and has been widely advertised, so we have to be careful with this.
> />/  Anyone else have an opinion on this?
> /
> I don't feel strongly that either name is better. Though I would not
> that priv- doesn't make things much clearer since it's totally
> undefined who it's private to.
>    

Maybe a better naming would have been: doc-*
It's short, it kinda reflect what it's related to as well right? Or does 
that clash with something?

Regards,
Roger.

-- 
Roger "Rescator" H?gensen.
Freelancer - http://EmSai.net/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100318/eddbd7f1/attachment.htm>
Received on Thursday, 18 March 2010 01:11:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC