On 11/11/06, Dave Methvin <[EMAIL PROTECTED]> wrote:
> > I couldn't find a way using jQuery to get the
> > tagName of an element
>
> I immediately thought of .attr("tagName") but it didn't work. Some paths
> through .attr() get both properties and attributes, others just attributes,
> others just properties. Any time there is an entry in the fix object, it
> gets properties _only_, so one way to support getting tagName would be to
> add an entry to fix.

I'm of the opinon that .attr() should _not_ be getting properties of
an element unless it is to normalize attributes like disabled and
selected that become properties after render.

--
Brandon Aaron

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to