Creates an element node.
(&self, tag: &str, attributes: Vec<Attribute>)
| 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. |