Adding back resultsWithXpathQuery, removed by Darin's earlier change.
This function is called from ObjC, but not used from JavaScript.
* WebInspector/webInspector/inspector.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15763
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-08-02 Timothy Hatcher <timothy@apple.com>
+
+ Rubber stamped by Maciej.
+
+ Adding back resultsWithXpathQuery, removed by Darin's earlier change.
+ This function is called from ObjC, but not used from JavaScript.
+
+ * WebInspector/webInspector/inspector.js:
+
2006-08-02 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
Inspector.searchPerformed(query);
}
+function resultsWithXpathQuery(query)
+{
+ var nodeList = null;
+ try {
+ var focusedNode = Inspector.focusedDOMNode();
+ nodeList = focusedNode.document.evaluate(query, focusedNode.document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE);
+ } catch(err) {
+ // ignore any exceptions. the query might be malformed, but we allow that
+ }
+ return nodeList;
+}
+
var tabNames = ["node","metrics","style","properties"];
var currentPane = "node";
var paneUpdateState = [];