Skip to main content

Bug Tracker

Side navigation

#3783 closed bug (invalid)

Opened January 05, 2009 09:58AM UTC

Closed January 05, 2009 03:24PM UTC

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

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

Attachments (0)
Change History (6)

Changed January 05, 2009 01:39PM UTC by balazs.endre comment:1

jQuery doesn't support xpath, only css selectors.

Changed January 05, 2009 02:05PM UTC by matas comment:2

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).

Changed January 05, 2009 02:28PM UTC by balazs.endre comment:3

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.

Changed January 05, 2009 02:30PM UTC by matas comment:4

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

Changed January 05, 2009 02:53PM UTC by balazs.endre comment:5

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.

Changed January 05, 2009 03:24PM UTC by john comment:6

resolution: → invalid
status: newclosed