Skip to content

Commit

Permalink
Editorial: remove inaccurate qualifier
Browse files Browse the repository at this point in the history
This specification uses the List type from WHATWG Infra [1]. It does so
indirectly, working with a derivative which it refers to as a "JSON
List." This type is not defined, but because its usage matches that of
the List, the qualifier "JSON" appears to be superfluous.

Remove the qualifier to clarify the type of the specification values.

[1] https://infra.spec.whatwg.org/#lists
  • Loading branch information
jugglinmike authored and jgraham committed Jan 4, 2024
1 parent 9cb4450 commit ec2663f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1769,15 +1769,15 @@ <h3>Processing capabilities</h3>

<ol>
<li><p>If <var>all first match capabilities</var> is <a>undefined</a>,
set the value to a JSON <a>List</a> with a single entry of an empty JSON <a>Object</a>.
set the value to a <a>List</a> with a single entry of an empty JSON <a>Object</a>.

<li><p>If <var>all first match capabilities</var> is not a
JSON <a>List</a> with one or more entries, return <a>error</a>
<a>List</a> with one or more entries, return <a>error</a>
with <a>error code</a> <a>invalid argument</a>.
</ol>

<li><p>Let <var>validated first match capabilities</var> be an empty
JSON <a>List</a>.
<a>List</a>.

<!-- Validate all entries first so we fail as quickly as possible -->
<li><p>For each <var>first match capabilities</var> corresponding
Expand Down Expand Up @@ -3453,7 +3453,7 @@ <h3><dfn>Get Window Handles</dfn></h3>
<p>The <a>remote end steps</a> are:

<ol>
<li><p>Let <var>handles</var> be a JSON <a>List</a>.
<li><p>Let <var>handles</var> be a <a>List</a>.

<li><p>For each <a>top-level browsing context</a> in the <a>remote end</a>,
push the associated <a>window handle</a> onto <var>handles</var>.
Expand Down Expand Up @@ -4617,7 +4617,7 @@ <h3 id=element-retrieval>Retrieval</h3>
is less than <var>end time</var> return to step 4. Otherwise,
continue to the next step.

<li><p>Let <var>result</var> be an empty JSON <a>List</a>.
<li><p>Let <var>result</var> be an empty <a>List</a>.

<li><p>For each <var>element</var> in <var>elements returned</var>,
append the <a>web element reference object</a> for <var>element</var>,
Expand Down Expand Up @@ -7147,7 +7147,7 @@ <h3><dfn>Get All Cookies</dfn></h3>

<li><p><a>Handle any user prompts</a>, and return its value if it is an <a>error</a>.

<li><p>Let <var>cookies</var> be a new JSON <a>List</a>.
<li><p>Let <var>cookies</var> be a new <a>List</a>.

<li><p>For each <var>cookie</var> in <a>all associated cookies</a> of
the <a>current browsing context</a>’s <a>active document</a>:
Expand Down

0 comments on commit ec2663f

Please sign in to comment.