Class Index

Classes


Namespace i$

The global namespace of the IBM Client API

Namespace Summary
Constructor Attributes Constructor Name and Description
 
i$
The global namespace of the IBM Client API
Method Summary
Method Attributes Method Name and Description
<static>  
i$.query(selector, context, results)
A pure-JavaScript CSS selector engine.
Namespace Detail
i$
The global namespace of the IBM Client API
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. This is the main function for finding elements. It will use querySelectorAll if available.
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

Copyright (c) 2014 IBM Corporation
Documentation generated by JsDoc Toolkit 2.4.0 on Sat Feb 28 2015 01:56:10 GMT-0500 (EST)