Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Created January 27, 2011 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketaylr/798987 to your computer and use it in GitHub Desktop.
Save miketaylr/798987 to your computer and use it in GitHub Desktop.
function _aspxGetElementsByTagName(element, tagName) {
tagName = tagName.toUpperCase();
if(element != null){
var elementAllExists = !!element.all;
var opera10_50 = __aspxOpera && elementAllExists && !element.all.tags;
if (elementAllExists && !opera10_50 && (!__aspxFirefox || __aspxBrowserVersion < 3))
return __aspxNetscape ? element.all.tags[tagName] : element.all.tags(tagName);
else
return element.getElementsByTagName(tagName);
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment