Trait style::dom::NodeInfo [] [src]

pub trait NodeInfo {
    fn is_element(&self) -> bool;
fn is_text_node(&self) -> bool; }

Simple trait to provide basic information about the type of an element.

We avoid exposing the full type id, since computing it in the general case would be difficult for Gecko nodes.

Required Methods

Whether this node is an element.

Whether this node is a text node.

Implementors