stuff
This commit is contained in:
parent
bc92231240
commit
b8225c639e
11904 changed files with 1472749 additions and 133 deletions
13
node_modules/speech-rule-engine/mjs/highlighter/chtml_highlighter.js
generated
vendored
Normal file
13
node_modules/speech-rule-engine/mjs/highlighter/chtml_highlighter.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue