mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
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:
parent
bb3172c038
commit
83c9a8a29a
@ -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+/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user