Garfieldius, thanks :)
svens0n82, I've later found that function 'descendant' also needs similar
fix. Around line 3597 in prototype.js I've changed:
h.concat(results, node.getElementsByTagName('*'));
into
if(typeof node == 'string') { node = $(node); }
h.concat(results, node.getElementsByTagName('*'));
On Wed, Oct 14, 2009 at 10:59 AM, [email protected] <
[email protected]> wrote:
>
> Hi,
>
> i have the same issue with the error but your solution doesnt work for
> me. Error keeps the same.
>
> Any more ideas?
>
>
> On 12 Okt., 23:16, Julius Šėporaitis <[email protected]> wrote:
> > Hi,
> >
> > just wanted to post a quick note for those who maybe had problems like
> > mine:
> >
> > - Prototype v.1.6.1
> > - Firefox 3.5
> > - JS Error: root.querySelectorAll is not a function (about line 3299
> > in prototype.js)
> >
> > This started to happen on Magento checkout pages, where the Accordion
> > is and I don't know if this is a prototype bug or not, so - I don't
> > know why and when this happens, but on my situation initially - the
> > root variable is a string so it passes the initial check (root = root
> > || document) causing problems later. :) Here's a solution.
> >
> > in the prototype.js prepend this line (~3299):
> >
> > results = $A(root.querySelectorAll(e)).map(Element.extend);
> >
> > so it looks like this:
> >
> > if(typeof root == string) root = $(root);
> > results = $A(root.querySelectorAll(e)).map(Element.extend);
> >
> > I hope this gets helpful to someone.
> >
> > Cheers,
> > Julius Seporaitis
>
> >
>
--
Cheers,
Julius Šėporaitis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---