speech-rule-engine
Version:
A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.
14 lines (13 loc) • 436 B
JavaScript
import { CssHighlighter } from './css_highlighter.js';
export class ChtmlHighlighter extends CssHighlighter {
constructor() {
super();
}
isMactionNode(node) {
var _a;
return ((_a = node.tagName) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === this.mactionName.toUpperCase();
}
getMactionNodes(node) {
return Array.from(node.getElementsByTagName(this.mactionName));
}
}