`@param {Boolean} [all] Whether text nodes as well as element nodes (the default) may be returned` - we wrap optional param names in square brackets. You can also specifically call out text nodes, avoiding the need for the reader to infer it.