Modified a bit the child iterator that wasn't working under Safari.

Tested with FF and Safari. Needs test with IE.
This commit is contained in:
stronk7 2007-01-24 19:39:59 +00:00
parent bb3172c038
commit 83c9a8a29a

View File

@ -206,9 +206,9 @@ function findParentNode(el, elName, elClass, elId) {
*/
function findChildNodes(start, tagName, elementClass, elementID, elementName) {
var children = new Array();
for (var childIndex in start.childNodes) {
for (var i = 0; i < start.childNodes.length; i++) {
var classfound = false;
var child = start.childNodes[childIndex];
var child = start.childNodes[i];
if((child.nodeType == 1) &&//element node type
(elementClass && (typeof(child.className)=='string'))){
var childClasses = child.className.split(/\s+/);