[whatwg] several messages

On Thu, 18 Mar 2010, Simon Pieters wrote:
> On Thu, 18 Mar 2010 01:03:33 +0100, Ian Hickson <ian at hixie.ch> wrote:
> > On Mon, 22 Feb 2010, Kornel Lesi?~Dski 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 think we should keep data- as is. People have started to use it, we 
> would waste their time by renaming it.

On Thu, 18 Mar 2010, Henri Sivonen wrote:
> > 
> > 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.
> 
> Given that priv-* isn't clearly better, I think it would be better not 
> to annoy early adopters of data-* with a name change.

On Thu, 18 Mar 2010, Jonas Sicking wrote:
> 
> Agreed.

I haven't changed it.


On Wed, 30 Jun 2010, Tab Atkins Jr. wrote:
>
> In the first paragraph of 
> http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#embedding-custom-non-visible-data 
> it says that a custom data attribute is "an attribute in no namespace 
> whose name starts with the string "data-", has at least one character 
> after the hyphen,...".  Following this, <div data-=foo> would not put 
> anything in .dataset.
> 
> However, in the algorithm for getting the list of name-value pairs, it 
> says to process "each content attribute on the element whose first five 
> characters are the string "data-" and whose remaining characters (if 
> any)...".  Following this, <div data-=foo> would make 
> .dataset[""]="foo".
> 
> One of these references needs to be fixed, as webkit is implementing 
> dataset right now.

There's no contradiction here, it's just a difference between author 
conformance and implementation requirements in error conditions.

Since WebKit implemented this as specced, I've left it unchanged:

   https://bugs.webkit.org/show_bug.cgi?id=41146

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

Received on Friday, 23 July 2010 13:44:34 UTC