(data string, typ NodeType)
| 569 | } |
| 570 | |
| 571 | func (n *TNode) appendNode(data string, typ NodeType) *TNode { |
| 572 | m := createNode(data, typ) |
| 573 | m.Parent = n.Parent |
| 574 | n.NextSibling = m |
| 575 | m.PrevSibling = n |
| 576 | if n.Parent != nil { |
| 577 | n.Parent.LastChild = m |
| 578 | } |
| 579 | return m |
| 580 | } |
| 581 | |
| 582 | func (n *TNode) addAttribute(k, v string) { |
| 583 | n.Attr = append(n.Attr, Attribute{k, v}) |
nothing calls this directly
no test coverage detected