[whatwg/dom] Autofill Event Needed (Issue #1416)

dujavi created an issue (whatwg/dom#1416)

### What is the issue with the DOM Standard?

**Issue**
Autofill can affect multiple components simultaneously. Additionally, there are inconsistent browser events around autofill. 

If you want to validate a multiple input autofill like an address you don’t want to validate 4 times (street, city, state, zip) - 4 events triggered for 4 input. What you want is a single autofill event from the browser with a list of the elements and values included in the event, right?

**Suggestion**
Event should include a reference (target) to the elements impacted by the autofill as well as the autofill type (address, phone, username, etc…) and values. There could be an option to preventDefault() or an option to change the values before they are applied.

Browsers should trigger a global autofill event on the document, iframe, and/or window (discuss). Should the event be on an element too? I would think not because it can get confusing when you have multiple events for what is actually a single event. There are pros and cons to having the event bubble down to the individual inputs, perhaps there should be a new event type for inputs.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1416
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1416@github.com>

Received on Monday, 27 October 2025 16:01:29 UTC