cf2:dom.Element#Navigation

Purpose

Allows authors to fix device specific issues with navigating from elements to nodes.

Exported Features

cf2:dom.Element#Navigation

Imported Features

cf2:dom.Element - enhances

JavaScript

This component adds the following method to the V$.dom.Element's prototype object.

v_getChildren()

Returns an array of the DOM Elements containing the children of the selected element. Any child nodes other than elements are excluded from the list. The returned array is not live, i.e. changes to the DOM do not automatically propagate to the array.

Example

var e = V$E("box");
var children = e.v_getChildren();
for (i in children) {
  var child = children[i];
  e.removeChild(child);
}

Related topics