handle backtick in selector
This commit is contained in:
parent
ef25d8b880
commit
562a9da820
@ -334,6 +334,7 @@ impl<'a> SelectorParser<'a> {
|
|||||||
c if c.is_control() => {
|
c if c.is_control() => {
|
||||||
return Err("expected selector.".into());
|
return Err("expected selector.".into());
|
||||||
}
|
}
|
||||||
|
'`' => return Err("expected selector.".into()),
|
||||||
_ => todo!("unimplemented selector"),
|
_ => todo!("unimplemented selector"),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -52,3 +52,4 @@ error!(
|
|||||||
control_character_starts_selector_inner,
|
control_character_starts_selector_inner,
|
||||||
"a{l {color: foo;}}", "Error: expected selector."
|
"a{l {color: foo;}}", "Error: expected selector."
|
||||||
);
|
);
|
||||||
|
error!(backtick_in_selector, "a`{}", "Error: expected selector.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user