As I read on this groups, using a CSS selector like "#nonexistantDiv
span" where #nonexistantDIv points to nothing, getAllChildren throws
an error about "e" not being defined.
As just returning an empty array like this :
function getAllChildren(e) {
// Returns all children of element. Workaround required for IE5/
Windows. Ugh.
if (!e) {
return new Array();
}
return e.all ? e.all : e.getElementsByTagName('*');
}
gives a solution, wouldn't it be nice to put it in behaviour.js ?
Regards,
--
Julien CROUZET aka c2c
julien/at\theoconcept.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Behaviour Javascript Library" group.
To post to this group, send email to
behaviour@...
To unsubscribe from this group, send email to
behaviour-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/behaviour?hl=en-~----------~----~----~----~------~----~------~--~---