Skip to main content

Bug Tracker

Side navigation

#8069 closed bug (invalid)

Opened January 26, 2011 11:33PM UTC

Closed January 26, 2011 11:43PM UTC

Last modified January 27, 2011 12:06AM UTC

@ sign in attribute throws error in FF3.6

Reported by: psayre@sitecrafting.com Owned by:
Priority: low Milestone: 1.next
Component: selector Version: 1.5rc1
Keywords: Cc:
Blocked by: Blocking:
Description

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

Here's a quick test case.

http://pastebin.com/3mpYmsbX

Attachments (0)
Change History (4)

Changed January 26, 2011 11:43PM UTC by rwaldron comment:1

resolution: → invalid
status: newclosed

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

$('span[title="user@domain.com"]')

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

Changed January 26, 2011 11:46PM UTC by anonymous comment:2

This working in 1.4.4 is just a fluke then?

Changed January 26, 2011 11:51PM UTC by rwaldron comment:3

Always test in the latest

Changed January 27, 2011 12:06AM UTC by jitter comment:4

component: unfiledselector
priority: undecidedlow

Replying to [comment:2 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