|
|
Line 74: |
Line 74: |
| } | | } |
|
| |
|
| function getChildrenByTagName(parent, name) {
| | importScript('MediaWiki:GetChildrenByTagName.js'); |
| var nodeList = [];
| |
| for (var child = parent.firstChild; child != null; child = child.nextSibling) {
| |
| if (child.nodeType == 1 && name == child.nodeName) { nodeList.push(child); }
| |
| }
| |
| return nodeList;
| |
| }
| |
|
| |
|
|
| |
|