• Renames the given attribute to the given new name. aliases represent alternative names. Given a list of [name, ...aliases] the first existing value will be used for the target name. All attributes in that combined list will be removed.

    Parameters

    • node: ElementFilterParams

      Element filter parameters

    • name: string

      the original name to rename

    • targetName: string

      the new name of the attribute

    • Rest ...aliases: string[]

      possible alternative original names

    Returns void