mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Classes/IDs case-sensitivity: get quirks mode from matching context.
This commit is contained in:
parent
5bccf98aa4
commit
c5c1c1b350
7 changed files with 16 additions and 55 deletions
|
@ -1592,10 +1592,6 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
self.get_state().intersects(NonTSPseudoClass::AnyLink.state_flag())
|
||||
}
|
||||
|
||||
fn in_quirks_mode_document(&self) -> bool {
|
||||
self.as_node().owner_doc().mCompatMode == structs::nsCompatibility::eCompatibility_NavQuirks
|
||||
}
|
||||
|
||||
fn has_id(&self, id: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
||||
self.get_id().map_or(false, |atom| case_sensitivity.eq_atom(&atom, id))
|
||||
}
|
||||
|
|
|
@ -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() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue