mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue