Status: Unconfirmed Owner: ---- Labels: Type-Bug Pri-2 OS-All Area-Misc New issue 15742 by normanr: document.evaluate doesn't match with xpath functions (local-name, name) http://code.google.com/p/chromium/issues/detail?id=15742
Chrome Version : 3.0.190.4 URLs (if applicable) : Other browsers tested: Add OK or FAIL after other browsers where you have tested this issue: Firefox 3.0.11: OK What steps will reproduce the problem? 1. open developer tools 2. show console 3. run: document.evaluate( "//*[name()='HTML']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ).snapshotItem(0).tagName What is the expected result? HTML What happens instead? TypeError: Cannot read property 'tagName' of null Please provide any additional information below. Attach a screenshot if possible. Reducing the test case to [name()] works, but obviously doesn't filter. My guess is that name() is returning a non-null string, but obviously not the right value. Filtering on @attribute works correctly. The error() and trace() functions are not declared, otherwise I would try to use those to figure out the value to compare with. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---
