pub trait NodeExt {
fn get_node(&self) -> &Node;
fn name(&self) -> &str { ... }
fn get(&self, attr: &str) -> Option<String> { ... }
fn attrs(&self) -> BTreeMap<String, String> { ... }
fn text(&self) -> Option<String> { ... }
}
Expand description
Adds some convenience methods to the html5ever::rcdom::Node
type
Required Methods§
Provided Methods§
sourcefn name(&self) -> &str
fn name(&self) -> &str
Retrieves the name of the node
If this node is an element, the name of that element is returned. Otherwise, special names are used:
Document -> “[document]” Doctype -> “[doctype]” Text -> “[text]” Comment -> “[comment]” ProcessingInstruction -> “[processing-instruction]”