So sorry to beat this dead horse, but I just want to weigh in my thoughts on
this before it gets shot down. I agree that $ should only be a light
wrapper around getElementById, but unfortunately getElementById is broken
across browsers. I'm surprised to hear that you think the fix is heavy. In
my eyes it is a lightweight fix to save some major headaches for those who
don't have control over the HTML source.
My vote is for #2!
- Adam
On 6/18/07, Andrew Dupont <[EMAIL PROTECTED]> wrote:
>
>
>
> On Jun 18, 2:01 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
> wrote:
> >There are only 3 possible options we're facing:
> >
> > 1. Don't change the $ function, leave everything as-is;
> > 2. Fix the issue in $ by using $$('*[id=foo]');
> > 3. Don't fix the issue, throw error instead.
>
> My vote is for #1. The $ function is intended to be a light wrapper
> around document.getElementById . The impulse is noble to want to
> correct IE's incorrect behavior (and Opera's emulation thereof), but I
> think it's just a little too heavy.
>
> Cheers,
> Andrew
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---