← v147/autofill-event · conformance
critique · rev 3
v147/autofill-event
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | major | Upgrade corrected two factual errors against the current WICG spec (read 2026-10-04, dated 25 Sep 2026): the old page said the event fires ON form controls AFTER autofill completes; spec 4.1/4.3 dispatches it at the Document BEFORE values are committed. The old example attached listeners to form/input elements; replaced with the spec's own document-level pattern. IDL now quoted verbatim (autofillValues, refill, AutofillEventInit, AutofillValueEntry, RefillCallback). Severity major records the pre-upgrade error, not a remaining one. |
| milestone-mapping | 4/5 | minor | Feature 5137581018841088 still appears in the milestone=147 listing under 'Origin trial' with listing name 'Autofill event' (queried 2026-10-04); route and identity unchanged. Noted honestly on-page: the detail record simultaneously reads 'Proposed' with origintrial:false — chromestatus self-inconsistency recorded, not resolved. |
| completeness | 4/5 | info | Revision 2: the three gaps from revision 1 now have stable child routes — constructor/ (AutofillEvent() + AutofillEventInit, synthetic dispatch per spec 6.1), full-address/ (spec 5 example verbatim, prose-vs-example placement divergence recorded), webdriver-bidi-trigger/ (CDDL, parameters, the three error codes and both example payloads verbatim from spec 7). Contract upgraded to implementation-sufficient with every absent datum stated on-page as a documented unknown (no BCD sub-entries; webdriver/bidi/autofill.json 404 vs sibling input.json 200, checked 2026-10-04). Independent review of inventory-vs-source remains pending. |
| explanation-quality | 4/5 | info | New lifecycle section explains fire-before-commit, refill re-dispatch with allowRefill=false, the implementation-defined refillTimeout, and why the target is the Document (spans shadow DOM / multiple documents, per explainer). Explainer-vs-spec divergence (bubbling, boolean values) is flagged explicitly rather than silently merged. |
| examples | 4/5 | info | Code example adapted from spec 1.2 (labelled), demonstrating autofillValues iteration, refill null-check and await with the InvalidStateError conditions in comments; refill-flow showcase concept embedded (HEAD 200, 2026-10-04) with four sibling concepts plus the editor's two yoavweiss.github.io demos linked from chromestatus sample_links. Example not executed against a flagged Chrome build. |
| browser-compat-fallbacks | 5/5 | info | Real BCD table from api/AutofillEvent.json (fetched raw 2026-10-04): Chrome 146 behind #enable-experimental-web-platform-features, Edge mirror, Firefox/Safari version_added:false with linked standards-positions (mozilla #1361, WebKit #431, both 'No signal' per the chromestatus record). Baseline banner states honestly that no web-features/webstatus.dev entry exists (query linked, dated) — no cross-browser support implied. |
| links-validity | 4/5 | minor | All previously unlinked source labels resolved ('chromestatus motivation', 'standards positions' now link their records). One honest exception: whatwg/html#4986 (inherited from the showcase page) could not be re-verified because github.com returns 403 via the session proxy; the page says so inline. BCD and runtime_enabled_features content verified via raw/googlesource endpoints. |
| accessibility | 4/5 | info | Single h1; sequential h2/h3 outline with anchor ids on every section; baseline banner role=note with aria-label; iframe has title + figcaption; tables keep header cells; external links target=_blank rel=noopener throughout. |
| responsive-ux | 4/5 | info | Applied the template's proven overflow guards: overflow-wrap on h1/lede/code, .table-wrap{overflow-x:auto} around all tables, pre{overflow-x:auto}, iframe max-width:100%. Desktop (1280px) headless-Chrome screenshot read during verification; mobile matrix run is the integrator's responsive task. |
| showcase-demo-relationship | 5/5 | info | CPS feature route and all five concept routes (autofill-log, autofill-vs-input, compatibility-lab, formdata-autofill-tester, refill-flow) HEAD-checked 200 on 2026-10-04; refill-flow embedded (directly demonstrates the spec's refill operation), siblings linked in the figcaption; conformance.json now records the refill-flow demo and feature-level CPS conformance route (td9n); its immutable assertions and suiteHash stayed unchanged. |
modern-web-guidance consulted
- form autofill autocomplete attribute dynamic address forms detection — Address forms should use correct autocomplete tokens so browser autofill can match fields; dynamic address forms must keep tokens accurate as fields change. (Applied: the example keeps spec-faithful autocomplete tokens (country, address-level1, postal-code) and the autofillValues/full-address prose explains matching via HTML autofill field names.)
- form autofill autocomplete attribute dynamic address forms detection — Prefer native form semantics and avoid hidden-field hacks; document how autofill interacts with dynamic controls. (Applied: the 'why it exists' section explains the hidden-field anti-pattern this API replaces, matching the guidance's stance.)
- responsive documentation tables code blocks horizontal overflow mobile — Data tables need header semantics and must stay readable on small screens without breaking layout. (Applied: every table is wrapped in .table-wrap{overflow-x:auto} with table-layout:fixed and overflow-wrap:anywhere on cells; header cells use th.)
- embedding third party iframe lazy loading performance — Defer offscreen/heavy embeds so they don't compete with initial render. (Applied: the showcase iframe uses loading="lazy" and sits below the code example.)
open questions
- ChromeStatus self-inconsistency: the milestone-147 listing files the feature under 'Origin trial' while the detail record says status 'Proposed' with origintrial:false (both queried 2026-10-04). Whether a registrable origin trial is actually open was not verified (the OT console is not curl-readable); the page quotes both records and the Chromium origin_trial_feature_name instead of picking one.
- Explainer vs spec vs implementation divergence: the WICG draft says bubbles=true, DOMString tuples, and exposes a constructor. Pinned Chromium source a903747 uses initEvent(type, false, false), {field, value} dictionaries, and no constructor. The overview and child pages now label draft examples as proposals; a real user-triggered event and Chrome 147 itself have not been observed.
- whatwg/html#4986 is linked on the showcase page for this feature but its title could not be re-verified (github.com 403 via session proxy); the see-also entry says so.
- BCD records Chrome 146 behind the experimental-web-platform-features preference while the page sits at v147 per the listing — both recorded; the 146-behind-flag vs 147-origin-trial relationship is plausible (flag first, OT next) but not confirmed by a primary source.
- 2026-10-08 bounded local Chrome 154 probe (without the flag: no interface; with --enable-blink-features=AutofillEvent: interface exposed, new AutofillEvent('autofill', {...}) throws TypeError: Illegal constructor). The test did not exercise genuine browser autofill, refill, full-address permissions/placement, or a pinned flagged Chrome 147 build. Source-fidelity corrections do not close the Chrome-147 runtime goal.
follow-up goals
- [medium · targeted-fix] Execute the overview, constructor and full-address examples against a Chrome 147 build with --enable-blink-features=AutofillEvent and record observed behavior (especially refill on synthetic events and full-address placement, both documented unknowns).
- [low · targeted-fix] Watch webstatus.dev for a web-features entry and BCD for Document 'autofill' event entries; replace the interim chromestatus status wording when the OT/Proposed discrepancy resolves.