launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #05344
Re: YUI 101 question
On Thu, 2010-10-28 at 12:29 +1000, Ian Booth wrote:
> Hello YUI gurus
>
> Why can't I set the title on a YUI anchor object directly?
>
> ie
>
> link = Y.getElementById(...)
> link.title = "my title"
>
> fails (well, no error but doesn't work), but
>
> link.setAttribute('title', "my title");
YUI rejects the property aspect of EcmaScript, mad skillz in JS cannot
be used with YUI. The YUI developers may be enamoured with Java. YUI
avoids properties and as you have discovered, it removed them :(.
--
__Curtis C. Hovey_________
http://launchpad.net/
Attachment:
signature.asc
Description: This is a digitally signed message part
Follow ups
References