@@ -10260,7 +10260,7 @@ interface HTMLFormElement extends HTMLElement {
10260
10260
*
10261
10261
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
10262
10262
*/
10263
- autocomplete: string ;
10263
+ autocomplete: AutoFillBase ;
10264
10264
/**
10265
10265
* Retrieves a collection, in source order, of all controls in a given form.
10266
10266
*
@@ -10928,7 +10928,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
10928
10928
*
10929
10929
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
10930
10930
*/
10931
- autocomplete: string ;
10931
+ autocomplete: AutoFill ;
10932
10932
capture: string;
10933
10933
/** Sets or retrieves the state of the check box or radio button. */
10934
10934
checked: boolean;
@@ -12309,7 +12309,7 @@ declare var HTMLScriptElement: {
12309
12309
*/
12310
12310
interface HTMLSelectElement extends HTMLElement {
12311
12311
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */
12312
- autocomplete: string ;
12312
+ autocomplete: AutoFill ;
12313
12313
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */
12314
12314
disabled: boolean;
12315
12315
/**
@@ -13111,7 +13111,7 @@ declare var HTMLTemplateElement: {
13111
13111
*/
13112
13112
interface HTMLTextAreaElement extends HTMLElement {
13113
13113
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
13114
- autocomplete: string ;
13114
+ autocomplete: AutoFill ;
13115
13115
/** Sets or retrieves the width of the object. */
13116
13116
cols: number;
13117
13117
/** Sets or retrieves the initial contents of the object. */
@@ -27926,6 +27926,9 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
27926
27926
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
27927
27927
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
27928
27928
type AlgorithmIdentifier = Algorithm | string;
27929
+ type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
27930
+ type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
27931
+ type AutoFillSection = `section-${string}`;
27929
27932
type BigInteger = Uint8Array;
27930
27933
type BinaryData = ArrayBuffer | ArrayBufferView;
27931
27934
type BlobPart = BufferSource | Blob | string;
@@ -27976,6 +27979,8 @@ type NamedCurve = string;
27976
27979
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
27977
27980
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
27978
27981
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
27982
+ type OptionalPostfixToken<T extends string> = ` ${T}` | "";
27983
+ type OptionalPrefixToken<T extends string> = `${T} ` | "";
27979
27984
type PerformanceEntryList = PerformanceEntry[];
27980
27985
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
27981
27986
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
@@ -28000,6 +28005,12 @@ type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
28000
28005
type AudioContextState = "closed" | "running" | "suspended";
28001
28006
type AuthenticatorAttachment = "cross-platform" | "platform";
28002
28007
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
28008
+ type AutoFillAddressKind = "billing" | "shipping";
28009
+ type AutoFillBase = "" | "off" | "on";
28010
+ type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";
28011
+ type AutoFillContactKind = "home" | "mobile" | "work";
28012
+ type AutoFillCredentialField = "webauthn";
28013
+ type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username";
28003
28014
type AutoKeyword = "auto";
28004
28015
type AutomationRate = "a-rate" | "k-rate";
28005
28016
type AvcBitstreamFormat = "annexb" | "avc";
0 commit comments