@@ -125528,6 +125528,12 @@ interface <dfn interface>Navigator</dfn> {
125528125528
125529125529 <div w-nodev>
125530125530
125531+ <div algorithm>
125532+ <p>Each object that implements <code>NavigatorLanguage</code> has
125533+ an associated <dfn attribute for="NavigatorLanguage">plausible languages array</dfn>,
125534+ which is a frozen array of BCP 47 language tags. It is initially empty.</p>
125535+ </div>
125536+
125531125537 <div algorithm>
125532125538 <p>The <dfn attribute for="NavigatorLanguage"><code
125533125539 data-x="dom-navigator-language">language</code></dfn> getter steps are:</p>
@@ -125548,17 +125554,24 @@ interface <dfn interface>Navigator</dfn> {
125548125554 data-x="dom-navigator-languages">languages</code></dfn> getter steps are:</p>
125549125555
125550125556 <ol>
125557+ <li>Let <var>languages</var> be an empty array.</li>
125551125558 <li>Let <var>emulatedLanguage</var> be the <span>WebDriver BiDi emulated language</span> for
125552125559 <span>this</span>'s <span>relevant settings object</span></li>
125553125560
125554- <li>If <var>emulatedLanguage</var> is not null, then return a <span>frozen array</span> containing
125555- <var>emulatedLanguage</var>.</li>
125561+ <li>If <var>emulatedLanguage</var> is not null, then set <var>languages</var> to
125562+ <span>frozen array</span> containing <var>emulatedLanguage</var></li>
125563+
125564+ <li>Otherwise, set <var>languages</var>to <span>frozen array</span> of
125565+ valid BCP 47 language tags representing either one or more
125566+ <span data-x="a plausible language">plausible languages</span>, or the user's preferred
125567+ languages, ordered by preference with the most preferred language first.
125568+ <ref>BCP47</ref></li>
125569+
125570+ <li>If <var>languages</var> and <span>this</span>'s <var>plausible languages array</var>
125571+ do not have the same values in the same order, then set
125572+ <span>this</span>'s <span>plausible languages array</span> to <var>languages</var>.</li>
125556125573
125557- <li>Return a <span>frozen array</span> of valid BCP 47 language tags representing either one or
125558- more <span data-x="a plausible language">plausible languages</span>, or the user's preferred
125559- languages, ordered by preference with the most preferred language first. The same object must be
125560- returned until the user agent needs to return different values, or values in a different order,
125561- or <var>emulatedLanguage</var> is updated. <ref>BCP47</ref></li>
125574+ <li>Return <span>this</span>'s <span>plausible languages array</span>.</li>
125562125575 </ol>
125563125576 </div>
125564125577
0 commit comments