diff --git a/source b/source index 4a5416a2260..09230c2df53 100644 --- a/source +++ b/source @@ -11721,6 +11721,7 @@ interface HTMLElement : Element { readonly attribute DOMString accessKeyLabel; [CEReactions] attribute boolean draggable; [CEReactions] attribute boolean spellcheck; + [CEReactions] attribute DOMString writingSuggestions; [CEReactions] attribute DOMString autocapitalize; [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText; @@ -12990,6 +12991,7 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%
tabindex
title
translate
writingsuggestions
User agents must only consider the following pieces of text as checkable for the purposes of +
User agents should only consider the following pieces of text as checkable for the purposes of this feature:
User agents offer writing suggestions as users type into editable regions, either in form
+ controls (e.g., the textarea
element) or in elements in an editing host.
The writingsuggestions
content attribute is an
+ enumerated attribute with the following keywords and states:
Keyword + | State + | Brief description + |
---|---|---|
true
+ | true + | Writing suggestions should be offered on this element. + |
(The empty string) + | ||
false
+ | false + | Writing suggestions should not be offered on this element. + |
The attribute's missing value default is the default state. The default state indicates
+ that the element is to act according to a default behavior, possibly based on the parent
+ element's own writingsuggestions
state, as defined
+ below.
The attribute's invalid value default is the true state.
+ +element.writingSuggestions [ = value ]
Returns "true
" if the user agent is to offer writing suggestions under
+ the scope of the element; otherwise, returns "false
".
Can be set, to override the default and set the
+ writingsuggestions
content attribute.
The computed writing suggestions value of a given element is + determined by running the following steps:
+ +If element's writingsuggestions
+ content attribute is in the false
+ state, return "false
".
If element's writingsuggestions
content attribute is in the default state, element has a
+ parent element, and the computed writing suggestions value of
+ element's parent element is "false
", then return
+ "false
".
Return "true
".
The writingSuggestions
getter steps are:
Return this's computed writing suggestions value.
The writingSuggestions
IDL
+ attribute is not affected by user preferences that override the writingsuggestions
content attribute, and therefore
+ might not reflect the actual writing suggestions state.
The writingSuggestions
setter steps are:
Set this's writingsuggestions
+ content attribute to the given value.
User agents should only offer suggestions within an element's scope if the + result of running the following algorithm given element returns true:
+ +If the user has disabled writing suggestions, then return false.
If none of the following conditions are true:
+ +element is an input
element whose type
attribute is in either the Text, Search, Telephone, URL,
+ or Email state and is mutable;
element is a textarea
element that is mutable; or
element is an editing host or is + editable
then return false.
+If element has an inclusive ancestor with a writingsuggestions
content attribute that's not in the
+ default and the nearest such
+ ancestor's writingsuggestions
content attribute is
+ in the false state, then return
+ false.
Otherwise, return true.
This specification does not define the user interface for writing suggestions. + A user agent could offer on-demand suggestions, continuous suggestions as the user types, inline + suggestions, autofill-like suggestions in a popup, or could use other interfaces.
+Some methods of entering text, for example virtual keyboards on mobile devices, and also voice @@ -139954,7 +140100,9 @@ interface External {
spellcheck
true
"; "false
"
+ true
";
+ "false
";
+ the empty string
src
audio
;
@@ -140142,6 +140290,13 @@ interface External {
soft
";
"hard
"
+ writingsuggestions
+ true
";
+ "false
";
+ the empty string
An asterisk (*) in a cell indicates that the actual rules are more @@ -143187,6 +143342,7 @@ INSERT INTERFACES HERE Samy Kamkar, Sander van Lambalgen, Sanjoy Pal, + Sanket Joshi, Sarah Gebauer, Sarven Capadisli, Satrujit Behera,