trackNewElements
Invoked by the Mutation Observer Callback when detecting Nodes added to the DOM.
Finds all TaggedElements, including the given one, and invokes trackNewElement for each of them.
For every node with TaggingAttribute.tagChildren it invokes processTagChildrenElement and then and invokes trackNewElement for those as well.
const trackNewElements = (
element: Element,
tracker: BrowserTracker,
console?: TrackerConsole
) => void
Parameters
type | default value | ||
---|---|---|---|
required | element | Element | |
required | tracker | BrowserTracker | |
optional | console | TrackerConsole |