17,230
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
importScript('MediaWiki:GetElementsByClassName.js'); | importScript('MediaWiki:GetElementsByClassName.js'); | ||
function getChildrenByTagName(parent, name) { | |||
var nodeList = []; | |||
for (var child = parent.firstChild; child != null; child = child.nextSibling) { | |||
if (child.nodeType == 1 && name == child.nodeName) { nodeList.push(child); } | |||
} | |||
return nodeList; | |||
} | |||
/* Move tabs from the tabcontent section to the tab section */ | /* Move tabs from the tabcontent section to the tab section */ |