Closed Bug 1227040 Opened 9 years ago Closed 9 years ago

Add parameters to $x() for context node and result type

Categories

(DevTools :: Console, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1164195

People

(Reporter: sebo, Unassigned)

References

()

Details

The $x() function should allow to provide two optional parameters. One for specifying the root node against which the regular expression should be evaluated. And another one for specifying the expected result type.

Firebug already allows these parameters:
https://getfirebug.com/wiki/index.php/$x

This functionality relates to the document.evaluate() parameters:
https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate

document.evaluate() also defines a third parameter for defining the namespace, which may also be added to $x().

Sebastian
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.