Skip to content

Commit 46d0bc1

Browse files
lutienjgraham
authored andcommitted
Update serialization steps for return value of "browsingContext.locateNodes" command
1 parent 1935bea commit 46d0bc1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

index.bs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3174,9 +3174,15 @@ The [=remote end steps=] with |session| and |command parameters| are:
31743174
let |result ownership| be |command parameters|["<code>ownership</code>"].
31753175
Otherwise, let |result ownership| be "none".
31763176

3177-
1. Let |serialized nodes| be the result of [=serialize as a remote value=] with
3178-
|result nodes|, |serialization options|, |result ownership|, a new [=/map=]
3179-
as serialization internal map, |realm| and |session|.
3177+
1. Let |serialized nodes| be an empty [=/list=].
3178+
3179+
1. For each |result node| in |result nodes|:
3180+
3181+
1. Let |serialized node| be the result of [=serialize as a remote value=] with
3182+
|result node|, |serialization options|, |result ownership|, a new [=/map=]
3183+
as serialization internal map, |realm| and |session|.
3184+
3185+
1. [=list/Append=] |serialized node| to |serialized nodes|.
31803186

31813187
1. Let |result| be a [=/map=] matching the <code>browsingContext.LocateNodesResult</code>
31823188
production, with the <code>nodes</code> field set |serialized nodes|.

0 commit comments

Comments
 (0)