fontoxpath
Version:
A minimalistic XPath 3.1 engine in JavaScript
103 lines (91 loc) • 1.75 kB
JavaScript
/**
* @fileoverview
* @externs
*/
/**
* @interface
*/
function IDomFacade () {
}
/**
* @nosideeffects
* @export
* @param {!Node} _node
* @return {?Node}
*/
IDomFacade.prototype.getParentNode = function (_node) {
};
/**
* @nosideeffects
* @export
* @param {!Node} _node
* @return {?Node}
*/
IDomFacade.prototype.getFirstChild = function (_node) {
};
/**
* @nosideeffects
* @export
* @param {!Node} _node
* @return {?Node}
*/
IDomFacade.prototype.getLastChild = function (_node) {
};
/**
* @nosideeffects
* @export
* @param {!Node} _node
* @return {?Node}
*/
IDomFacade.prototype.getNextSibling = function (_node) {
};
/**
* @nosideeffects
* @export
* @param {!Node} _node
* @return {?Node}
*/
IDomFacade.prototype.getPreviousSibling = function (_node) {
};
/**
* @nosideeffects
* @export
* @param {!Node} _node
* @return {!Array<!Node>}
*/
IDomFacade.prototype.getChildNodes = function (_node) {
};
/**
* @nosideeffects
* @export
* @param {!Element} _node
* @param {string} _attributeName
* @return {?string}
*/
IDomFacade.prototype.getAttribute = function (_node, _attributeName) {
};
/**
* @nosideeffects
* @export
* @param {!Node} _node
* @return {!Array<{name:!string,value:!string}>}
*/
IDomFacade.prototype.getAllAttributes = function (_node) {
};
/**
* @nosideeffects
* @export
* @param {!Node|*} _node
* @return {string}
*/
IDomFacade.prototype.getData = function (_node) {
};
/**
* @nosideeffects
* @export
* @param {!Node} _node
* @param {function(Node, IDomFacade):!Array<Node>} _callback
* @return {!Array<Node>}
*/
IDomFacade.prototype.getRelatedNodes = function (_node, _callback) {
};