WorldSEnder 8978baa45d
Fix casing of dynamic tags (#2578)
* fix casing of dynamic tags
* add test case for unknown tag names
* add lint for non-normalized tags
2022-04-05 19:07:31 +02:00

36 lines
2.0 KiB
Plaintext

warning: All `<a>` elements should have a `href` attribute. This makes it possible for assistive technologies to correctly interpret what your links point to. https://developer.mozilla.org/en-US/docs/Learn/Accessibility/HTML#more_on_links
--> tests/html_lints/fail.rs:5:10
|
5 | <a>{ "I don't have a href attribute" }</a>
| ^
warning: '#' is not a suitable value for the `href` attribute. Without a meaningful attribute assistive technologies will struggle to understand your webpage. https://developer.mozilla.org/en-US/docs/Learn/Accessibility/HTML#onclick_events
--> tests/html_lints/fail.rs:8:17
|
8 | <a href="#">{ "I have a malformed href attribute" }</a>
| ^^^
warning: 'javascript:void(0)' is not a suitable value for the `href` attribute. Without a meaningful attribute assistive technologies will struggle to understand your webpage. https://developer.mozilla.org/en-US/docs/Learn/Accessibility/HTML#onclick_events
--> tests/html_lints/fail.rs:11:17
|
11 | <a href="javascript:void(0)">{ "I have a malformed href attribute" }</a>
| ^^^^^^^^^^^^^^^^^^^^
warning: All `<img>` tags should have an `alt` attribute which provides a human-readable description
--> tests/html_lints/fail.rs:14:10
|
14 | <img src="img.jpeg"/>
| ^^^
warning: The tag 'tExTAreA' is not matching its normalized form 'textarea'. If you want to keep this form, change this to a dynamic tag `@{"tExTAreA"}`.
--> tests/html_lints/fail.rs:17:10
|
17 | <tExTAreA />
| ^^^^^^^^
error: This macro call exists to deliberately fail the compilation of the test so we can verify output of lints
--> tests/html_lints/fail.rs:19:5
|
19 | compile_error!("This macro call exists to deliberately fail the compilation of the test so we can verify output of lints");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^