Opened 14 years ago
Closed 14 years ago
#3783 closed bug (invalid)
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
Change History (6)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
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 14 years ago by
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:5 Changed 14 years ago by
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 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
jQuery doesn't support xpath, only css selectors.