Classes/IDs case-sensitivity: get quirks mode from matching context.

This commit is contained in:
Simon Sapin 2017-06-10 23:22:34 +02:00
parent 5bccf98aa4
commit c5c1c1b350
7 changed files with 16 additions and 55 deletions

View file

@ -821,10 +821,6 @@ impl<'a, E> Element for ElementWrapper<'a, E>
}
}
fn in_quirks_mode_document(&self) -> bool {
self.element.in_quirks_mode_document()
}
fn has_id(&self, id: &Atom, case_sensitivity: CaseSensitivity) -> bool {
match self.snapshot() {
Some(snapshot) if snapshot.has_attrs() => {