- 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>
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 UTC