MCPcopy Create free account
hub / github.com/d0iasm/saba / create_element

Method create_element

core/src/renderer/html/parser.rs:66–68  ·  view source on GitHub ↗

Creates an element node.

(&self, tag: &str, attributes: Vec<Attribute>)

Source from the content-addressed store, hash-verified

64
65 /// Creates an element node.
66 fn create_element(&self, tag: &str, attributes: Vec<Attribute>) -> Node {
67 Node::new(NodeKind::Element(Element::new(tag, attributes)))
68 }
69
70 /// Creates an element node for the token and insert it to the appropriate place for inserting
71 /// a node. Put the new node in the stack of open elements.

Callers 1

insert_elementMethod · 0.80

Calls 1

ElementClass · 0.85

Tested by

no test coverage detected