@laserware/dominator
    Preparing search index...

    Function removeAttributes

    • Removes the attributes with names from the target.

      Type Parameters

      Parameters

      • target: null | Target

        Element, EventTarget, or CSS selector.

      • names: AttributeName<E>[]

        Array of attribute names to remove.

      Returns E

      Element representation of the specified target.

      elements!InvalidElementError if the specified target wasn't found.

      HTML (Before)

      <div
      id="example"
      role="slider"
      aria-valuemax="30"
      aria-label="Example"
      aria-disabled="false"
      >
      ...
      </div>

      Code

      const element = findElement("#example")!;

      removeAttributes(element, [
      "role",
      "aria-valuemax",
      "aria-disabled",
      ]);

      HTML (After)

      <div
      id="example"
      aria-label="Example"
      >
      ...
      </div>