@@ -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,25 @@ interface <dfn interface>Navigator</dfn> {
125548125554 data-x="dom-navigator-languages">languages</code></dfn> getter steps are:</p>
125549125555
125550125556 <ol>
125551- <li>Let <var>emulatedLanguage</var> be the <span>WebDriver BiDi emulated language</span> for
125552- <span>this</span>'s <span>relevant settings object</span></li>
125557+ <li>Let <var>languages</var> be an empty array.</li>
125558+
125559+ <li>Let <var>emulatedLanguage</var> be the <span>WebDriver BiDi emulated language</span>
125560+ for <span>this</span>'s <span>relevant settings object</span></li>
125561+
125562+ <li>If <var>emulatedLanguage</var> is not null, then set <var>languages</var> to
125563+ <span>frozen array</span> containing <var>emulatedLanguage</var></li>
125564+
125565+ <li>Otherwise, set <var>languages</var> to <span>frozen array</span> of
125566+ valid BCP 47 language tags representing either one or more
125567+ <span data-x="a plausible language">plausible languages</span>, or
125568+ the user's preferred languages, ordered by preference with
125569+ the most preferred language first. <ref>BCP47</ref></li>
125553125570
125554- <li>If <var>emulatedLanguage</var> is not null, then return a <span>frozen array</span> containing
125555- <var>emulatedLanguage</var>.</li>
125571+ <li>If <var>languages</var> and <span>this</span>'s <var>plausible languages array</var>
125572+ do not have the same values in the same order, then set
125573+ <span>this</span>'s <span>plausible languages array</span> to <var>languages</var>.</li>
125556125574
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>
125575+ <li>Return <span>this</span>'s <span>plausible languages array</span>.</li>
125562125576 </ol>
125563125577 </div>
125564125578
0 commit comments