mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* fix casing of dynamic tags * add test case for unknown tag names * add lint for non-normalized tags
21 lines
584 B
Rust
21 lines
584 B
Rust
use yew::prelude::*;
|
|
|
|
fn main() {
|
|
let bad_a = html! {
|
|
<a>{ "I don't have a href attribute" }</a>
|
|
};
|
|
let bad_a_2 = html! {
|
|
<a href="#">{ "I have a malformed href attribute" }</a>
|
|
};
|
|
let bad_a_3 = html! {
|
|
<a href="javascript:void(0)">{ "I have a malformed href attribute" }</a>
|
|
};
|
|
let bad_img = html! {
|
|
<img src="img.jpeg"/>
|
|
};
|
|
let misformed_tagname = html! {
|
|
<tExTAreA />
|
|
};
|
|
compile_error!("This macro call exists to deliberately fail the compilation of the test so we can verify output of lints");
|
|
}
|