Top

mixin Node-Core

Extends Node with core methods.

Details:
See:

Methods

getIndex([selector]) → {Integer}

  • static

Gets the index position in parent's children. If node has no parent, will return 0. When using the optional parameter selector, the resultant index is calculated based only in the sibling nodes matching the given selector, if node does not match the selector itself will return -1.

Parameters
  • [selector] {String} :

    filter selector

Returns
  • {Integer}

getText() → {String}

  • static

Gets the text content.

Returns
  • {String}

getHTML() → {String}

  • static

Gets the html content.

Returns
  • {String}

getData() → {String}

  • static

Gets the inner data content formatted according to node type.

Returns
  • {String}

toString() → {String}

Gets the string representation.

Returns
  • {String}

toJSON() → {Object}

Gets the Node as JSON Object representation.

Returns
  • {Object}
Details:
To Do:
  • Not Implemented!