Class Firebug.HTMLLib.SelectorSearch
Class used to search a DOM tree for elements matching the given
CSS selector.
Defined in: htmlLib.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Firebug.HTMLLib.SelectorSearch(text, doc, panelNode, ioBox)
XXXjjb this code is no longer called and won't be in 1.5; if FireFinder works out we can delete this.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Finds the first match within the document.
|
|
|
Resets the search to the beginning of the document.
|
| Method Attributes | Method Name and Description |
|---|---|
|
findNextMatch(revert, caseSensitive)
Finds the next match in the document.
|
Class Detail
Firebug.HTMLLib.SelectorSearch(text, doc, panelNode, ioBox)
XXXjjb this code is no longer called and won't be in 1.5; if FireFinder works out we can delete this.
Constructs a SelectorSearch instance.
- Parameters:
- {String} text
- CSS selector to search for
- {Document} doc
- Document to search
- {Object} panelNode
- Panel node containing the IO Box representing the DOM tree.
- {Object} ioBox
- IO Box to display the search results in
Field Detail
find
Finds the first match within the document.
reset
Resets the search to the beginning of the document.
Method Detail
findNextMatch(revert, caseSensitive)
Finds the next match in the document.
The return value is an object with the fields
- node: Node that contains the match
- isValue: true if the match is a match due to the value of the node, false if it is due to the name
- match: Regular expression result from the match
- Parameters:
- {boolean} revert
- true to search backward, false to search forward
- {boolean} caseSensitive
- true to match exact case, false to ignore case
- Returns:
- Match object if found