Side navigation
#1721 closed bug (invalid)
Opened September 24, 2007 05:35AM UTC
Closed September 26, 2007 10:02PM UTC
XPath selectors with extern XML string (from AJAX response) doesn't work
Reported by: | johny | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | xpath | Cc: | |
Blocked by: | Blocking: |
Description
Code:
id = $('/id', responseText).text(); response = $('/response', responseText).text();
doesn't work on version 1.2.1 where responseText is:
<?xml version="1.0" encoding="utf-8"> <add> <id>12</id> <response>added</response> </add>
Works with 1.1.4 version.
XPath selectors have been removed from jQuery 1.2. See the release notes for more information.