Ticket #10360 (closed bug: invalid)
The Attribute Equals Selector doesn't seem to work with "hash"
| Reported by: | evan@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | attributes | Version: | 1.6.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The attribute equals selector doesn't seem to work with "hash"; it returns "undefined". Accessing it directly via the DOM element works.
See example here: http://jsfiddle.net/XnDyh/
I discovered this when I was trying to track down why jQTouch wasn't working as expected with me, and I saw in the source code that the author was using $el.attr('hash') to determine if a link had a hash or not. Changing this to $el[0].hash fixes all my issues with jQTouch.
Tested with jQuery 1.6.2 & 1.6.3 & edge (latest version available on JSFiddle)
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

I forgot to mention this does work in the JSFiddle example with jQuery 1.5.2.