DOM.Utils
This provides a group of useful functions for use within the DOM.
This requires JSAN to be installed.
These are functions that are exported to the JSAN.use()er's namespace.
This function will attempt, if given a string, to find an element in the DOM that corresponds to that string. If given anything else, it will return that back.
It will attempt to call the following methods, in order:
In the case where a method returns back a collection, the first one from that collection will be chosen.
function someFunction ( element, ... ) {
// Guarantee that element is actually an element object
element = $(element);
...
}
This method acts as getElementsByName(), but checks against the classes vs. the name.
getElementsByClassName() is an alias that is provided for Prototype API compatibility.
Currently, there is no mailing list or IRC channel. Please send bug reports and patches to the author.
Rob Kinyon (rob.kinyon@iinteractive.com)
Originally written by Sam Stephenson (sam@conio.net)
My time is generously donated by Infinity Interactive, Inc. http://www.iinteractive.com