aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/selectors/tree.rs')
-rw-r--r--components/selectors/tree.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/selectors/tree.rs b/components/selectors/tree.rs
index badfca86ed6..b57876308a5 100644
--- a/components/selectors/tree.rs
+++ b/components/selectors/tree.rs
@@ -110,6 +110,11 @@ pub trait Element: Sized + Clone + Debug {
case_sensitivity: CaseSensitivity,
) -> bool;
+ fn is_part(
+ &self,
+ name: &<Self::Impl as SelectorImpl>::PartName,
+ ) -> bool;
+
/// Returns whether this element matches `:empty`.
///
/// That is, whether it does not contain any child element or any non-zero-length text node.