Namespace i$
The global namespace of the IBM Client API
Constructor Attributes | Constructor Name and Description |
---|---|
The global namespace of the IBM Client API
|
Method Attributes | Method Name and Description |
---|---|
<static> |
i$.query(selector, context, results)
A pure-JavaScript CSS selector engine.
|
Method Detail
<static>
{Array}
i$.query(selector, context, results)
A pure-JavaScript CSS selector engine.
i$.query supports virtually all CSS 3 Selectors - this even includes some parts that are infrequently implemented such as escaped selectors (".foo\+bar"), Unicode selectors, and results returned in document order. There are a few notable exceptions to the CSS 3 selector support (the reasoning for this decision can be found here.
i$.query supports virtually all CSS 3 Selectors - this even includes some parts that are infrequently implemented such as escaped selectors (".foo\+bar"), Unicode selectors, and results returned in document order. There are a few notable exceptions to the CSS 3 selector support (the reasoning for this decision can be found here.
- :root
- :target
- :nth-last-child
- :nth-of-type / :nth-last-of-type / :first-of-type / :last-of-type / :only-of-type
- :lang()
- Parameters:
- {String} selector
- A css selector
- {DOMElement|DOMDocument} context
- An element or document to use as the context for finding elements. The default is the current document.
- {Array} results
- Optionally pass an array or array-like object to which i$.query will append the elements.
- Returns:
- {Array} all of the elements matching the selector