Keep in mind though that doing that sort of thing will invalidate your XHTML unless you generate your own dtd schema and implement that
From: Arian Stolwijk [mailto:[email protected]] Sent: Tuesday, 28 June 2011 10:08 PM To: [email protected] Subject: Re: [Moo] Re: Custom data attribute i'm pretty sure .get('data-bar') will work in 2.0. On Tue, Jun 28, 2011 at 2:04 PM, Robert <[email protected]> wrote: Yes, but myElement.dataset.bar works not ;-) "myElement.get('data-bar')" is what I am using right now. Not so sure it is good or bad habit, who knows if it will still work in moo 2.0... Thanks, On Jun 28, 1:33 pm, Arian Stolwijk <[email protected]> wrote: > myElement.get('data-bar'); works pretty fine. > > > > > > > > On Tue, Jun 28, 2011 at 1:28 PM, Robert <[email protected]> wrote: > > Are there plans for some mootools edition to support custom data > > attribute for older browsers? > > [http://www.w3.org/TR/html5/elements.html#custom-data-attribute] > > > It would be useful to use same pattern for data handling for both > > html5 and older browsers...
