UNPKG

fontoxpath

Version:

A minimalistic XPath 3.1 engine in JavaScript

48 lines (43 loc) 685 B
/** * @fileoverview * @externs */ /** * @record */ class INodesFactory { /** * @nosideeffects * @export * @param {?string} namespaceURI * @param {!string} name * @return {!Element} */ createElementNS (namespaceURI, name) { } /** * @nosideeffects * @export * @param {!string} contents * @return {!Comment} */ createComment (contents) { } /** * @nosideeffects * @export * @param {!string} contents * @return {!Text} */ createTextNode (contents) { } /** * @nosideeffects * @export * @param {!string} target * @param {!string} data * @return {!Text} */ createProcessingInstruction (target, data) { } }