[jQuery] Adding to DOM Element Prototype?

[jQuery] Adding to DOM Element Prototype?

Hi,
is it possible to do something like this?
domelement.prototype.is = function(type) {
return this.type.toLowerCase() == type.toLowerCase();
}
If so, what is the correct object to add to its prototype?
And then eg. if( $(#input5)[0].is('radio') ) { ... }?
I know that there is a jQuery equivalent, but in the case where I have only
one element, this might be "faster". Maybe noone would ever notice, but I'm
still curious :-)
-- Jörn
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/