Class Index | File Index

Classes


Namespace Jelo.Dom

Provides methods to collect and filter DOM elements.
Defined in: Jelo.Dom.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
Jelo.Dom.filter(selector, set)
Reduces a set of DOM nodes to those that also match the given CSS selector.
<static>  
Jelo.Dom.findPosition(The)
Finds the position of an element on the page.
<static>  
Jelo.Dom.fromString(html)
Converts a string of HTML to actual DOM elements.
<static>  
Jelo.Dom.select(selector, context, results)
Selects a group of elements that match a given CSS selector.
<static>  
Jelo.Dom.selectNode(selector, context, results)
Selects the FIRST instance of a matching element.
Namespace Detail
Jelo.Dom
Method Detail
<static> Jelo.Dom.filter(selector, set)
Reduces a set of DOM nodes to those that also match the given CSS selector. The selector can be a full selector (for example, "div > span.foo") and not just a fragment or simple selector.
Parameters:
{String} selector
The CSS selector or xpath query.
{Array} set Optional
The set of elements to filter.

<static> {Array} Jelo.Dom.findPosition(The)
Finds the position of an element on the page.
Parameters:
{HTMLElement} The
element to inspect
Returns:
{Array} [left, top] calculated in pixels, output as Numbers.

<static> {Node} Jelo.Dom.fromString(html)
Converts a string of HTML to actual DOM elements.
Parameters:
{String} html
The HTML to convert to DOM nodes.
Returns:
{Node} A DocumentFragment object containing the specified nodes.

<static> {Array} Jelo.Dom.select(selector, context, results)
Selects a group of elements that match a given CSS selector.
Parameters:
{String} selector
The CSS selector or xpath query.
{Node} context Optional, Default: document
The root node within which to conduct this search.
{Array} results Optional
The collection returned from this function.
Returns:
{Array}

<static> {Node} Jelo.Dom.selectNode(selector, context, results)
Selects the FIRST instance of a matching element.
Parameters:
{String} selector
The CSS selector or xpath query.
{Node} context Optional, Default: document
The root node within which to conduct this search.
{Array} results Optional
The collection returned from this function.
Returns:
{Node}

Documentation generated by JsDoc Toolkit 2.1.0 on Mon Mar 15 2010 14:48:20 GMT-0700 (PDT)