Contents gets the children of each element in the Selection, including text and comment nodes. It returns a new Selection object containing these elements.
()
| 63 | // including text and comment nodes. It returns a new Selection object |
| 64 | // containing these elements. |
| 65 | func (s *Selection) Contents() *Selection { |
| 66 | return pushStack(s, getChildrenNodes(s.Nodes, siblingAllIncludingNonElements)) |
| 67 | } |
| 68 | |
| 69 | // ContentsFiltered gets the children of each element in the Selection, |
| 70 | // filtered by the specified selector. It returns a new Selection |