MCPcopy Index your code
hub / github.com/htmlhint/HTMLHint / init

Function init

src/core/rules/script-disabled.ts:6–18  ·  view source on GitHub ↗
(parser, reporter)

Source from the content-addressed store, hash-verified

4 id: 'script-disabled',
5 description: 'The <script> tag cannot be used.',
6 init(parser, reporter) {
7 parser.addListener('tagstart', (event) => {
8 if (event.tagName.toLowerCase() === 'script') {
9 reporter.error(
10 'The <script> tag cannot be used.',
11 event.line,
12 event.col,
13 this,
14 event.raw
15 )
16 }
17 })
18 },
19} as Rule

Callers

nothing calls this directly

Calls 2

addListenerMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected