Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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:
Blocked by: Blocking:

Description

$('span[title=user@…]') throws an error in FF3.6

Here's a quick test case. http://pastebin.com/3mpYmsbX

Change History (4)

comment:1 Changed 8 years ago by Rick Waldron

Resolution: invalid
Status: newclosed

Not if you enclose that attribute value in quotes... as the documentation states.

$('span[title="user@…"]')

http://jsfiddle.net/rwaldron/zXuMr/2/

comment:2 Changed 8 years ago by anonymous

This working in 1.4.4 is just a fluke then?

comment:3 Changed 8 years ago by Rick Waldron

Always test in the latest

comment:4 in reply to:  2 Changed 8 years ago by jitter

Component: unfiledselector
Priority: undecidedlow

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

Note: See TracTickets for help on using tickets.