From 291910c2e4884e613b7ff3ce6dbc9e153267f527 Mon Sep 17 00:00:00 2001
From: Henrik Skupin
Date: Tue, 16 Apr 2024 20:23:15 +0000
Subject: [PATCH] Clarify when an element is disabled (#1807)
SHA: 98140eacf446d22030c9eaf65d67fb9dcb212a12
Reason: push, by pull[bot]
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
index.html | 214 ++++++++++++++++++++++++++++++++---------------------
1 file changed, 130 insertions(+), 84 deletions(-)
diff --git a/index.html b/index.html
index 00555202..661a037b 100644
--- a/index.html
+++ b/index.html
@@ -188,7 +188,7 @@
.mdn .samsunginternet_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/samsung-internet/samsung-internet.svg)}
.mdn .webview_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/android-webview/android-webview.png)}
-
+
On the other hand, the center point of the following select
- list is the third option
element, because unlike
+ list is the third option
element, because unlike
a drop-down list,
<select multiple>
's options
are individually visible and painted.
Because the option is a descendant
- of the select
element,
+ of the select
element,
it is not obscured :
@@ -5310,7 +5326,7 @@
WebDriver
-An element 's
+
An element 's
pointer-interactable paint tree
is produced this way:
@@ -5489,7 +5505,7 @@
WebDriver
An element location strategy is
an enumerated attribute deciding what technique should be used
- to search for elements in session 's current
+ to search for elements in session 's current
browsing context . The following table of location
strategies lists the keywords and states defined for this
attribute:
@@ -5663,7 +5679,7 @@
WebDriver
evaluateResult as this and index as the
argument.
- If node is not an element return an error
+
If node is not an element return an error
with error code invalid selector .
Append node to result .
@@ -5694,7 +5710,7 @@ WebDriver
Note
The Find Element command is used to find
-an element in session 's current browsing
+an element in session 's current browsing
context that can be used as the web element context for
future element-centric commands .
@@ -6024,7 +6040,7 @@
WebDriver
of session 's current browsing
context 's document element .
- If active element is a non-null element ,
+
If active element is a non-null element ,
return success with data set to web element reference
object for session and active element .
@@ -6113,12 +6129,12 @@
WebDriver
otherwise return false.
-An element 's container is:
+
An element 's container is:
- option
element in a valid element context
- optgroup
element in a valid element context
- The element 's element context ,
+
option
element in a valid element context
+ optgroup
element in a valid element context
+ The element 's element context ,
which is determined by:
@@ -6128,7 +6144,7 @@ WebDriver
or undefined if the root of the tree is reached.
Let select parent be the
- first select
element reached
+ first select
element reached
by traversing the tree in reverse order from element ,
or undefined if the root of the tree is reached.
@@ -6137,11 +6153,11 @@
WebDriver
Otherwise, the element context is datalist parent .
- option
element in an invalid element context
+ option
element in an invalid element context
The element does not have a container.
Otherwise
- The container is the element itself.
+
The container is the element itself.
@@ -6160,10 +6176,10 @@ WebDriver
The remote end steps , given session , URL
variables and parameters are:
@@ -6190,7 +6206,7 @@
WebDriver
The result of element 's checkedness .
element is
- an option
element
+ an option
element
The result of element 's selectedness .
Otherwise
@@ -6446,8 +6462,8 @@ WebDriver
Note
The Get Element Text command
-intends to return an element 's text “as rendered”.
-An element 's rendered text is also used
+intends to return an element 's text “as rendered”.
+An element 's rendered text is also used
for locating a
elements
by their link text and partial link text .
@@ -6694,7 +6710,7 @@
WebDriver
Otherwise, let enabled to false
and jump to the last step of this algorithm.
-
Set enabled to false if a form control is actually disabled .
+
Set enabled to false if a form control is disabled .
Return success with data enabled .
@@ -6775,7 +6791,7 @@ WebDriver
-The element interaction commands
+
The element interaction commands
provide a high-level instruction set for manipulating form controls.
Unlike Actions ,
they will implicitly scroll elements into view
@@ -6825,7 +6841,7 @@
WebDriver
Note
The Element Click command
-scrolls into view the element
+scrolls into view the element
if it is not already pointer-interactable ,
and clicks its in-view center point .
@@ -6862,13 +6878,13 @@
WebDriver
return error with error code element not interactable .
If element 's container
- is obscured by another element ,
+ is obscured by another element ,
return error with error code element click intercepted .
Matching on element :
- option
element
+ option
element
Let parent node be the element 's container .
@@ -6881,7 +6897,7 @@
WebDriver
Run the focusing steps on parent node .
-
If element is not actually disabled :
+
If element is not disabled :
Fire an input
event at parent node .
@@ -7125,9 +7141,9 @@
WebDriver
@@ -7151,7 +7167,7 @@
WebDriver
Other examples of non-typeable form controls include
form controls interacted with via system-native widgets,
-such as a scrolled option list for select
elements
+such as a scrolled option list for select
elements
and a number keypad for input
elements
in the number
state on non-desktop devices.
@@ -7484,7 +7500,7 @@ WebDriver
- element is a non-typeable form control
+ element is a non-typeable form control
If element does not have an own property
@@ -7506,15 +7522,15 @@
WebDriver
- element is content editable
- If element does not currently have focus,
+ element is content editable
+ If element does not currently have focus,
set the text insertion caret after any child content.
Otherwise
If element does not currently have focus,
let current text length be the
- length of element 's API value .
+ length of element 's API value .
Set the text insertion caret using set selection range
using current text length for both the start
@@ -9043,7 +9059,7 @@
WebDriver
action of the input source may cause additional events to be
generated depending on the implementation and the state of the
browser (e.g. input events relating to key actions when the focus is
- on an editable element , scroll events, etc.).
+ on an editable element , scroll events, etc.).
@@ -11617,7 +11633,7 @@ WebDriver
WebDriver provides the Take Screenshot command
to capture the top-level browsing context 's initial viewport ,
and a command Take Element Screenshot
- for doing the same with the visible region of an element 's
+ for doing the same with the visible region of an element 's
bounding rectangle after it has been scrolled into view .
In order to draw a bounding box from the framebuffer ,
@@ -11667,7 +11683,7 @@
WebDriver
To encode a canvas as
- Base64 a canvas
element :
+ Base64 a canvas
element :
If the canvas
element's bitmap's
@@ -11756,7 +11772,7 @@
WebDriver
The remote end steps , given session , URL
variables and parameters are:
@@ -12121,24 +12137,24 @@
WebDriver
Although WebDriver does not define a primitive
- to ascertain the visibility of an element in the viewport ,
+ to ascertain the visibility of an element in the viewport ,
we acknowledge that it is an important feature for many users.
Here we include a recommended approach
- which will give a simplified approximation of an element 's visibility,
+ which will give a simplified approximation of an element 's visibility,
but please note that it relies only on tree-traversal,
and only covers a subset of visibility checks.
-
The visibility of an element is guided
+
The visibility of an element is guided
by what is perceptually visible to the human eye.
- In this context, an element 's displayedness
+ In this context, an element 's displayedness
does not relate to the visibility
or display
style properties.
The approach recommended to implementors to ascertain
- an element 's visibility was originally developed by
+ an element 's visibility was originally developed by
the Selenium project, and is
- based on crude approximations about an element 's nature and
- relationship in the tree. An element is in general to be
+ based on crude approximations about an element 's nature and
+ relationship in the tree. An element is in general to be
considered visible if any part of it is drawn on the canvas within
the boundaries of the viewport.
@@ -12957,6 +12973,8 @@
WebDriver
§E.
Dirty value flag
§E.
+ disabled
+ §12.1
dismiss
§16.
Dismiss Alert
@@ -13982,6 +14000,8 @@ WebDriver
hasAttribute()
(for Element
)
HTMLCollection
interface
+
+ inclusive ancestor (for tree
)
inclusive descendant (for tree
)
@@ -14160,7 +14180,7 @@ WebDriver
[accname-1.1]
Accessible Name and Description Computation 1.1 . Joanmarie Diggs; Bryan Garaventa; Michael Cooper. W3C. 18 December 2018. W3C Recommendation. URL: https://www.w3.org/TR/accname-1.1/
[CSP3]
- Content Security Policy Level 3 . Mike West; Antonio Sartori. W3C. 21 February 2024. W3C Working Draft. URL: https://www.w3.org/TR/CSP3/
+ Content Security Policy Level 3 . Mike West; Antonio Sartori. W3C. 12 April 2024. W3C Working Draft. URL: https://www.w3.org/TR/CSP3/
[CSS-CASCADE-4]
CSS Cascading and Inheritance Level 4 . Elika Etemad; Tab Atkins Jr.. W3C. 13 January 2022. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css-cascade-4/
[CSS-DEVICE-ADAPT]
@@ -14168,7 +14188,7 @@ WebDriver
[CSS21]
Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification . Bert Bos; Tantek Çelik; Ian Hickson; Håkon Wium Lie. W3C. 7 June 2011. W3C Recommendation. URL: https://www.w3.org/TR/CSS21/
[CSS3-BOX]
- CSS Box Model Module Level 3 . Elika Etemad. W3C. 6 April 2023. W3C Recommendation. URL: https://www.w3.org/TR/css-box-3/
+ CSS Box Model Module Level 3 . Elika Etemad. W3C. 11 April 2024. W3C Recommendation. URL: https://www.w3.org/TR/css-box-3/
[CSS3-DISPLAY]
CSS Display Module Level 3 . Elika Etemad; Tab Atkins Jr.. W3C. 30 March 2023. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css-display-3/
[CSS3-VALUES]
@@ -18597,6 +18617,22 @@ WebDriver
§ 15.5 Processing actions
+
+
@@ -22669,11 +22705,7 @@
WebDriver
Referenced in:
@@ -25173,7 +25217,9 @@
WebDriver
Referenced in:
@@ -25185,13 +25231,13 @@
WebDriver
Referenced in:
@@ -25287,11 +25333,11 @@
WebDriver
Referenced in: