Bug 12485 - XPath id() function doesn't work as root in paths
Summary: XPath id() function doesn't work as root in paths
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Alexey Proskuryakov
Depends on:
Reported: 2007-01-30 11:56 PST by Alexey Proskuryakov
Modified: 2007-02-03 12:31 PST (History)
0 users

See Also:

test case (644 bytes, text/html)
2007-01-30 11:57 PST, Alexey Proskuryakov
no flags Details
proposed fix (4.84 KB, patch)
2007-02-03 06:06 PST, Alexey Proskuryakov
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2007-01-30 11:56:51 PST
Not sure about the exact scope of the problem, but the attached test case fails.

XPath in question: "id('a')/div".
Comment 1 Alexey Proskuryakov 2007-01-30 11:57:45 PST
Created attachment 12804 [details]
test case
Comment 2 Alexey Proskuryakov 2007-02-03 06:06:58 PST
Created attachment 12897 [details]
proposed fix

Actually implement Path::doEvaluate().
Comment 3 Darin Adler 2007-02-03 12:05:55 PST
Comment on attachment 12897 [details]
proposed fix

Looks fine, r=me.
Comment 4 Alexey Proskuryakov 2007-02-03 12:31:22 PST
Committed revision 19388.