browser-compat-data
browser-compat-data copied to clipboard
html.global_attributes.autocapitalize - Safari supports autocapitalize
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize
What specific section or headline is this issue about?
Browser compatibility
What information was incorrect, unhelpful, or incomplete?
This section shows "No"
What did you expect to see?
I expect to see "Yes", because I have tested this on Safari on iOS--and, the Usage notes section of this MDN page states:
Chrome and Safari default to on/sentences
Do you have any supporting links, references, or citations?
https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html#//apple_ref/doc/uid/TP40008058-SW1
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/html/global_attributes/autocapitalize - MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/html/global_attributes/autocapitalize/index.md
- Last commit: https://github.com/mdn/content/commit/26ea1a065b861bb59ae1dd14dea053e62ad39969
- Document last modified: 2024-01-02T04:26:07.000Z
https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html#//apple_ref/doc/uid/TP40008058-SW1
It looks like that page refers to Safari on iOS, not Safari on macOS.
I just tested these MDN examples in Safari 18.4, and autocapitalize does not appear to be supported.
Let's add this Safari bug as impl_url below: https://bugs.webkit.org/show_bug.cgi?id=180821
https://github.com/mdn/browser-compat-data/blob/d23e7911be0dc755f7674d6a767068c0e602c62c/html/global_attributes.json#L108-L110
@lcichanowicz Would you like to open a PR with this change? š
I just tested these MDN examples in Safari 18.4, and autocapitalize does not appear to be supported.
On iOS Safari 18.6.2 all the demos work as expected. Iād therefore recommend to mark Safari as compatible.
(Sorry for the duplicate issue)
Just to be clear, autocapitalize only works on Safari on iOS, not on Safari on macOS.
It looks like the feature was upstreamed via https://github.com/WebKit/WebKit/commit/22c5c1863b7c0a325837bc25097e1e12dccab950 in WebKit 538.10.0 before Safari 8, but it was actually supported since Safari iOS 5 (confirmed by testing this JSBin via BrowserStack Live on iPads 2 running Safari iOS 4.3.2 and Safari on iOS 5.0).
According to https://caniuse.com/mdn-api_htmlelement_autocapitalize, autocapitalize was:
- partially supported from Safari on iOS 3.2 ("Supported on
HTMLFormElement,HTMLInputElement, andHTMLTextAreaElementonly."), and - fully supported from Safari on iOS 10.3.
As for (1), my findings above confirms what BCD already says, i.e. that Safari on iOS before 5 did not support this feature.
As for (2), this is confirmed by bug 164538, which added autocapitalize support for contenteditable via https://github.com/WebKit/WebKit/commit/c6c7c84c3c972a19fd96c03c6f9ef582a9ca9d8f in WebKit 603.1.13 before Safari on iOS 10.3.
So here's what we should do:
- [ ] Update the Safari statement with the impl_url (see my previous comment).
- [ ] Split up the Safari iOS statement into two, with full support from 10.3, and partial support from 5 with
"notes": "No effect on `contenteditable` elements. See [bug 164538](https://webkit.org/b/164538).".
@lcichanowicz @johannesmutter Who of you could open a PR with these changes? š
I just tested these MDN examples in Safari 18.4, and
autocapitalizedoes not appear to be supported.
@caugner did you also test in Chrome and Firefox on macOS? I'm getting similar results to https://github.com/mdn/browser-compat-data/issues/22632#issuecomment-2542614008 suggesting that the bug may not be unique to Safari. Probably worth more investigation, and closing one of these issues as a dupe.