mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
ID and class selectors are ASCII case-insensitive in quirks mode.
https://bugzilla.mozilla.org/show_bug.cgi?id=1363778
This commit is contained in:
parent
524fcac191
commit
5bccf98aa4
22 changed files with 313 additions and 191 deletions
|
@ -12,6 +12,7 @@ use data::StoredRestyleHint;
|
|||
use dom::{TElement, TNode};
|
||||
use fnv::FnvHashSet;
|
||||
use selector_parser::SelectorImpl;
|
||||
use selectors::attr::CaseSensitivity;
|
||||
use selectors::parser::{Component, Selector};
|
||||
use shared_lock::SharedRwLockReadGuard;
|
||||
use stylesheets::{CssRule, Stylesheet};
|
||||
|
@ -37,7 +38,7 @@ impl InvalidationScope {
|
|||
{
|
||||
match *self {
|
||||
InvalidationScope::Class(ref class) => {
|
||||
element.has_class(class)
|
||||
element.has_class(class, CaseSensitivity::CaseSensitive)
|
||||
}
|
||||
InvalidationScope::ID(ref id) => {
|
||||
match element.get_id() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue