Bug Tracker

Modify

Ticket #3783 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

Xpath attribute selector fails in jQuery 1.3 Beta 1

Reported by: matas Owned by: john
Priority: major Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: xpath selector Cc:
Blocking: Blocked by:

Description

Xpath style attribute selector like $('a[@href]') generates syntax error. Seen on FF3.0.5 Mac OS 10.5

Change History

comment:1 Changed 5 years ago by balazs.endre

jQuery doesn't support xpath, only css selectors.

comment:2 Changed 5 years ago by matas

well, it still worked in 1.2.6. I guess, it was a legacy feature left from 1.1.2 then ( http://docs.jquery.com/DOM/Traversing/Selectors).

comment:3 Changed 5 years ago by balazs.endre

Well, I guess, it was left in 1.2 for backwards compatibility but offically it wasn't supported. Now it's definitely left out of 1.3.

comment:4 Changed 5 years ago by matas

ok, thanks. so you can consider the ticket invalid/closed.

comment:5 Changed 5 years ago by balazs.endre

I've just regitered and I can't close it but there seems to be a two year old open ticket on a similar issue:  http://dev.jquery.com/ticket/1364

Btw. if you really need it you can modify the jQuery.expr.match.ATTR regex but I think it's much cleaner if you remove the @ signs from your code.

comment:6 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid

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.