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

17 lines
540 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChtmlHighlighter = void 0;
const css_highlighter_1 = require("./css_highlighter");
class ChtmlHighlighter extends css_highlighter_1.CssHighlighter {
constructor() {
super();
}
isMactionNode(node) {
return node.tagName.toUpperCase() === this.mactionName.toUpperCase();
}
getMactionNodes(node) {
return Array.from(node.getElementsByTagName(this.mactionName));
}
}
exports.ChtmlHighlighter = ChtmlHighlighter;