@federicocarboni/saxe
    Preparing search index...

    Interface Attributes

    An immutable collection of the attributes of an XML tag.

    Attributes are iterable and ordered as specified in the XML tag. Default attributes from internal declarations are positioned after explicitly specified attributes.

    interface Attributes {
        size: number;
        "[iterator]"(): IterableIterator<[string, string]>;
        entries(): IterableIterator<[string, string]>;
        forEach(
            callbackfn: (
                value: string,
                name: string,
                attributes: Attributes,
            ) => void,
            thisArg?: unknown,
        ): void;
        get(name: string): string | undefined;
        has(name: string): boolean;
        keys(): IterableIterator<string>;
        values(): IterableIterator<string>;
    }
    Index

    Properties

    size: number

    The number of attributes.

    Methods

    • Returns IterableIterator<[string, string]>

    • Returns IterableIterator<[string, string]>

      • Returns an iterator over the names and values of the attributes.
    • Executes callbackfn for each attribute.

      Parameters

      • callbackfn: (value: string, name: string, attributes: Attributes) => void
      • OptionalthisArg: unknown

      Returns void

    • Parameters

      • name: string

        Name of the attribute.

      Returns string | undefined

      • Returns the value of the attribute with the specified name. If there is no attribute with the specified name undefined is returned.
    • Parameters

      • name: string

        Name of the attribute.

      Returns boolean

      • Returns a boolean value indicating whether an attribute with the specified name is present.
    • Returns IterableIterator<string>

      • Returns an iterator over the names of the attributes.
    • Returns IterableIterator<string>

      • Returns an iterator over the values of the attributes.