invalid imagemap - bhsd-harry/wikiparser-node GitHub Wiki
❌ By default, this rule reports invalid images or links in <imagemap> tags as errors.
Examples of incorrect code for { "invalid-imagemap": 2 }:
<imagemap>Foo</imagemap>This option can be configured to specify the severity of invalid coordinates in <imagemap> tags.
Examples of incorrect code for { "invalid-imagemap": [ 0, { "coord": 2 } ] }:
<imagemap>
File:Foo.png
rect x [[Bar]]
</imagemap><imagemap>
File:Foo.png
circle 0 [[Bar]]
</imagemap><imagemap>
File:Foo.png
poly 0 0 100 [[Bar]]
</imagemap>Examples of correct code for { "invalid-imagemap": { "coord": 0 } }:
<imagemap>
File:Foo.png
rect x [[Bar]]
</imagemap><imagemap>
File:Foo.png
circle 0 [[Bar]]
</imagemap><imagemap>
File:Foo.png
poly 0 0 100 [[Bar]]
</imagemap>This option can be configured to specify the severity of missing images in <imagemap> tags.
Examples of incorrect code for { "invalid-imagemap": [ 0, { "image": 2 } ] }:
<imagemap>
default [[Foo]]
</imagemap>Examples of correct code for { "invalid-imagemap": { "image": 0 } }:
<imagemap>
default [[Foo]]
</imagemap>This option can be configured to specify the severity of invalid links in <imagemap> tags.
Examples of incorrect code for { "invalid-imagemap": [ 0, { "link": 2 } ] }:
<imagemap>
File:Foo.png
default Bar
</imagemap>Examples of correct code for { "invalid-imagemap": { "link": 0 } }:
<imagemap>
File:Foo.png
default Bar
</imagemap>This option can be configured to specify the severity of invalid shapes in <imagemap> tags.
Examples of incorrect code for { "invalid-imagemap": [ 0, { "shape": 2 } ] }:
<imagemap>
File:Foo.png
foo 0 0 [[Bar]]
</imagemap>Examples of correct code for { "invalid-imagemap": { "shape": 0 } }:
<imagemap>
File:Foo.png
foo 0 0 [[Bar]]
</imagemap>