fn parse_element(&mut self) -> dom::Node {
        // Opening tag.
        assert_eq!(self.consume_char(), '<');
        let tag_name = self.parse_tag_name();
        let attrs = self.parse_attributes();
        assert_eq!(self.consume_char(), '>');

        // Contents.
        let children = self.parse_nodes();

        // Closing tag.
        assert_eq!(self.consume_char(), '<');
        assert_eq!(self.consume_char(), '/');
        assert_eq!(self.parse_tag_name(), tag_name);
        assert_eq!(self.consume_char(), '>');

        dom::elem(tag_name, attrs, children)
    }
/// Parse a single element, including its open tag, contents, and closing tag.
Parse a single element, including its open tag, contents, and closing tag.
Parse a single element including its open tag contents and closing tag .
fn parse_element(&mut self) -> dom::Node {
        // Opening tag.
        assert_eq!(self.consume_char(), '<');
        let tag_name = self.parse_tag_name();
        let attrs = self.parse_attributes();
        assert_eq!(self.consume_char(), '>');
        // Contents.
        let children = self.parse_nodes();
        // Closing tag.
        assert_eq!(self.consume_char(), '<');
        assert_eq!(self.consume_char(), '/');
        assert_eq!(self.parse_tag_name(), tag_name);
        assert_eq!(self.consume_char(), '>');
        dom::elem(tag_name, attrs, children)
    }
fn parse_element ( & mut self ) -> dom :: Node { // Opening tag. assert_eq ! ( self consume_char ( ) '<' ) ; let tag_name = self . parse_tag_name ( ) ; let attrs = self . parse_attributes ( ) ; assert_eq ! ( self consume_char ( ) '>' ) ; // Contents. let children = self . parse_nodes ( ) ; // Closing tag. assert_eq ! ( self consume_char ( ) '<' ) ; assert_eq ! ( self consume_char ( ) '/' ) ; assert_eq ! ( self parse_tag_name ( ) tag_name ) ; assert_eq ! ( self consume_char ( ) '>' ) ; dom :: elem ( tag_name , attrs , children ) }
Parse a single element, including its open tag, contents, and closing tag.
Parse a single element including its open tag contents and closing tag .
&mut self