[jQuery] Re: Copying HTMLElement methods in IE

2007-10-23 Thread Josh Nathanson
It's a question of syntactic nicety to be honest. It would be quite nice to say var foo = $('#something'), then use native DOM methods and properties as well as jQuery wrappers on the variable foo rather than having to have separate interfaces for native DOM stuff and jQuery methods. 98% of th

[jQuery] Re: Copying HTMLElement methods in IE

2007-10-23 Thread jcoglan
> If you're positive you'll get an element back, why not just do: > $('#something')[0].tagName It's a question of syntactic nicety to be honest. It would be quite nice to say var foo = $('#something'), then use native DOM methods and properties as well as jQuery wrappers on the variable foo rathe

[jQuery] Re: Copying HTMLElement methods in IE

2007-10-23 Thread Matt Kruse
On Oct 23, 11:51 am, jcoglan <[EMAIL PROTECTED]> wrote: > This might be kind of a niche thing, but anyways... I'm trying to > extend jQuery so that if $() returns a single element, you can get the > element's properties directly on the jQuery instance. e.g. > $('#something').tagName // "DIV"