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