Add support for autocapitalize on contenteditable elements
The new spec for autocapitalize:
https://html.spec.whatwg.org/multipage/interaction.html#autocapitalization
states that it should be supported on all editable regions. This CL moves the
removes the current logic for implmenting autocapitalize specifically on <input>
and <textarea> elements and moves it into HTMLElement so we can support it on
all editable elements.
Note: I've added some logic to HTMLElement that changes the IDL behavior for
<input> types that don't support autocapitalize (URL, password, and email). This
is temporary and I will remove this in a later CL when I update our IDL behavior
to match the spec.
This CL also adds an integration test for Android so we can verify that
autocapitalize works correctly with contenteditable.
Bug: 776618
Change-Id: Icd1396c60e255fc756d3892d361a8387af73ed58
Reviewed-on: https://chromium-review.googlesource.com/871976
Commit-Queue: Ryan Landay <rlanday@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Changwan Ryu <changwan@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#530769}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1de83967752e0cf4f36f3a013b4f1ab687b88e11
26 files changed