WrapInnerNode wraps an HTML structure, matched by the given selector, around the content of element in the set of matched elements. The matched child is cloned before being inserted into the document. It returns the original set of elements.
(n *html.Node)
| 540 | // |
| 541 | // It returns the original set of elements. |
| 542 | func (s *Selection) WrapInnerNode(n *html.Node) *Selection { |
| 543 | return s.wrapInnerNodes(n) |
| 544 | } |
| 545 | |
| 546 | func (s *Selection) wrapInnerNodes(ns ...*html.Node) *Selection { |
| 547 | if len(ns) == 0 { |
nothing calls this directly
no test coverage detected