Yeah guys,

Thanks for responses.

I understand now it's not Mootools, but wonderful IE (sarcasm), and
improper coding, as I have already noted in the code review.

I never saw this before as I have never tried to reference an element
this way, nor until today seen any other dev do it this way. Chrome
should know better NOT to emulate IE garbage, I'm disappointed in
them.

Gafa.

On Sep 21, 10:28 am, "Steve Onnis" <[email protected]> wrote:
> It's the way IE builds the dom for its browser and it actually isnt
> compliant anyway. I would "never" reference anything in the dom like that
>
> -----Original Message-----
> From: Gafa [mailto:[email protected]]
> Sent: Tuesday, 21 September 2010 11:44 PM
> To: MooTools Users
> Subject: [Moo] Direct Element Reference
>
> If you use "$" on an element in IE7 or Chrome 6.0.4+ you can directly
> reference that element by name/id without the use of "$" in additional
> code?  Is this intended functionality?  Does not work in FF3.6+
>
> http://www.jsfiddle.net/bSKsc/
>
> Came across the above, code reviewing another web devs work, and
> couldn't believe what I was seeing.
>
> Gafa

Reply via email to