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:
@@ -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+/);
|
||||
|
||||
Reference in New Issue
Block a user