mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb: Implement HTMLElement.inputMode
This reflects the value of the `inputmode` content attribute
This commit is contained in:
parent
733c6b14ff
commit
12fc1de9ca
Notes:
github-actions[bot]
2024-11-26 18:09:03 +00:00
Author: https://github.com/tcl3
Commit: 12fc1de9ca
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2591
2 changed files with 14 additions and 1 deletions
|
@ -100,6 +100,7 @@ namespace AttributeNames {
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(is) \
|
__ENUMERATE_HTML_ATTRIBUTE(is) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(iscontenteditable) \
|
__ENUMERATE_HTML_ATTRIBUTE(iscontenteditable) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(ismap) \
|
__ENUMERATE_HTML_ATTRIBUTE(ismap) \
|
||||||
|
__ENUMERATE_HTML_ATTRIBUTE(inputmode) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(itemscope) \
|
__ENUMERATE_HTML_ATTRIBUTE(itemscope) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(kind) \
|
__ENUMERATE_HTML_ATTRIBUTE(kind) \
|
||||||
__ENUMERATE_HTML_ATTRIBUTE(label) \
|
__ENUMERATE_HTML_ATTRIBUTE(label) \
|
||||||
|
|
|
@ -52,12 +52,24 @@ HTMLElement includes GlobalEventHandlers;
|
||||||
HTMLElement includes ElementContentEditable;
|
HTMLElement includes ElementContentEditable;
|
||||||
HTMLElement includes HTMLOrSVGElement;
|
HTMLElement includes HTMLOrSVGElement;
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/#attr-inputmode
|
||||||
|
enum InputMode {
|
||||||
|
"none",
|
||||||
|
"text",
|
||||||
|
"tel",
|
||||||
|
"url",
|
||||||
|
"email",
|
||||||
|
"numeric",
|
||||||
|
"decimal",
|
||||||
|
"search"
|
||||||
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/#elementcontenteditable
|
// https://html.spec.whatwg.org/#elementcontenteditable
|
||||||
interface mixin ElementContentEditable {
|
interface mixin ElementContentEditable {
|
||||||
[CEReactions] attribute DOMString contentEditable;
|
[CEReactions] attribute DOMString contentEditable;
|
||||||
[FIXME, CEReactions] attribute DOMString enterKeyHint;
|
[FIXME, CEReactions] attribute DOMString enterKeyHint;
|
||||||
readonly attribute boolean isContentEditable;
|
readonly attribute boolean isContentEditable;
|
||||||
[FIXME, CEReactions] attribute DOMString inputMode;
|
[Reflect=inputmode, Enumerated=InputMode, CEReactions] attribute DOMString inputMode;
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLElement includes ElementCSSInlineStyle;
|
HTMLElement includes ElementCSSInlineStyle;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue