diff --git a/index.html b/index.html index 8bc767e4..81d20c7b 100644 --- a/index.html +++ b/index.html @@ -818,6 +818,12 @@
no such shadow root
+ detached shadow root
+ A shadow root + is an abstraction used to identify a shadow root + when it is transported via the protocol, + between remote- and local ends. + +
The shadow root identifier is the string constant
+ "shadow-6066-11e4-a52e-4f735466cecf
".
+
+
Each shadow root has an associated shadow root + reference that uniquely identifies the element across + all browsing contexts. The shadow root reference for + every shadow root representing the same shadow root must be the + same. It must be a string, and should be the result of generating + a UUID. + +
An ECMAScript Object represents a shadow root + if it has a shadow root identifier own property. + +
Each browsing context has an associated list of + known shadow roots. + When the browsing context is discarded, + the list of known shadow roots is discarded along with it. + +
To get a known shadow root with + argument reference, run the following steps: + +
To get a known connected shadow root with + argument reference, run the following steps: +
To create a shadow root reference + for a shadow root: + +
For each known shadow root + of the current browsing context’s list of known shadow roots: + +
If known shadow root equals shadow root, + return success with known shadow root’s shadow root reference. +
Add shadow to + the list of known shadow roots of the current browsing context. + +
Return success with the + shadow’s shadow root reference. +
The JSON serialization of a shadow root + is a JSON Object where the shadow root identifier key + is mapped to the shadow root’s shadow root reference. + +
When required to deserialize a shadow root + by a JSON Object object that represents a shadow root: + +
If object has no own property shadow root identifier, + return error with error code invalid argument. + +
Let reference be the result of + getting + the shadow root identifier property + from object. + +
Let shadow be the result + of trying to get a known shadow root + with argument reference. + +
Return success with data shadow. +
An shadow root is detached + if its node document is not the active document + or if the element node referred to as its document fragment host + is stale. +
The Find Element, Find Elements, Find Element From Element, - and Find Elements From Element commands + Find Elements From Element, + Find Element From Shadow Root, + and Find Elements From Shadow Root commands allow lookup of individual elements and collections of elements. Element retrieval searches are performed using pre-order traversal of the document’s nodes @@ -4772,6 +4904,101 @@
HTTP Method | +URI Template | +
---|---|
POST | +/session/{session id}/shadow/{shadow id}/element | +
The remote end steps are: + +
Let location strategy be the result
+ of getting a property called "using
".
+
+
If location strategy is not present as a keyword in the + table of location strategies, return error with + error code invalid argument. + +
Let selector be the result
+ of getting a property called "value
".
+
+
If selector is undefined, + return error with error code invalid argument. + +
If the current browsing context is no longer + open, return error with error code no such + window. + +
Handle any user prompts and return its value if it is an error. + +
Let start node be the result + of trying to get a known connected shadow root + with url variable shadow id. + +
If result is empty, return error + with error code no such shadow root. Otherwise, return the + first element of result. +
HTTP Method | +URI Template | +
---|---|
POST | +/session/{session id}/shadow/{shadow id}/elements | +
The remote end steps are: + +
Let location strategy be the result
+ of getting a property called "using
".
+
+
If location strategy is not present as a keyword in the + table of location strategies, return error with + error code invalid argument. + +
Let selector be the result
+ of getting a property called "value
".
+
+
If selector is undefined, + return error with error code invalid argument. + +
If the current browsing context is no longer + open, return error with error code no such + window. + +
Handle any user prompts and return its value if it is an error. + +
Let start node be the result + of trying to get a known connected shadow root + with url variable shadow id. + +
Otherwise, return error with error code no such element.
HTTP Method | +URI Template | +
---|---|
GET | +/session/{session id}/element/shadow | +
The remote end steps are: + +
If the current browsing context is no longer + open, return error with error code no such + window. + +
Handle any user prompts and return its value if it is an error. + +
Let element be the result + of trying to get a known connected element + with url variable element id. + +
Let shadow root be the result of getting an + own property named "shadowRoot" from element. + +
If shadow root is undefined, return error + with error code no such shadow root. + +
Let shadow root node type be the result of + getting an own property named "nodeType" from + shadow root. + +
If shadow root node type is undefined, or has + a value other than 11, return error with error code + no such shadow root. + +
Let shadow host be the result of getting an + own property named "host" of shadow root. + +
If shadow host is not undefined or null, return + create a shadow root reference. + +
Otherwise, return error with error code no such shadow root. +
document fragment host
The following terms are defined in the DOM Parsing and Serialization specification: [[DOM-PARSING]]