diff options
Diffstat (limited to 'components/style/dom.rs')
-rw-r--r-- | components/style/dom.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/style/dom.rs b/components/style/dom.rs index acc1c364ca8..bee4d88329e 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -434,6 +434,15 @@ pub trait TElement: /// Return whether this element is an element in the HTML namespace. fn is_html_element(&self) -> bool; + /// Return whether this element is an element in the MathML namespace. + fn is_mathml_element(&self) -> bool; + + /// Return whether this element is an element in the SVG namespace. + fn is_svg_element(&self) -> bool; + + /// Return whether this element is an element in the XUL namespace. + fn is_xul_element(&self) -> bool { false } + /// Return the list of slotted nodes of this node. fn slotted_nodes(&self) -> &[Self::ConcreteNode] { &[] |