Modify tag contents — tagAppendChild
v1.11.1|Source:
R/tags.R
Description
Modify the contents (aka children) of a tag object.
Arguments
- tag
a tag object.
- child
A child element to append to a parent tag.
- .cssSelector
A character string containing a CSS selector for targeting particular (inner) tags of interest. At the moment, only a combination of type (e.g,
div), class (e.g.,.my-class), id (e.g.,#myID), and universal (*) selectors within a given simple selector is supported. Note, if.cssSelectoris used, the returned tags will have their$childrenfields flattened to a singlelist()viatagQuery().- ...
a collection of
childelements.- list
Deprecated. Use
!!!instead to splice into....- after
an integer value (i.e., subscript) referring to the child position to append after.
See also
tagAppendAttributes(), tagQuery()