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

Reply via email to