mixin Node-Core
source: document/Node-Core.js, line 4
Extends Node
with core methods.
Details:
- See:
Methods
getIndex([selector]) → {Integer}
- static
source: document/Node-Core.js, line 23
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
source: document/Node-Core.js, line 52
Gets the text content.
Returns
-
{String}
getHTML() → {String}
- static
source: document/Node-Core.js, line 64
Gets the html content.
Returns
-
{String}
getData() → {String}
- static
source: document/Node-Core.js, line 85
Gets the inner data content formatted according to node type.
Returns
-
{String}
toString() → {String}
- static
source: document/Node-Core.js, line 112
Gets the string representation.
Returns
-
{String}
toJSON() → {Object}
- static
source: document/Node-Core.js, line 118
Gets the Node as JSON Object representation.
Returns
-
{Object}
Details:
- To Do:
-
- Not Implemented!