UNCONFIRMED 29357
Web Inspector: Errors When Displaying XPathResult Information
https://bugs.webkit.org/show_bug.cgi?id=29357
Summary Web Inspector: Errors When Displaying XPathResult Information
Joseph Pecoraro
Reported 2009-09-17 20:12:34 PDT
Steps to Reproduce: 1. Evaluate the following in the Console of the Inspector on any web page: document.evaluate("//*", document, null, XPathResult.ANY_TYPE, null); 2. Attempt to Expand the Object Tree that appears in the Console. Expected Results: I'd like to see the properties of the XPathResult. The following was generated using keys(): ["resultType", "stringValue", "booleanValue", ... ] Actual Results: - A log message (not an error message) saying "Error dispatching: getProperties" - A blank error message shows up in the inspector's inspector Further Issues: - works => keys( document.evaluate(...) ); - doesn't work -> values( document.evaluate(...) ); - trying to access "snapshotLength" or "snapshotItem" and probably other values results in a DOM Exception. Are there problems with XPath in general?
Attachments
Alexey Proskuryakov
Comment 1 2009-09-18 11:48:35 PDT
> - trying to access "snapshotLength" or "snapshotItem" and probably other values > results in a DOM Exception. Are there problems with XPath in general? XPathResult.ANY_TYPE gives an UNORDERED_NODE_ITERATOR_TYPE result, so snapshot-related accessors can't work. You need to pass a desired result type explicitly for them to work. This change doesn't make visual inspection work though - I guess custom code will need to be written for presenting XPathResult.
Radar WebKit Bug Importer
Comment 2 2014-12-17 11:23:02 PST
Note You need to log in before you can comment on or make changes to this bug.