Closed (works as designed)
Project:
Web Links
Version:
master
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 May 2009 at 23:19 UTC
Updated:
13 Feb 2015 at 17:44 UTC
Jump to comment: Most recent
Jquery 1.3 released Jan 2009 no longer include XPath support. Drupal 7 will likely upgrade to 1.3 before the freeze so we need to start looking at removing the XPath Jquery based code.
Thanks
Robert
Comments
Comment #1
nancydruWhere do we use it?
Comment #2
rmiddle commentedGoing to set this to postponed / minor until I have a change to research how to replace that part of out Javascript.
Thanks
Robert
Comment #3
jonathan1055 commentedI cannot find any reference to xpath in the D6 code base. In D7 we only use it in the two .test files and it works fine.
In D6 I have /sites/all/libraries/jquery.ui but I do not have this in D7, I just have /misc/jquery.js which is at version 1.4.4.
Is there still a problem that we need to address?
Comment #4
GStegemann commentedI also couldn't find any references to xpath neither in the D6 nor in D7 version of Web Links. And I have no jQuery stuff in /sites/all/libraries.
Anyway, the module jQuery UI is not supported under D7. You can use module jQuery Update to check the version of jQuery installed at your site.
As from the jQuery Update project page https://www.drupal.org/project/jquery_update the following versions can be used:
In the jQuery 1.2 Release Notes http://blog.jquery.com/2007/09/10/jquery-1-2-released/ I found the following:
XPath Selector Plugin
Since XPath selectors were removed form jQuery in 1.2, a new [http://jquery.com/plugins/project/xpath XPath Selector Plugin] has been introduced. You can use this plugin to give yourself the CSS/XPath hybrid selectors that have existed in jQuery since its creation.
So the question really is if the XPath Selector Plugin is available at Drupal sites. If yes I think this issue needs not to be adressed anymore.
Maybe this link might be helpful too: http://www.ibm.com/developerworks/library/x-xpathjquery/
Comment #5
jonathan1055 commentedThat's a lot of info, thanks. I'm a little confused though, as the xpath usage we have in our .test files works fine and it looks like I am running jQuery 1.4.4 according to /misc/jquery.js
Can you run the automated tests in your local site OK?
Comment #6
GStegemann commentedYes, automated tests run fine. No error messages.
Maybe the 'xpath' string found in the test modules is something different than the jQuery Xpath selector.
Comment #7
jonathan1055 commentedYes, I think we have no issue here. Closing.