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. -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>Received on Friday, 13 June 2008 11:38:15 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:18 GMT