handle backtick in selector

This commit is contained in:
ConnorSkees 2020-04-02 02:23:48 -04:00
parent ef25d8b880
commit 562a9da820
2 changed files with 2 additions and 0 deletions

View File

@ -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"),
}; };
} }

View File

@ -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.");