Bug Tracker

Modify

Ticket #8069 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

@ 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

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

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

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

comment:2 follow-up: ↓ 4 Changed 2 years ago by anonymous

This working in 1.4.4 is just a fluke then?

comment:3 Changed 2 years ago by rwaldron

Always test in the latest

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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.