User:Locke/common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
importScript('MediaWiki:GetElementsByClassName.js');
importScript('MediaWiki:GetElementsByClassName.js');


var getChildrenByTagName = function(parent, name) {
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;
};
}




Navigation menu