I would like to suggest a warning or note of importance be added to
the documentation on the usage of $$().
It should be noted in the documentation that, unlike other areas in
JavaScript, the $$() method actually cares what type of quoting you
use (ie single vs double quotes). The selector syntax requires that
attribute values use double quotes.
So the following will return nothing
var elems = $$("label[for='someId']");
While the next statement will return the desired result.
var elems = $$('label[for="someId"]');
I think many users might make the same mistake I did, and use the
first form.
If you include a warning, it could even use the nifty banners like
the ones on http://www.prototypejs.org/api/form/serialize. :-)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---