17,230
edits
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
importScript('MediaWiki:GetElementsByClassName.js'); | importScript('MediaWiki:GetElementsByClassName.js'); | ||
function getChildrenByTagName(parent, name) { | |||
var nodeList = []; | var nodeList = []; | ||
for (var child = parent.firstChild; child != null; child = child.nextSibling) { | for (var child = parent.firstChild; child != null; child = child.nextSibling) { | ||
Line 7: | Line 7: | ||
} | } | ||
return nodeList; | return nodeList; | ||
} | } | ||