#8069 closed bug (invalid)
@ sign in attribute throws error in FF3.6
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | selector | Version: | 1.5rc1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('span[[email protected]…]') throws an error in FF3.6
Here's a quick test case. http://pastebin.com/3mpYmsbX
Change History (4)
comment:1 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:4 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Priority: | undecided → low |
Replying to anonymous:
This working in 1.4.4 is just a fluke then?
If this worked in an earlier version it was a bug. As span[[email protected]]
isn't a valid CSS selector unless you quote the value or escape the special characters as described in the selector documentation
Note: See
TracTickets for help on using
tickets.
Not if you enclose that attribute value in quotes... as the documentation states.
$('span[title="[email protected]…"]')
http://jsfiddle.net/rwaldron/zXuMr/2/