UNPKG

speech-rule-engine

Version:

A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.

18 lines 610 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlCssHighlighter = void 0; const css_highlighter_js_1 = require("./css_highlighter.js"); class MmlCssHighlighter extends css_highlighter_js_1.CssHighlighter { constructor() { super(); this.mactionName = 'maction'; } getMactionNodes(node) { return Array.from(node.getElementsByTagName(this.mactionName)); } isMactionNode(node) { return node.tagName === this.mactionName; } } exports.MmlCssHighlighter = MmlCssHighlighter; //# sourceMappingURL=mml_css_highlighter.js.map