Lines Matching refs:node

13  * Initializes the traversal with the provided math node.
19 * The active math <MATH> node. In this context, "active" means that this is
26 * The node currently under inspection.
54 * When traversing a Mathjax node this will contain the internal
55 * MathML representation of the node.
61 * Semantic representation of the current node.
120 * @param {Node} node A MathML node.
122 cvox.TraverseMath.prototype.initialize = function(node) {
123 if (cvox.DomUtil.isMathImg(node)) {
124 // If a node has a cvoxid attribute we know that it contains a LaTeX
127 if (!node.hasAttribute('cvoxid')) {
130 var cvoxid = node.getAttribute('cvoxid');
131 node = this.allTexs_[cvoxid];
133 if (cvox.DomUtil.isMathJax(node)) {
134 this.activeMathmlHost = this.allMathjaxs_[node.getAttribute('id')];
136 this.activeMath = this.activeMathmlHost || node;
137 this.activeNode = this.activeMathmlHost || node;
147 * Adds a mapping of a MathJax node to its MathML representation to the
149 * @param {!Node} mml The MathML node.
150 * @param {string} id The MathJax node id.
165 * @param {!Node} mml The MathML node.
166 * @param {string} id The MathJax node id.
225 * Moves to the next leaf node in the current Math expression if it exists.
228 * @return {Node} The next node.
246 * Returns a string with the content of the active node.
255 * Moves to the next subtree from a given node in a depth first fashion.
305 var node = this.activeNode;
306 node = r ? node.previousSibling : node.nextSibling;
307 if (!node) {
310 this.activeNode = node;
328 var node = this.activeNode;
329 node = r ? node.parentNode : node.firstChild;
330 if (!node) {
333 this.activeNode = node;
436 * Gets the active node attached to the current document.
437 * @return {Node} The active node, if it exists.
440 var node = this.activeNode;
441 if (!node || node.nodeType != Node.ELEMENT_NODE) {
444 var id = node.getAttribute('spanID');