Bug Tracker

Opened 10 years ago

Closed 9 years ago

Last modified 7 years ago

#4324 closed feature (wontfix)

No hasAttribute method.

Reported by: MaxSchmeling Owned by:
Priority: trivial Milestone:
Component: attributes Version: 1.2.6
Keywords: attributes Cc:
Blocked by: Blocking:

Description

It would be nice to be able to check if an attribute exists by a method call rather than checking if the value is undefined.

Change History (2)

comment:1 Changed 9 years ago by dmethvin

Component: unfiledattributes

comment:2 Changed 9 years ago by Rick Waldron

Resolution: wontfix
Status: newclosed

.attr() already behaves such that it can be evaluated for existance.

http://jsfiddle.net/rwaldron/wVqvr/4/

Last edited 8 years ago by Rick Waldron (previous) (diff)
Note: See TracTickets for help on using tickets.