Return to Snippet

Revision: 23573
at February 9, 2010 13:36 by remotezygote


Initial Code
	hasAttribute: function(node,attr) {
		if(node.hasAttribute) return(node.hasAttribute(attr));
		else return(!!node.getAttribute(attr));
	},

Initial URL

                                

Initial Description

                                

Initial Title
Cross-browser hasAttribute

Initial Tags
javascript, textmate

Initial Language
Other