Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6213,14 +6213,10 @@ locale on the given top-level traversables or user contexts.
</dd>
</dl>

<div algorithm="updated DefaultLocale steps">
The [=DefaultLocale=] algorithm is implementation defined. A WebDriver-BiDi
[=remote end=] must have an implementation that runs the following steps:
<div algorithm>

1. Let |realm| be [=current Realm Record=].

1. Let |environment settings| be the [=environment settings object=] whose
[=realm execution context=]'s Realm component is |realm|.
The <dfn export>WebDriver BiDi emulated language</dfn> steps given an [=environment settings object=]
|environment settings|:

1. Let |related navigables| be the result of [=get related navigables=] given
|environment settings|.
Expand All @@ -6238,8 +6234,27 @@ The [=DefaultLocale=] algorithm is implementation defined. A WebDriver-BiDi
1. If [=locale overrides map=] [=map/contains=] |user context|, return
[=locale overrides map=][|user context|].

1. Return the result of implementation-defined steps in accordance with the
requirements of the [=DefaultLocale=] specification.
1. Return null

</div>

TODO: Remove the following algorithm once the update for navigator.language/s in the html spec is merged.

<div algorithm="updated DefaultLocale steps">
The [=DefaultLocale=] algorithm is implementation defined. A WebDriver-BiDi
[=remote end=] must have an implementation that runs the following steps:

1. Let |realm| be [=current Realm Record=].

1. Let |environment settings| be the [=environment settings object=] whose
[=realm execution context=]'s Realm component is |realm|.

1. Let |locale override| be the result of [=WebDriver BiDi emulated language=] with
|environment settings|.

1. If |locale override| is not null, return |locale override|.
Otherwise, return the result of implementation-defined steps in accordance
with the requirements of the [=DefaultLocale=] specification.

</div>

Expand Down