Append tag attributes — tagAppendAttributes
  v1.10.0|Source: 
  
  
    
  
    
  
  
R/tags.R
  Description
Append (tagAppendAttributes()), check existence (tagHasAttribute()),
and obtain the value (tagGetAttribute()) of HTML attribute(s).
Arguments
- tag
- a tag object. 
- ...
- Attributes to append as named argument-value pairs. A named argument with an - NAvalue is rendered as a boolean attribute (see example).
- .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 single- list()via- tagQuery().
- attr
- The name of an attribute. 
See also
tagAppendChildren(), tagQuery()