Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autocapitalize props #30734

Merged
merged 17 commits into from
Dec 4, 2023
Merged
Prev Previous commit
Next Next commit
Update autocapitalize attribute documentation for mobile browser comp…
…atibility
ryo-manba committed Dec 3, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 736bccce6a01193bb000de3049b3cc2023140f25
5 changes: 3 additions & 2 deletions files/en-us/web/html/element/form/index.md
Original file line number Diff line number Diff line change
@@ -26,9 +26,10 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Global_attrib
- `accept-charset`
- : Space-separated {{Glossary("character encoding", "character encodings")}} the server accepts. The browser uses them in the order in which they are listed. The default value means [the same encoding as the page](/en-US/docs/Web/HTTP/Headers/Content-Encoding).
(In previous versions of HTML, character encodings could also be delimited by commas.)
- `autocapitalize` {{non-standard_inline}}

- : A nonstandard attribute used by iOS Safari that controls how textual form elements should be automatically capitalized. `autocapitalize` attributes on a form elements override it on `<form>`. Possible values:
- `autocapitalize`

- : An attribute used by mobile browsers that controls how textual form elements should be automatically capitalized. `autocapitalize` attributes on a form elements override it on `<form>`. When autocapitalize is not specified, the default behavior varies between mobile browsers. For example, in Chrome Android and Safari iOS, the default setting is `on`/`sentences`, whereas in Firefox Android, it defaults to `off`/`none`. Possible values:

- `none` or `off`: No automatic capitalization.
- `sentences` or `on`: Capitalize the first letter of each sentence.