Modify ↓
Ticket #8069 (closed bug: invalid)
@ sign in attribute throws error in FF3.6
| Reported by: | psayre@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | selector | Version: | 1.5rc1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$('span[title=user@…]') throws an error in FF3.6
Here's a quick test case. http://pastebin.com/3mpYmsbX
Change History
comment:1 Changed 2 years ago by rwaldron
- Status changed from new to closed
- Resolution set to invalid
comment:2 follow-up: ↓ 4 Changed 2 years ago by anonymous
This working in 1.4.4 is just a fluke then?
comment:4 in reply to: ↑ 2 Changed 2 years ago by jitter
- Priority changed from undecided to low
- Component changed from unfiled to selector
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[title=user@domain.com] isn't a valid CSS selector unless you quote the value or escape the special characters as described in the selector documentation
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Not if you enclose that attribute value in quotes... as the documentation states.
$('span[title="user@…"]')
http://jsfiddle.net/rwaldron/zXuMr/2/