diff --git a/index.bs b/index.bs index 13f69dff..8032f1c9 100644 --- a/index.bs +++ b/index.bs @@ -6213,14 +6213,10 @@ locale on the given top-level traversables or user contexts. -
-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|. +The WebDriver BiDi emulated language steps given an [=environment settings object=] +|environment settings|: 1. Let |related navigables| be the result of [=get related navigables=] given |environment settings|. @@ -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 + +
+ +TODO: Remove the following algorithm once the update for navigator.language/s in the html spec is merged. https://github.com/whatwg/html/pull/11793 + +
+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.