Depth-first recursion into the HTML document node tree to accumulate/cascade styles

recurse_node_tree(node, xpath_styles, parent_style = list(), svg)

Arguments

node

current XML node

xpath_styles

list containing the accumulated styles for each xpath

parent_style

the style from the direct parent

svg

include SVG presentation tags in the cascade? default: FALSE

Value

updated xpath style lookup list