chtml_highlighter.js 436 B

12345678910111213
  1. import { CssHighlighter } from './css_highlighter.js';
  2. export class ChtmlHighlighter extends CssHighlighter {
  3. constructor() {
  4. super();
  5. }
  6. isMactionNode(node) {
  7. var _a;
  8. return ((_a = node.tagName) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === this.mactionName.toUpperCase();
  9. }
  10. getMactionNodes(node) {
  11. return Array.from(node.getElementsByTagName(this.mactionName));
  12. }
  13. }