parse5
    Preparing search index...

    Interface ElementCreationContext<T>

    Parser state needed to establish a form-associated element's parser-established form owner.

    interface ElementCreationContext<
        T extends TreeAdapterTypeMap = TreeAdapterTypeMap,
    > {
        formElement: T["element"] | null;
        intendedParent: T["parentNode"];
        isInTemplate: boolean;
    }

    Type Parameters

    Index
    formElement: T["element"] | null

    The element referenced by the parser's form element pointer, if any.

    intendedParent: T["parentNode"]

    The target parent from the appropriate place for inserting a node.

    isInTemplate: boolean

    Whether the stack of open elements contains an HTML template element.