addElement adds a child element based on the current token.
()
| 335 | |
| 336 | // addElement adds a child element based on the current token. |
| 337 | func (p *parser) addElement() { |
| 338 | p.addChild(&Node{ |
| 339 | Type: ElementNode, |
| 340 | DataAtom: p.tok.DataAtom, |
| 341 | Data: p.tok.Data, |
| 342 | Attr: p.tok.Attr, |
| 343 | }) |
| 344 | } |
| 345 | |
| 346 | // Section 12.2.4.3. |
| 347 | func (p *parser) addFormattingElement() { |
no test coverage detected