@@ -11,16 +11,6 @@ Abstract: This specification defines an event that fires when the user agent is
1111Markup Shorthands : markdown yes
1212</pre>
1313
14- <pre class="biblio">
15- {
16- "WEBDRIVER-BIDI": {
17- "href": "https://w3c.github.io/webdriver-bidi/",
18- "title": "WebDriver BiDi",
19- "publisher": "W3C"
20- }
21- }
22- </pre>
23-
2414<pre class='anchors'>
2515urlPrefix: https://html.spec.whatwg.org/multipage/; spec: HTML
2616 type: dfn
@@ -111,7 +101,7 @@ document.addEventListener('autofill', async function(event) {
111101 let formElement = null;
112102
113103 // Find the country element and value
114- for (const [element, value] of event.values ) {
104+ for (const [element, value] of event.autofillValues ) {
115105 if (element.autocomplete === 'country' ) {
116106 countryValue = value;
117107 formElement = element.form;
@@ -158,7 +148,7 @@ document.addEventListener('autofill', async function(event) {
158148</script>
159149```
160150
161- The {{AutofillEvent/values }} attribute returns a list of [=autofill value entries=] , where each
151+ The {{AutofillEvent/autofillValues }} attribute returns a list of [=autofill value entries=] , where each
162152entry is a tuple of the target {{HTMLElement}} and the value to be filled. The developer can
163153iterate over these entries to inspect the pending autofill data and determine if the form needs
164154to be adapted.
@@ -195,14 +185,14 @@ the form again.
195185[Exposed=Window]
196186interface AutofillEvent : Event {
197187 constructor(DOMString type, optional AutofillEventInit eventInitDict = {});
198- readonly attribute FrozenArray<AutofillValueEntry> values ;
188+ readonly attribute FrozenArray<AutofillValueEntry> autofillValues ;
199189 readonly attribute RefillCallback? refill;
200190};
201191
202192callback RefillCallback = Promise<undefined> ();
203193
204194dictionary AutofillEventInit : EventInit {
205- sequence<AutofillValueEntry> values = [];
195+ sequence<AutofillValueEntry> autofillValues = [];
206196 boolean allowRefill = true;
207197};
208198
@@ -216,7 +206,7 @@ user agent is about to [=autofill=] form fields.
216206
217207## Attributes ## {#autofill-event-attributes}
218208
219- The <dfn attribute for=AutofillEvent>values </dfn> attribute returns a list of
209+ The <dfn attribute for=AutofillEvent>autofillValues </dfn> attribute returns a list of
220210[=autofill value entries=] . Each entry is a tuple where the first element is an {{HTMLElement}}
221211(the form control to be filled) and the second element is a {{DOMString}} (the value to fill).
222212
@@ -230,7 +220,7 @@ The {{AutofillEvent/refill}} attribute is `null` when:
230220
231221This prevents infinite loops where a page continuously modifies the form and requests refills.
232222
233- Each {{AutofillEvent}} has an associated <dfn for=AutofillEvent>values list</dfn>
223+ Each {{AutofillEvent}} has an associated <dfn for=AutofillEvent>autofill values list</dfn>
234224(a [=list=] of [=autofill value entries=] ), initially an empty [=list=] .
235225
236226Each {{AutofillEvent}} has an associated <dfn for=AutofillEvent>allow refill flag</dfn>
@@ -253,7 +243,7 @@ To <dfn>fire an autofill event</dfn> given a [=document=] |document|, a [=list=]
2532431. Initialize |event|'s {{Event/type}} attribute to "<code> autofill</code> ".
2542441. Initialize |event|'s {{Event/bubbles}} attribute to true.
2552451. Initialize |event|'s {{Event/cancelable}} attribute to false.
256- 1. Set |event|'s [=AutofillEvent/values list=] to |entries|.
246+ 1. Set |event|'s [=AutofillEvent/autofill values list=] to |entries|.
2572471. Set |event|'s [=AutofillEvent/allow refill flag=] to |allowRefill|.
2582481. Set |event|'s [=AutofillEvent/dispatch timestamp=] to the [=current high resolution time=] .
2592491. [=Dispatch=] |event| at |document|.
0 commit comments