Bug 1424284 - Part 1. Add inputmode to HTMLElement. r=smaug,jdai

`inputmode` attribute controls software keyboard layout like `<input type>`.
Originally this was by B2G (bug 746142) and for `<input>` element only.

WHATWG spec allows this attribute for HTML element and WebKit and Blink have
already implemented this.

Differential Revision: https://phabricator.services.mozilla.com/D69348
This commit is contained in:
Makoto Kato
2020-04-07 08:37:25 +00:00
parent c777377f63
commit 3be9f0b6d9
9 changed files with 35 additions and 413 deletions

View File

@@ -508,11 +508,6 @@ class HTMLInputElement final : public TextControlElement,
bool IsDraggingRange() const { return mIsDraggingRange; }
void SetIndeterminate(bool aValue);
void GetInputMode(nsAString& aValue);
void SetInputMode(const nsAString& aValue, ErrorResult& aRv) {
SetHTMLAttr(nsGkAtoms::inputmode, aValue, aRv);
}
nsGenericHTMLElement* GetList() const;
void GetMax(nsAString& aValue) { GetHTMLAttr(nsGkAtoms::max, aValue); }