Hi all,
I read the thread on grouped selectors at [1], and if anyone
is
interested in a quick hack that adds the the ability to use
commas,
I've done something fairly simple. This goes just after the
test for
the "getElementsByTagName" function:
if(selector.indexOf(",") != -1) {
var selectors = selector.split(",");
var result = new Array();
for(var sNum = 0; sNum != selectors.length; sNum++) {
result =
result.concat(document.getElementsBySelector(selectors[sNum]
));
}
return result;
}
I've seen so many different patches to Behaviour here, maybe
it would
be a good idea to create a short form that lets you
configure the mods
you want, and bakes you a script to order
- Ian
[1]
http://groups.goo
gle.com/group/behaviour/browse_thread/thread/a1d692dc2f657cd
3/089782e3dde8484e
|