Skip to content

Commit

Permalink
Update serialization steps for return value of "browsingContext.locat…
Browse files Browse the repository at this point in the history
…eNodes" command
  • Loading branch information
lutien committed Dec 18, 2023
1 parent 1935bea commit 84dea62
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3174,10 +3174,16 @@ The [=remote end steps=] with |session| and |command parameters| are:
let |result ownership| be |command parameters|["<code>ownership</code>"].
Otherwise, let |result ownership| be "none".

1. Let |serialized nodes| be the result of [=serialize as a remote value=] with
|result nodes|, |serialization options|, |result ownership|, a new [=/map=]
1. Let |serialized nodes| be an empty [=/list=].

1. For each |result node| in |result nodes|:

1. Let |serialized node| be the result of [=serialize as a remote value=] with
|result node|, |serialization options|, |result ownership|, a new [=/map=]
as serialization internal map, |realm| and |session|.

1. [=list/Append=] |serialized node| to |serialized nodes|.

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

Expand Down

0 comments on commit 84dea62

Please sign in to comment.