Extract HTML attributes from a DOM element, filtering out excluded keys and auto-generated TOC id attributes.
The DOM element
Attribute names to exclude
Filtered attribute map
Extract HTML attributes from a DOM element, filtering out excluded keys and auto-generated TOC id attributes.