Accept accepts Visitor to visit itself. The returned node should replace original node. ok returns false to stop visiting. Implementation of this method should first call visitor.Enter, assign the returned node to its method receiver, if skipChildren returns true, children should be skipped. Otherw
(v Visitor)
| 37 | // children should be skipped. Otherwise, call its children in particular order that |
| 38 | // later elements depends on former elements. Finally, return visitor.Leave. |
| 39 | Accept(v Visitor) (node Node, ok bool) |
| 40 | // Text returns the utf8 encoding text of the element. |
| 41 | Text() string |
| 42 | // OriginalText returns the original text of the element. |
no outgoing calls