On 11/10/06, Laurent Yaish <[EMAIL PROTECTED]> wrote:
what if the function is() with no argument returned the tag name?

This makes no sense to me. Something like $("#foo").tag() or $("#foo").tagName() would make a lot more sense when you wanna know the tag name of the element you just selected.

Which makes more sense to you?

if($("#foo").is() == "div") {
   // do stuff...
}

or

if($("#foo").tagName() == "div") {
    // do stuff...
}

Whatever we decide on, we also should make sure that it's read only. I'm not sure what, if anything, would happen if you tried to set element.nodeName or element.tagName, but I'd rather not find out.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to