mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
selectors: Don't track class and id ancestor hashes in quirks mode.
It's incorrect to track classes and id selectors in a quirks-mode document, since they should match case-insensitively. Bug: 1382812 Reviewed-by: bholley MozReview-Commit-ID: 4uvrfYsWb1v
This commit is contained in:
parent
eba573d774
commit
f879ebcc99
3 changed files with 24 additions and 15 deletions
|
@ -490,7 +490,9 @@ impl Stylist {
|
|||
self.element_map.borrow_for_origin(&origin)
|
||||
};
|
||||
|
||||
let hashes = AncestorHashes::new(&selector);
|
||||
let hashes =
|
||||
AncestorHashes::new(&selector, self.quirks_mode);
|
||||
|
||||
map.insert(
|
||||
Rule::new(selector.clone(),
|
||||
hashes.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue