goog.cssom.iframe.style.CssSelector_ |
opt_selectorString
: string=
String containing selectors to parse.
|
Tests to see what part of a DOM element hierarchy would be matched by
this selector, and returns the indexes of the matching element and matching
selector part.
For example, given this hierarchy: document > html > body > div.content > div.sidebar > p and this CSS selector: body div.sidebar h1 This would return {elementIndex: 4, selectorPartIndex: 1}, indicating that the element at index 4 matched the css selector at index 1.
Arguments:
Returns: Object
Object with the properties elementIndex and
selectorPartIndex, or null if there was no match.
|
code » | ||
![]()
Parses a selector string into individual parts.
Arguments:
|
code » |
![]()
Object to track ancestry matches to speed up repeatedly testing this
CssSelector against the same NodeAncestry object.
|
Code » | |
![]()
Array of CssSelectorPart objects representing the parts of this selector
Example: for the selector 'body h1' the parts would be [body, h1].
|
Code » |