W3C home > Mailing lists > Public > public-html@w3.org > December 2008

Re: dataset case issue

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 23 Dec 2008 19:59:03 +0000 (UTC)
To: Anne van Kesteren <annevk@opera.com>
Cc: HTML WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0812231954180.24109@hixie.dreamhostps.com>

On Fri, 13 Jun 2008, Anne van Kesteren wrote:
> 
> The dataset DOM attribute introduces a small difference between HTML and 
> XHTML that should probably be pointed out explicitly. Namely that if you 
> use dataset.X = "x" you will get a data-x attribute in HTML and a data-X 
> attribute in XHTML.
> 
> Instead of pointing it out we could also 1) define dataset in terms of 
> setAttributeNS rather than setAttribute in which case you might get 
> problems when you try to seralize. Or 2) be defining a subset of 
> characters that these attributes may consist of and not letting dataset 
> work with characters outside that set.
> 
> Of the alternative solutions my preference goes to 1. It seems nicer to 
> defer to setAttributeNS rather than subsetting things somehow.

I've defined things so that they are the same for both XHTML and HTML. 
Hopefully the confusion caused by people using upper-case names won't be 
so bad...

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 23 December 2008 19:59:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:27 GMT