From 5a3eac7ff894ed7eed9aa6524f40d058f8b2c774 Mon Sep 17 00:00:00 2001
From: Sanket Joshi
User agents can offer writing suggests as users modify editable text, either in form
+ controls (such as the value of textarea
elements), or in elements in an editing
+ host (e.g. using contenteditable
).
For each element, user agents must establish a default + behavior, either through defaults or through preferences expressed by the user. There are + three possible default behaviors for each element:
+ +writingsuggestions
attribute.
+
+ writingsuggestions
attribute.
+
+ The writingsuggestions
+ attribute is an enumerated attribute whose keywords are the empty string, true
and false
. The empty string and the true
keyword map to the true state. The false
+ keyword maps to the false state. In addition, there is a third state, the default
+ state, which is the missing value default and invalid value default.
The true state indicates that the element is to have its spelling and
+ grammar checked. The default state indicates that the element is to act according to a
+ default behavior, possibly based on the parent element's own spellcheck
state, as defined below. The false state
+ indicates that the element is not to be checked.
element.writingsuggestions [ = value ]
Returns "on" if writing suggestions are explicitly enabled for the element, "off" if they are explicitly disabled, or an empty string if this + attribute has not been explicitly set.
+ +Can be set, to override the default and set the writingsuggestions
content attribute.
The writingsuggestions
IDL
+ attribute, on getting, must return true if the element's writingsuggestions
content attribute is in the true state, or if
+ the element's writingsuggestions
content attribute is in the
+ default state and the element's default
+ behavior is true-by-default, or if
+ the element's writingsuggestions
content attribute is in the
+ default state and the element's default
+ behavior is inherit-by-default and
+ the element's parent element's writingsuggestions
IDL attribute would
+ return true; otherwise, if none of those conditions applies, then the attribute must instead
+ return false.
The writingsuggestions
IDL attribute is not affected
+ by user preferences that override the writingsuggestions
content
+ attribute, and therefore might not reflect the actual spellchecking state.
On setting, if the new value is true, then the element's writingsuggestions
content attribute must be set to the literal string
+ "true
", otherwise it must be set to the literal string "false
".
+
+
User agents must only consider the following pieces of text as checkable for the purposes of + this feature:
+ +input
elements whose type
attributes are in the Text, Search,
+ URL, or Email states and that are mutable (i.e. that do not have the readonly
attribute specified and that are not disabled).textarea
elements that do not
+ have a readonly
attribute and that are not disabled.Text
nodes that are children of editing
+ hosts or editable elements.For text that is part of a Text
node, the element with which the text is
+ associated is the element that is the immediate parent of the first character of the word,
+ sentence, or other piece of text. For text in attributes, it is the attribute's element. For the
+ values of input
and textarea
elements, it is the element itself.
To determine if a word, sentence, or other piece of text in an applicable element (as defined + above) is to have spelling- and grammar-checking enabled, the UA must use the following + algorithm:
+ +spellcheck
content attribute, then: if that attribute is in the
+ true state, then checking is enabled; otherwise, if that attribute is in the false
+ state, then checking is disabled.spellcheck
content attribute that is not in the default
+ state, then: if the nearest such ancestor's writingsuggestions
+ content attribute is in the true state, then checking is enabled; otherwise, checking is
+ disabled.If the checking is enabled for a word/sentence/text, the user agent should indicate spelling
+ and grammar errors in that text. User agents should take into account the other semantics given in
+ the document when suggesting spelling and grammar corrections. User agents may use the language of
+ the element to determine what spelling and grammar rules to use, or may use the user's preferred
+ language settings. UAs should use input
element attributes such as pattern
to ensure that the resulting value is valid, where
+ possible.
If checking is disabled, the user agent should not indicate spelling or grammar errors for that + text.
+ +The element with ID "a" in the following example would be the one used to determine if the + word "Hello" is checked for spelling errors. In this example, it would not be.
+ +<div contenteditable="true">
+ <span spellcheck="false" id="a">Hell</span><em>o!</em>
+</div>
+
+ The element with ID "b" in the following example would have checking enabled (the leading
+ space character in the attribute's value on the input
element causes the attribute
+ to be ignored, so the ancestor's value is used instead, regardless of the default).
<p spellcheck="true">
+ <label>Name: <input spellcheck=" false" id="b"></label>
+</p>
+
+ This specification does not define the user interface for spelling and grammar + checkers. A user agent could offer on-demand checking, could perform continuous checking while the + checking is enabled, or could use other interfaces.
+Some methods of entering text, for example virtual keyboards on mobile devices, and also voice
@@ -141401,6 +141604,7 @@ INSERT INTERFACES HERE
Samy Kamkar,
Sander van Lambalgen,
Sanjoy Pal,
+ Sanket Joshi,
Sarah Gebauer,
Sarven Capadisli,
Satrujit Behera,
From 26daf8a7287417c12053efefbb50ba0f849db0c0 Mon Sep 17 00:00:00 2001
From: Sanket Joshi For each element, user agents must establish a default
- behavior, either through defaults or through preferences expressed by the user. There are
- three possible default behaviors for each element: The The attribute's missing value default and invalid value default are both the Off state. The The true state indicates that the element is to have its spelling and
- grammar checked. The default state indicates that the element is to act according to a
- default behavior, possibly based on the parent element's own The The The An asterisk (*) in a cell indicates that the actual rules are more
From c9abb7a1142d12e0e2d1f181fc5bbdbd33bb4dad Mon Sep 17 00:00:00 2001
From: Sanket Joshi User agents can offer writing suggests as users modify editable text, either in form
- controls (such as the value of User agents may offer writing suggestions as users type into editable regions, either in form
+ controls (ex. the User agents must establish a default
+ writing suggestions state (ex. based on preferences expressed by the user) for each element.
+ There are two possible default writing suggestions states: The The attribute's missing value default and invalid value default are both the Off state. Returns "on" if writing suggestions are explicitly enabled for the element, "off" if they are explicitly disabled, or an empty string if this
- attribute has not been explicitly set. Returns "on" if the user agent might offer writing suggestions on this element; otherwise, returns "off". Can be set, to override the default and set the The On setting, if the new value is true, then the element's User agents must establish a default
- writing suggestions state (ex. based on preferences expressed by the user) for each element.
- There are two possible default writing suggestions states: For each element, user agents must establish a default
+ behavior from amongst the following behaviors: The The attribute's missing value default and invalid value default are both the default state. Returns "on" if the user agent might offer writing suggestions on this element; otherwise, returns "off". Returns the keyword value corresponding to the writing suggestions state for the current element. Can be set, to override the default and set the The The The On setting, if the new value is "on", then the element's The User agents must only consider the following pieces of text as checkable for the purposes of
- this feature: User agents may only offer writing suggestions within the scope of the following element types. For text that is part of a To determine if a word, sentence, or other piece of text in an applicable element (as defined
- above) is to have spelling- and grammar-checking enabled, the UA must use the following
- algorithm: To determine if writing suggestions may be provided within a given element's scope, the user agent must use
+ the following algorithm: If the checking is enabled for a word/sentence/text, the user agent should indicate spelling
- and grammar errors in that text. User agents should take into account the other semantics given in
- the document when suggesting spelling and grammar corrections. User agents may use the language of
- the element to determine what spelling and grammar rules to use, or may use the user's preferred
- language settings. UAs should use If checking is disabled, the user agent should not indicate spelling or grammar errors for that
- text. The element with ID "a" in the following example would be the one used to determine if the
- word "Hello" is checked for spelling errors. In this example, it would not be. The element with ID "b" in the following example would have checking enabled (the leading
- space character in the attribute's value on the This specification does not define the user interface for spelling and grammar
- checkers. A user agent could offer on-demand checking, could perform continuous checking while the
- checking is enabled, or could use other interfaces. 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. The User agents may only offer writing suggestions within the scope of the following element types. User agents may offer writing suggestions as users type into editable regions, either in form
- controls (ex. the For each element, user agents must establish a default
behavior from amongst the following behaviors: The On setting, if the new state is "on", then the element's User agents may only offer writing suggestions within the scope of the following element types. The The The On setting, if the new state is "on", then the element's On setting, if the new state is "true", then the element's User agents may only offer writing suggestions within the scope of the following element types. An asterisk (*) in a cell indicates that the actual rules are more
From ccaac6c9b7655e4b3d36aabeed46866540f42597 Mon Sep 17 00:00:00 2001
From: Sanket Joshi User agents may offer writing suggestions as users type into editable regions, either in form
+ User agents offer writing suggestions as users type into editable regions, either in form
controls (ex. the User agents may only offer writing suggestions within the scope of the following element types. User agents must only offer writing suggestions within the scope of the following element types. The attribute's missing value default and invalid value default are both the default state. The default state
- indicates that the element is to act according to its established
- default behavior. The inherit state indicates that
+ the element's writing suggestions state is the same as its parent element's, or the same as its
+ parent's host if its parent is a
+ shadow root. Elements that do not have a
+ shadow-including ancestor cannot be in
+ the inherit state.
+
+ For elements that can be in the inherit
+ state, the attribute's missing value default is the inherit state. For all other elements,
+ the attribute's missing value default is the true state.
+
+ The attribute's invalid value default is the true state.
On setting, if the new state is "true", then the element's User agents must only offer writing suggestions within the scope of the following element types. The The The On setting, if the new state is "true", then the element's On setting, if the new value is an ASCII case-insensitive match for the string "false", then the element's
+ User agents must only offer writing suggestions within the scope of the following element types. For each element, user agents must establish a default
- behavior from amongst the following behaviors: The The inherit state indicates that
the element's writing suggestions state is the same as its parent element's, or the same as its
- parent's host if its parent is a
+ parent's host element if its parent is a
shadow root. Elements that do not have a
shadow-including ancestor cannot be in
the inherit state.
@@ -80894,6 +80894,8 @@ body { display:none }
User agents must only offer writing suggestions within the scope of the following element types. To determine if writing suggestions may be provided within a given element's scope, the user agent must use
+ To determine if writing suggestions should be provided within a given element's scope, the user agent must use
the following algorithm: This specification does not define the user interface for writing suggestions.
From 1482e04d6a93bdc3e43736e3783acb3ba2c1703d Mon Sep 17 00:00:00 2001
From: Sanket Joshi The inherit state indicates that
the element's writing suggestions state is the same as its parent element's, or the same as its
- parent's host element if its parent is a
+ parent's host element's if its parent is a
shadow root. Elements that do not have a
shadow-including ancestor cannot be in
the inherit state.
@@ -80870,10 +80870,10 @@ body { display:none }
Returns the keyword value corresponding to the writing suggestions state for the current element. Returns "true" or "false" based on the state of the Can be set, to override the default and set the Can be set, to change that state. For elements that can be in the inherit
state, the attribute's missing value default is the inherit state. For all other elements,
the attribute's missing value default is the true state.
+ data-x="attr-writingsuggestions-true-state">true state. The attribute's invalid value default is the true state.
+ data-x="attr-writingsuggestions-true-state">true state. On setting, if the new value is an ASCII case-insensitive match for the string "false", then the element's
The inherit state indicates that
- the element's writing suggestions state is the same as its parent element's, or the same as its
- parent's host element's if its parent is a
- shadow root. Elements that do not have a
- shadow-including ancestor cannot be in
- the inherit state. For elements that can be in the inherit
state, the attribute's missing value default is the false state, or if the element's
The User agents offer writing suggestions as users type into editable regions, either in form
- controls (ex. the The To determine if writing suggestions should be provided within a given element's scope, the user agent must use
- the following algorithm: User agents must only offer suggestions within an element's scope if the
+ result of running the following algorithm given element returns true: This specification does not define the user interface for writing suggestions.
From 8e850bd8730567c3f5668de1a736a5de48c5441f Mon Sep 17 00:00:00 2001
From: Dan Clark User agents offer writing suggestions as users type into editable regions, either in form
- controls (e.g., the The The inherit state indicates that
- the element's writing suggestions state is the same as its parent element's. Elements that do
- not have a parent element cannot be in the
- inherit state. The inherit state indicates that the
+ element's writing suggestions state is the same as its parent element's. Elements that do not
+ have a parent element cannot be in the
+ inherit state. For elements that can be in the inherit
- state, the attribute's missing value default is the inherit state. For all other elements,
- the attribute's missing value default is the true state. For elements that can be in the inherit state, the attribute's missing value default is the inherit state. For all other elements, the
+ attribute's missing value default is the true state. The attribute's invalid value default is the true state. The The The On setting, if the new value is an ASCII case-insensitive match for the string "false", then the element's
- On setting, if the new value is an ASCII case-insensitive match for the string
+ "false", then the element's User agents must only offer writing suggestions within the scope of the following element types. User agents must only offer writing suggestions within the scope of the following element
+ types. The Returns "true" or "false" based on the state of the The The The User agents offer writing suggestions as users type into editable regions, either in form
controls (e.g., the The The On setting, if the new value is an ASCII case-insensitive match for the string
- "false", then the element's The The On setting, if the new value is an ASCII case-insensitive match for the string
+ "false", then the element's User agents must only offer writing suggestions within the scope of the following element
- types. User agents must only offer suggestions within an element's scope if the
result of running the following algorithm given element returns true: If none of the following conditions are true: then return false. The The On setting, if the new value is an ASCII case-insensitive match for the string
- "false", then the element's If this's If this's Return "true". The The If the given value is an ASCII case-insensitive match for the string
+ "false", then set this's Otherwise, set this's Returns "true" or "false" based on the state of the Returns true if the user agent is to offer writing suggestions under the scope of the
+ element; otherwise, returns false. Can be set, to change that state. Can be set, to override the default and set the The inherit state indicates that the
- element's writing suggestions state is the same as its parent element's. Elements that do not
- have a parent element cannot be in the
- inherit state. For elements that can be in the inherit state, the attribute's missing value default is the inherit state. For all other elements, the
- attribute's missing value default is the true state. 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 The attribute's invalid value default is the true state. If this's Return "true". Return "true". An asterisk (*) in a cell indicates that the actual rules are more
From 743eeb133407ceaf9e7d089ad37501bbf35a5a88 Mon Sep 17 00:00:00 2001
From: Dan Clark Returns true if the user agent is to offer writing suggestions under the scope of the
- element; otherwise, returns false. Returns " Can be set, to override the default and set the If this's If this's Return "true". Return " The If the given value is an ASCII case-insensitive match for the string
- "false", then set this's Otherwise, set this's The computed writing suggestions value of a given element is
+ deteremined by running the following steps: If element's If element's Return " The If this's If this's Return " Return this's computed writing suggestions value. The If the user has disabled writing suggestions, then return false. If none of the following conditions are true: element is an element is a element is an editing host or is
+ editable If element has an inclusive ancestor with a Otherwise, return true. This specification does not define the user interface for writing suggestions.
From c36127afc7be71d76eb25a27353a89fc39fd4c6e Mon Sep 17 00:00:00 2001
From: Dan Clark The If the given value is an ASCII case-insensitive match for the string
- " Otherwise, set this's Set this's The computed writing suggestions value of a given element is
- deteremined by running the following steps: The computed writing suggestions value of a given element is
+ determined by running the following steps: If element's If element's If element's If element's Return " Return " The The Return this's computed writing suggestions value. Return this's computed writing suggestions value. The The The The Set this's Set this's element is a element is a element is an editing host or is
- editable element is an editing host or is
+ editable then return false. element is an 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 must only offer suggestions within an element's scope if the
+ User agents should only offer suggestions within an element's scope if the
result of running the following algorithm given element returns true:tabindex
title
translate
writingsuggestions
textarea
elements), or in elements in an editing
host (e.g. using contenteditable
).
-
-
+ writingsuggestions
attribute.
-
- writingsuggestions
attribute.
+ writingsuggestions
content attribute is an
+ enumerated attribute with the following keywords and states:
+
+
-
+
+ Keyword
+ State
+ Brief description
+
+ off
+ Off
+ UAs will not offer writing suggestions on this element.
+
+ on
+ On
+ UAs may offer writing suggestions on this element.
+
writingsuggestions
- attribute is an enumerated attribute whose keywords are the empty string, true
and false
. The empty string and the true
keyword map to the true state. The false
- keyword maps to the false state. In addition, there is a third state, the default
- state, which is the missing value default and invalid value default.spellcheck
state, as defined below. The false state
- indicates that the element is not to be checked.
@@ -80842,20 +80834,7 @@ body { display:none }
writingsuggestions
IDL
- attribute, on getting, must return true if the element's writingsuggestions
content attribute is in the true state, or if
- the element's writingsuggestions
content attribute is in the
- default state and the element's default
- behavior is true-by-default, or if
- the element's writingsuggestions
content attribute is in the
- default state and the element's default
- behavior is inherit-by-default and
- the element's parent element's writingsuggestions
IDL attribute would
- return true; otherwise, if none of those conditions applies, then the attribute must instead
- return false.writingsuggestions
IDL attribute is not affected
+ writingsuggestions
IDL attribute is not affected
by user preferences that override the writingsuggestions
content
attribute, and therefore might not reflect the actual spellchecking state. How the value of the form control is to be wrapped for form submission
" soft
";
"hard
"
+
+ writingsuggestions
+ HTML elements
+ Whether the element can offer writing suggestions or not.
+ " on
"; "off
"
textarea
elements), or in elements in an editing
- host (e.g. using contenteditable
).textarea
element) or in elements in an editing
+ host (ex. using contenteditable
).
+
+ writingsuggestions
attribute.
+
+ writingsuggestions
content attribute is an
@@ -80796,27 +80818,21 @@ body { display:none }
off
- Off
- UAs will not offer writing suggestions on this element.
+ data-x="attr-writingsuggestions-on">on
+ default
+ The user agent will act according to the default writing suggestions state
+ established for this element.
on
- On
- UAs may offer writing suggestions on this element.
+ data-x="attr-writingsuggestions-off">off
+ off
+ The user agent will not offer writing suggestions on this element.
-
-
-
-
+ data-x="attr-writingsuggestions-default-state">default state.
element.writingsuggestions [ = value ]
writingsuggestions
content attribute.writingsuggestions
IDL attribute is not affected
by user preferences that override the writingsuggestions
content
- attribute, and therefore might not reflect the actual spellchecking state.On setting, if the new value is "on", then the element's
writingsuggestions
content attribute must be set to the literal string
- "true
", otherwise it must be set to the literal string "false
".
+ "on
", otherwise it must be set to the literal string "off
".
From ea0bfc1c31fa94893c9394d2768e36aa9c1db927 Mon Sep 17 00:00:00 2001
From: Sanket Joshi textarea
element) or in elements in an editing
host (ex. using contenteditable
).
-
- writingsuggestions
attribute.
+
+
+ writingsuggestions
content attribute is an
@@ -80819,147 +80815,117 @@ body { display:none }
+ on
- default
- The user agent will act according to the default writing suggestions state
- established for this element.
+ on
+ The user agent may offer writing suggestions on this element.
+
+ (The empty string)
off
+ data-x="attr-writingsuggestions-off">off
off
- The user agent will not offer writing suggestions on this element.
+ The user agent must not offer writing suggestions on this element.
+
- element.writingsuggestions [ = value ]
writingsuggestions
content attribute.writingsuggestions
IDL
+ attribute, on getting, must return "on" if the element's writingsuggestions
content attribute
+ is in the on state, or if the element's writingsuggestions
content attribute is in the
+ default state and the element's default behavior is
+ on, or if the element's
+ writingsuggestions
content attribute is in the default state and the element's
+ default behavior is
+ inherit-by-default and the element's parent element's writingsuggestions
IDL attribute
+ would return "on"; otherwise, if none of those conditions applies, then the attribute must instead return "off".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.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.writingsuggestions
content attribute must be set to the literal string
- "on
", otherwise it must be set to the literal string "off
".
+ writingsuggestions
setter steps are to set the writingsuggestions
content attribute to the given value.
-
-
- input
elements whose type
attributes are in the Text, Search,
- URL, or Email states and that are mutable (i.e. that do not have the readonly
attribute specified and that are not disabled).input
elements whose type
attributes are in the
+ Text, Search,
+ URL, or Email states
+ and that are mutable (i.e. that do not have the readonly
attribute specified and that are not disabled).textarea
elements that do not
- have a readonly
attribute and that are not disabled.Text
nodes that are children of editing
- hosts or editable elements.textarea
elements that do not have a readonly
+ attribute and that are not disabled.Text
node, the element with which the text is
- associated is the element that is the immediate parent of the first character of the word,
- sentence, or other piece of text. For text in attributes, it is the attribute's element. For the
- values of input
and textarea
elements, it is the element itself.
-
+ spellcheck
content attribute, then: if that attribute is in the
- true state, then checking is enabled; otherwise, if that attribute is in the false
- state, then checking is disabled.writingsuggestions
content
+ attribute, then: if that attribute is in the on state, then writing suggestions may be enabled;
+ otherwise, if that attribute is in the off state, then writing suggestions must be disabled.spellcheck
content attribute that is not in the default
- state, then: if the nearest such ancestor's writingsuggestions
- content attribute is in the true state, then checking is enabled; otherwise, checking is
- disabled.
+ writingsuggestions
content attribute that is not in the default state, then: if the
+ nearest such ancestor's writingsuggestions
content
+ attribute is in the on state, then writing suggestions may be enabled; otherwise, if the
+ nearest such ancestor's writingsuggestions
content
+ attribute is in the off state, then writing suggestions must be disabled.input
element attributes such as pattern
to ensure that the resulting value is valid, where
- possible.
+ <div contenteditable="true">
- <span spellcheck="false" id="a">Hell</span><em>o!</em>
-</div>
input
element causes the attribute
- to be ignored, so the ancestor's value is used instead, regardless of the default).
+
- <p spellcheck="true">
- <label>Name: <input spellcheck=" false" id="b"></label>
-</p>
Autocapitalization
From 95524a10e8d74e99bd7b2bb6953b90f51a907394 Mon Sep 17 00:00:00 2001
From: Sanket Joshi writingsuggestions
setter steps are to set the writingsuggestions
content attribute to the given value.
-
From 9aecd898a8678fddb2266744a70e1878e237ee88 Mon Sep 17 00:00:00 2001
From: Sanket Joshi
textarea
element) or in elements in an editing
- host (ex. using contenteditable
).textarea
element) or in elements in an
+ editing host.
writingsuggestions
content
attribute, and therefore might not reflect the actual writing suggestions state.
- writingsuggestions
setter steps are to set the writingsuggestions
content attribute to the given value.writingsuggestions
+ content attribute must be set to the literal string "on
", otherwise it must be set to the literal string
+ "off
".
Date: Tue, 9 Jan 2024 02:52:46 -0800
Subject: [PATCH 08/39] Switch from on/off to true/false.
---
source | 57 +++++++++++++++++++++++++++++----------------------------
1 file changed, 29 insertions(+), 28 deletions(-)
diff --git a/source b/source
index f11c769e5c5..7d8871fa93a 100644
--- a/source
+++ b/source
@@ -80827,11 +80827,11 @@ body { display:none }
behavior
from amongst the following behaviors:
-
on
- on
+ data-x="attr-writingsuggestions-true">true
+ true
The user agent may offer writing suggestions on this element.
(The empty string)
@@ -80889,22 +80889,22 @@ body { display:none }
off
- off
+ data-x="attr-writingsuggestions-false">false
+ false
The user agent must not offer writing suggestions on this element.
writingsuggestions
IDL
- attribute, on getting, must return "on" if the element's writingsuggestions
content attribute
- is in the on state, or if the element's writingsuggestions
content attribute is in the
+ attribute, on getting, must return "true" if the element's writingsuggestions
content attribute
+ is in the true state, or if the element's writingsuggestions
content attribute is in the
default state and the element's default behavior is
- on, or if the element's
+ true, or if the element's
writingsuggestions
content attribute is in the default state and the element's
default behavior is
- inherit-by-default and the element's parent element's writingsuggestions
IDL attribute
- would return "on"; otherwise, if none of those conditions applies, then the attribute must instead return "off".writingsuggestions
IDL attribute of the element's parent element,
+ or parent's host element if the parent is a shadow root, would return "true"; otherwise, then the attribute must instead return "false".
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.writingsuggestions
- content attribute must be set to the literal string "on
", otherwise it must be set to the literal string
- "off
".
+ writingsuggestions
+ content attribute must be set to the literal string "true
", otherwise it must be set to
+ the literal string "false
".
writingsuggestions
content
- attribute, then: if that attribute is in the on state, then writing suggestions may be enabled;
- otherwise, if that attribute is in the off state, then writing suggestions must be disabled.
- writingsuggestions
content attribute that is not in the default state, then: if the
- nearest such ancestor's writingsuggestions
content
- attribute is in the on state, then writing suggestions may be enabled; otherwise, if the
- nearest such ancestor's writingsuggestions
content
- attribute is in the off state, then writing suggestions must be disabled.writingsuggestions
content attribute, then: if the
+ nearest such ancestor's writingsuggestions
content attribute returns
+ "true", then writing suggestions may be enabled; otherwise, if the nearest such ancestor's
+ writingsuggestions
content attribute returns "false", then writing
+ suggestions must be disabled. writingsuggestions
HTML elements
Whether the element can offer writing suggestions or not.
- " on
"; "off
"
+ " true
";
+ "false
"
textarea
element) or in elements in an
editing host.true
", otherwise it must be set to
the literal string "false
".
-
From ac65d839787a690f4bd621d73ddaa6831f08bb9c Mon Sep 17 00:00:00 2001
From: Sanket Joshi
true
true
- The user agent may offer writing suggestions on this element.
+ Writing suggestions will be offered on this element.
- (The empty string)
@@ -80867,15 +80867,25 @@ body { display:none }
false
false
- The user agent must not offer writing suggestions on this element.
+ Writing suggestions will not be offered on this element.
@@ -80898,23 +80898,22 @@ body { display:none }
- element.writingsuggestions [ = value ]
writingsuggestions
- content attribute must be set to the literal string "true
", otherwise it must be set to
- the literal string "false
".
+ content attribute must be set to the literal string "true", otherwise it must be set to
+ the literal string "false".
writingsuggestions
IDL
- attribute, on getting, must return "true" if the element's writingsuggestions
content attribute
- is in the true state, or if the element's writingsuggestions
content attribute is in the
- default state and the element's default behavior is
- true, or if the element's
- writingsuggestions
content attribute is in the default state and the element's
- default behavior is
- inherit-by-default and the writingsuggestions
IDL attribute of the element's parent element,
- or parent's host element if the parent is a shadow root, would return "true"; otherwise, then the attribute must instead return "false".writingsuggestions
IDL attribute,
+ on getting, must return "false" if the element's writingsuggestions
content
+ attribute is in the false state, or if the element's
+ writingsuggestions
content attribute is in the
+ inherit state and the
+ writingsuggestions
IDL attribute of the element's parent element, or parent's
+ host element if the parent is a shadow root, would return "false".
+ Otherwise, the attribute must return "true".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.writingsuggestions
- content attribute must be set to the literal string "true", otherwise it must be set to
- the literal string "false".
+ writingsuggestions
content attribute must be set to the literal string "false".
+ Otherwise, it must be set to the literal string "true".
textarea
element) or in elements in an
editing host.
-
-
-
writingsuggestions
content attribute is an
enumerated attribute with the following keywords and states:true
true
- Writing suggestions will be offered on this element.
+ Writing suggestions should be offered on this element.
(The empty string)
@@ -80846,13 +80846,13 @@ body { display:none }
false
false
- Writing suggestions will not be offered on this element.
+ Writing suggestions should not be offered on this element.
writingsuggestions
content attribute must be set to the literal string "false".
Otherwise, it must be set to the literal string "true".
+
+
@@ -80901,56 +80903,35 @@ body { display:none }
- input
elements whose type
attributes are in the
Text, Search,
URL, or Email states
- and that are mutable (i.e. that do not have the readonly
attribute specified and that are not disabled).textarea
elements that do not have a readonly
- attribute and that are not disabled.
-
writingsuggestions
content
- attribute, then: if that attribute returns "true", then writing suggestions may be enabled;
- otherwise, if that attribute returns "false", then writing suggestions must be disabled.writingsuggestions
content
+ attribute returns "false", then writing suggestions should be disabled.writingsuggestions
content attribute, then: if the
- nearest such ancestor's writingsuggestions
content attribute returns
- "true", then writing suggestions may be enabled; otherwise, if the nearest such ancestor's
- writingsuggestions
content attribute returns "false", then writing
- suggestions must be disabled.writingsuggestions
content attribute that returns
+ "false", then writing suggestions should be disabled.
- element.writingsuggestions [ = value ]
+ writingsuggestions
content attribute.writingsuggestions
content attribute.textarea
elements that do not have a readonly
- attribute and that are not mutable.textarea
elements that are mutable.writingsuggestions
content attribute that returns
+ element with a writingsuggestions
content attribute and the writingsuggestions
content attribute of the nearest such ancestor returns
"false", then writing suggestions should be disabled.
element.writingsuggestions [ = value ]
writingsuggestions
content attribute must be set to the literal string "false".
- Otherwise, it must be set to the literal string "true".
+ Otherwise, it must be set to the literal string "true".
From b6a32bbf01ee34554937159ca75d423bd97036fb Mon Sep 17 00:00:00 2001
From: Sanket Joshi writingsuggestions
content attribute is in the
inherit state and the
- writingsuggestions
IDL attribute of the element's parent element, or parent's
- host element if the parent is a shadow root, would return "false".
- Otherwise, the attribute must return "true".writingsuggestions
IDL attribute
is not affected by user preferences that override the writingsuggestions
content
@@ -80922,14 +80919,15 @@ body { display:none }
writingsuggestions
content
- attribute returns "false", then writing suggestions should be disabled.writingsuggestions
content attribute and the writingsuggestions
content attribute of the nearest such ancestor returns
- "false", then writing suggestions should be disabled.writingsuggestions
+ content attribute and the nearest such ancestor's writingsuggestions
+ content attribute is in the false state, then writing
+ suggestions should be disabled.textarea
element) or in elements in an
+ controls (e.g., the textarea
element) or in elements in an
editing host.
-
writingsuggestions
content
- attribute is in the false state, then writing
- suggestions should be disabled.writingsuggestions
+ writingsuggestions
content attribute and the nearest such ancestor's writingsuggestions
content attribute is in the false state, then writing
suggestions should be disabled.
-
writingsuggestions
- content attribute and the nearest such ancestor's writingsuggestions
- content attribute is in the false state, then writing
- suggestions should be disabled.writingsuggestions
content attribute and the nearest
+ such ancestor's writingsuggestions
content
+ attribute is in the false state, then
+ return false.textarea
element) or in elements in an
- editing host.textarea
element) or in elements in an editing host.
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.
-
+
+
-
+
+ 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.
+
- element.writingsuggestions [ = value ]
writingsuggestions
IDL attribute,
- on getting, must return "false" if the element's writingsuggestions
content
- attribute is in the false state, or if the element's
- writingsuggestions
content attribute is in the
- inherit state and the
- writingsuggestions
IDL attribute of the element's parent element would return "false". Otherwise, the attribute must
- return "true".writingsuggestions
IDL attribute, on getting, must
+ return "false" if the element's writingsuggestions
+ content attribute is in the false
+ state, or if the element's writingsuggestions
+ content attribute is in the inherit state
+ and the writingsuggestions
IDL attribute of the
+ element's parent element would return "false". Otherwise, the attribute must return "true".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.writingsuggestions
content attribute, and therefore might
+ not reflect the actual writing suggestions state.
- writingsuggestions
content attribute must be set to the literal string "false".
- Otherwise, it must be set to the literal string "true".writingsuggestions
+ content attribute must be set to the literal string "false". Otherwise, it must be set to the
+ literal string "true".
-
-
input
elements whose type
attributes are in the
- Text, Search,
- URL, or Email states
- and that are mutable.input
elements whose type
attributes are
+ in the Text, Search, URL, or
+ Email states and that are mutable.textarea
elements that are mutable.writingsuggestions
content attribute is in the false
state, or if the element's writingsuggestions
- content attribute is in the inherit state
- and the writingsuggestions
IDL attribute of the
- element's parent element would return "false". Otherwise, the attribute must return "true".
+ content attribute is in the inherit
+ state and the writingsuggestions
IDL attribute of
+ the element's parent element would return "false". Otherwise, the attribute must return
+ "true".
writingsuggestions
IDL attribute
is not affected by user preferences that override the
Date: Fri, 2 Feb 2024 16:03:03 -0800
Subject: [PATCH 24/39] IDL attribute to camelCase
---
source | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/source b/source
index 29940b25ff6..ca6e864dfb0 100644
--- a/source
+++ b/source
@@ -11710,7 +11710,7 @@ interface HTMLElement : Element {
readonly attribute DOMString accessKeyLabel;
[CEReactions] attribute boolean draggable;
[CEReactions] attribute boolean spellcheck;
- [CEReactions] attribute DOMString writingsuggestions;
+ [CEReactions] attribute DOMString writingSuggestions;
[CEReactions] attribute DOMString autocapitalize;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText;
@@ -80866,7 +80866,7 @@ body { display:none }
data-x="attr-writingsuggestions-true-state">true state.
-
element.writingsuggestions [ = value ]
element.writingSuggestions [ = value ]
@@ -80877,16 +80877,16 @@ body { display:none }
writingsuggestions
IDL attribute, on getting, must
+ data-x="dom-writingSuggestions">writingSuggestions IDL attribute, on getting, must
return "false" if the element's writingsuggestions
content attribute is in the false
state, or if the element's writingsuggestions
content attribute is in the inherit
- state and the writingsuggestions
IDL attribute of
+ state and the writingSuggestions
IDL attribute of
the element's parent element would return "false". Otherwise, the attribute must return
"true".writingsuggestions
IDL attribute
+ 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.Writing suggestions
- textarea
element) or in elements in an editing host.writingSuggestions
IDL attribute, on getting, must
- return "false" if the element's writingsuggestions
- content attribute is in the false
- state, or if the element's writingsuggestions
- content attribute is in the inherit
- state and the writingSuggestions
IDL attribute of
- the element's parent element would return "false". Otherwise, the attribute must return
- "true".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.writingsuggestions
- content attribute must be set to the literal string "false". Otherwise, it must be set to the
- literal string "true".writingSuggestions
IDL attribute, on getting, must
+ return "false" if the element's writingsuggestions
+ content attribute is in the false
+ state, or if the element's writingsuggestions
+ content attribute is in the inherit
+ state and the writingSuggestions
IDL attribute of
+ the element's parent element would return "false". Otherwise, the attribute must return
+ "true".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.writingsuggestions
+ content attribute must be set to the literal string "false". Otherwise, it must be set to the
+ literal string "true".
From f68ba72f7f026658c6bc6db01ec84d093c1d9d1e Mon Sep 17 00:00:00 2001
From: Dan Clark
-
-
-
-
input
elements whose type
attributes are
- in the Text, Search, URL, or
- Email states and that are mutable.textarea
elements that are mutable.
+
input
element whose type
attribute is in either the Text, Search, URL,
+ or Email state and is mutable.textarea
element that is mutable.If element has an inclusive ancestor with a
writingsuggestions
content attribute and the nearest
such ancestor's writingsuggestions
content
attribute is in the false state, then
From d10905b5c5f18d2b01e645da52de0b13b3d36a87 Mon Sep 17 00:00:00 2001
From: Dan Clark writingSuggestions
IDL attribute, on getting, must
- return "false" if the element's writingsuggestions
- content attribute is in the false
- state, or if the element's writingsuggestions
- content attribute is in the inherit
- state and the writingSuggestions
IDL attribute of
- the element's parent element would return "false". Otherwise, the attribute must return
- "true".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.writingsuggestions
- content attribute must be set to the literal string "false". Otherwise, it must be set to the
- literal string "true".
+
+
+ writingsuggestions
+ content attribute is in the false
+ state, return "false".writingsuggestions
+ content attribute is in the inherit state and the writingSuggestions
IDL attribute of this's
+ parent element would return "false", return false.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.writingSuggestions
setter steps are:
+
writingsuggestions
content attribute to the literal
+ string "false".writingsuggestions
content attribute to the literal
+ string "true".
From c927b6aba9a86e0f465e757aab9d015f9d56d748 Mon Sep 17 00:00:00 2001
From: Dan Clark element.writingSuggestions [ = value ]
- writingsuggestions
content attribute.
+ writingsuggestions
content attribute.writingsuggestions
state, as defined
+ below.writingsuggestions
content attribute is in the inherit state and the writingSuggestions
IDL attribute of this's
- parent element would return "false", return false.writingSuggestions
IDL
+ attribute of this's parent element would return "false", return false.writingsuggestions
content attribute and the nearest
- such ancestor's writingsuggestions
content
- attribute is in the false state, then
- return false.writingsuggestions
content attribute is
+ in the false state, then return
+ false.
writingSuggestions
IDL
- attribute of this's parent element would return "false", return false.
+ attribute of this's parent element would return "false", return "false".
textarea
element that is mutable. spellcheck
HTML elements
Whether the element is to have its spelling and grammar checked
- " true
"; "false
"
+ " true
";
+ "false
";
+ the empty string
src
audio
;
@@ -138871,7 +138873,8 @@ interface External {
HTML elements
Whether the element can offer writing suggestions or not.
" true
";
- "false
"
+ "false
";
+ the empty string
element.writingSuggestions [ = value ]
true
" if the user agent is to offer writing suggestions under
+ the scope of the element; otherwise, returns "false
".
writingsuggestions
content attribute.
writingsuggestions
content attribute is in the false
- state, return "false".false
".writingsuggestions
content attribute is in the default state, this has a
parent element, and the writingSuggestions
IDL
- attribute of this's parent element would return "false", return "false".false
",
+ return "false
".
- true
".writingSuggestions
IDL
@@ -80896,13 +80897,13 @@ body { display:none }
From a6b2931352f226fe8f3f46f3f888d927fcb08b59 Mon Sep 17 00:00:00 2001
From: Dan Clark false
", then set this's writingsuggestions
content attribute to the literal
- string "false".false
".
writingsuggestions
content attribute to the literal
- string "true".true
".
+
+
writingsuggestions
+ content attribute is in the false
+ state, return "false
".writingsuggestions
content attribute is in the default state, element has a
+ parent element, and the computed writing suggestions value of
+ element's parent element would return "false
", return
+ "false
".true
".writingSuggestions
getter steps are:
-
writingsuggestions
- content attribute is in the false
- state, return "false
".writingsuggestions
- content attribute is in the default state, this has a
- parent element, and the writingSuggestions
IDL
- attribute of this's parent element would return "false
",
- return "false
".true
".writingSuggestions
IDL
From 57a5499b7ca0bc31496799047ee82aded40d4a1e Mon Sep 17 00:00:00 2001
From: Dan Clark textarea
element that is mutable.
-
-
input
element whose input
element whose type
attribute is in either the Text, Search, URL,
or Email state and is mutable;textarea
element that is mutable; ortextarea
element that is mutable; orwritingsuggestions
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.writingSuggestions
setter steps are:
-
false
", then set this's writingsuggestions
content attribute to the literal
- string "false
".writingsuggestions
content attribute to the literal
- string "true
".writingsuggestions
+ content attribute to the given value.
-
- writingsuggestions
- content attribute is in the false
- state, return "false
".
+
+ writingsuggestions
+ content attribute is in the false
+ state, return "false
".writingsuggestions
content attribute is in the default state, element has a
- parent element, and the computed writing suggestions value of
- element's parent element would return "false
", return
- "false
".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
".true
".true
".writingSuggestions
getter steps are:writingSuggestions
getter steps are:
-
+
+
- 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.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.writingSuggestions
setter steps are:writingSuggestions
setter steps are:
-
+ writingsuggestions
- content attribute to the given value.
+
writingsuggestions
+ content attribute to the given value.
@@ -80930,12 +80930,11 @@ body { display:none }
or Email state and is mutable;
- textarea
element that is mutable; ortextarea
element that is mutable; orinput
element whose type
attribute is in either the Text, Search, URL,
+ data-x="attr-input-type-search">Search, Telephone, URL,
or Email state and is mutable;
-
@@ -80910,7 +80910,7 @@ body { display:none }
-