Opened 13 years ago
Closed 13 years ago
#5582 closed bug (fixed)
jquery.is(':attribute') always returns true for attributes it doesn't know about
Reported by: | dwt | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | selector | Version: | 1.4a2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Which led me to a whild goose bug chase for the last hour.
Here's an example, to see it just run it in any browser with a console object.
Attachments (1)
Change History (4)
Changed 13 years ago by
Attachment: | reduction.html added |
---|
comment:1 Changed 13 years ago by
Ah yes, I was searching so madly, because I hat miswritten :visible as :visble....
comment:2 Changed 13 years ago by
So .is(":vsble")
can return true
, return false
, or throw an error. What value/behavior are you proposing? At the moment there are few if any situations where jQuery intentionally throws an error back to the caller.
comment:3 Changed 13 years ago by
Component: | unfilled → selector |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Version: | 1.3.2 → 1.4a2 |
Fixed, throws an exception now. http://github.com/jeresig/sizzle/commit/b719e9b7a277c0e2b10132395811574e31161a90
Note: See
TracTickets for help on using
tickets.
showcase of the problem