site/node_modules/speech-rule-engine/js/highlighter/mml_css_highlighter.js

18 lines
554 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MmlCssHighlighter = void 0;
const css_highlighter_1 = require("./css_highlighter");
class MmlCssHighlighter extends css_highlighter_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;