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

nancydru’s picture

Where do we use it?

rmiddle’s picture

Priority: Normal » Minor
Status: Active » Postponed

Going to set this to postponed / minor until I have a change to research how to replace that part of out Javascript.

Thanks
Robert

jonathan1055’s picture

Issue summary: View changes
Status: Postponed » Active

I 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?

GStegemann’s picture

I 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:

  • Drupal 5 to jQuery 1.2.6
  • Drupal 6 to jQuery 1.3.2
  • Drupal 7 to jQuery 1.5.x, 1.7.x, 1.8.x, 1.9.x, 1.10.x and jQuery UI 1.10.2
  • Drupal 8: TBD

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/

jonathan1055’s picture

That'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?

GStegemann’s picture

Yes, automated tests run fine. No error messages.

Maybe the 'xpath' string found in the test modules is something different than the jQuery Xpath selector.

jonathan1055’s picture

Status: Active » Closed (works as designed)

Yes, I think we have no issue here. Closing.