Skip to content

Commit c1d18ca

Browse files
committed
Rename values to autofillValues
1 parent d376fdb commit c1d18ca

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

index.bs

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ Abstract: This specification defines an event that fires when the user agent is
1111
Markup 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'>
2515
urlPrefix: 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
162152
entry is a tuple of the target {{HTMLElement}} and the value to be filled. The developer can
163153
iterate over these entries to inspect the pending autofill data and determine if the form needs
164154
to be adapted.
@@ -195,14 +185,14 @@ the form again.
195185
[Exposed=Window]
196186
interface AutofillEvent : Event {
197187
constructor(DOMString type, optional AutofillEventInit eventInitDict = {});
198-
readonly attribute FrozenArray&lt;AutofillValueEntry&gt; values;
188+
readonly attribute FrozenArray&lt;AutofillValueEntry&gt; autofillValues;
199189
readonly attribute RefillCallback? refill;
200190
};
201191

202192
callback RefillCallback = Promise&lt;undefined&gt; ();
203193

204194
dictionary AutofillEventInit : EventInit {
205-
sequence&lt;AutofillValueEntry&gt; values = [];
195+
sequence&lt;AutofillValueEntry&gt; 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

231221
This 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

236226
Each {{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=]
253243
1. Initialize |event|'s {{Event/type}} attribute to "<code>autofill</code>".
254244
1. Initialize |event|'s {{Event/bubbles}} attribute to true.
255245
1. 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|.
257247
1. Set |event|'s [=AutofillEvent/allow refill flag=] to |allowRefill|.
258248
1. Set |event|'s [=AutofillEvent/dispatch timestamp=] to the [=current high resolution time=].
259249
1. [=Dispatch=] |event| at |document|.

0 commit comments

Comments
 (0)