← back to v152 · expose-the-autocorrect-global-html-attribute
conformance · v152
v152 · expose-the-autocorrect-global-html-attribute — conformance probe
7 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.
0
pass
0
fail
0
blocked
7
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
autocorrect-idl-on-htmlelement |
The autocorrect IDL attribute is defined as a global attribute on HTMLElement.prototype, so 'autocorrect' must be present on the prototype. spec ↗ | script | … | |
autocorrect-is-boolean |
Per spec, the IDL attribute reflects as a boolean (limited to known values, default 'on'). Reading it on a fresh input returns a boolean. spec ↗ | script | … | |
autocorrect-defaults-to-on |
The default state when the attribute is absent or invalid is 'on' — so a freshly-created input reports autocorrect===true. spec ↗ | script | … | |
autocorrect-off-reflects-content-attribute |
Setting the content attribute to 'off' must make the IDL getter return false. spec ↗ | script | … | |
autocorrect-setter-writes-content-attribute |
Setting the IDL attribute to false must write the content attribute as 'off' (per HTML reflection rules for enumerated boolean attributes). spec ↗ | script | … | |
autocorrect-on-textarea |
Because autocorrect is a global attribute, it is also exposed on textarea and contenteditable hosts — not just <input>. spec ↗ | script | … | |
autocorrect-on-contenteditable-div |
Global attribute means HTMLDivElement instances also reflect autocorrect; this verifies the attribute really lives on HTMLElement, not on form-control subclasses only. spec ↗ | script | … |