The micro data to apply.
The root of the HTML element tree.
Optional options for applying data.
Read micro data from a HTML element tree as specified in the standard.
The elements to extract from.
Extracted micro data.
Read micro data from an HTML element tree.
The root of the HTML element tree.
The options for parsing the tree.
The parsed micro data.
Generated using TypeDoc
Apply micro data to an HTML element tree.
Generally, if a value is a string it will be set as the text for an element and if an object it will recurse on the properties. To support values that are an array,
HTMLTemplateElement
s are used. Each item in the array looks for a template with an attributedata-type
that matches the type. Strings look for a type ofText
.https://html.spec.whatwg.org/multipage/microdata.html