Options
All
  • Public
  • Public/Protected
  • All
Menu

microdata-tooling

Index

Type aliases

Thing

Thing: ThingBase | string

Functions

apply

  • Apply micro data to an HTML element tree.

    remarks

    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, HTMLTemplateElements are used. Each item in the array looks for a template with an attribute data-type that matches the type. Strings look for a type of Text.

    see

    https://html.spec.whatwg.org/multipage/microdata.html

    Parameters

    • data: Thing

      The micro data to apply.

    • element: HTMLElement

      The root of the HTML element tree.

    • options: ApplyOptions = {}

      Optional options for applying data.

    Returns void

jsonify

parse

Generated using TypeDoc