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:
Emilio Cobos Álvarez 2017-07-20 22:10:22 +02:00
parent eba573d774
commit f879ebcc99
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 24 additions and 15 deletions

View file

@ -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(),