ol[type=…] and li[type=…] preshints need to be case-sensitive

This commit is contained in:
Simon Sapin 2017-05-18 10:32:26 +02:00
parent 853b688d0b
commit 7149a6a29d
7 changed files with 53 additions and 19 deletions

View file

@ -379,6 +379,15 @@ impl ::std::ops::Deref for AttrValue {
}
}
impl PartialEq<Atom> for AttrValue {
fn eq(&self, other: &Atom) -> bool {
match *self {
AttrValue::Atom(ref value) => value == other,
_ => other == &**self,
}
}
}
/// https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-zero-dimension-values
pub fn parse_nonzero_length(value: &str) -> LengthOrPercentageOrAuto {
match parse_length(value) {