Hi,
Am I correct in saying that the getFirstElementByTagAndClassName
function should return only one element?
When I supply no className it returns an *array* of elements.
So, this command does not work (but I think it should)
MochiKit.DOM.getFirstElementByTagAndClassName("body").tagName
And this one DOES work:
MochiKit.DOM.getFirstElementByTagAndClassName("body")[0].tagName
--Bart
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" 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/mochikit
-~----------~----~----~----~------~----~------~--~---