aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/matching.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/matching.rs b/components/style/matching.rs
index 530b3c1f591..4e336c25002 100644
--- a/components/style/matching.rs
+++ b/components/style/matching.rs
@@ -176,7 +176,7 @@ fn element_matches_candidate<E: TElement>(element: &E,
miss!(State)
}
- if element.get_id().is_some() {
+ if element.get_id() != candidate_element.get_id() {
miss!(IdAttr)
}