@@ -125554,6 +125554,12 @@ interface <dfn interface>Navigator</dfn> {
125554125554
125555125555 <div w-nodev>
125556125556
125557+ <div algorithm>
125558+ <p>Each object that implements <code>NavigatorLanguage</code> has
125559+ an associated <dfn attribute for="NavigatorLanguage">plausible languages array</dfn>,
125560+ which is a frozen array of BCP 47 language tags. It is initially empty.</p>
125561+ </div>
125562+
125557125563 <div algorithm>
125558125564 <p>The <dfn attribute for="NavigatorLanguage"><code
125559125565 data-x="dom-navigator-language">language</code></dfn> getter steps are:</p>
@@ -125574,17 +125580,25 @@ interface <dfn interface>Navigator</dfn> {
125574125580 data-x="dom-navigator-languages">languages</code></dfn> getter steps are:</p>
125575125581
125576125582 <ol>
125577- <li>Let <var>emulatedLanguage</var> be the <span>WebDriver BiDi emulated language</span> for
125578- <span>this</span>'s <span>relevant settings object</span>.</li>
125583+ <li>Let <var>languages</var> be an empty array.</li>
125584+
125585+ <li>Let <var>emulatedLanguage</var> be the <span>WebDriver BiDi emulated language</span>
125586+ for <span>this</span>'s <span>relevant settings object</span>.</li>
125587+
125588+ <li>If <var>emulatedLanguage</var> is not null, then set <var>languages</var> to
125589+ <span>frozen array</span> containing <var>emulatedLanguage</var>.</li>
125590+
125591+ <li>Otherwise, set <var>languages</var> to <span>frozen array</span> of
125592+ valid BCP 47 language tags representing either one or more
125593+ <span data-x="a plausible language">plausible languages</span>, or
125594+ the user's preferred languages, ordered by preference with
125595+ the most preferred language first. <ref>BCP47</ref></li>
125579125596
125580- <li>If <var>emulatedLanguage</var> is not null, then return a <span>frozen array</span> containing
125581- <var>emulatedLanguage</var>.</li>
125597+ <li>If <var>languages</var> and <span>this</span>'s <var>plausible languages array</var>
125598+ do not have the same values in the same order, then set
125599+ <span>this</span>'s <span>plausible languages array</span> to <var>languages</var>.</li>
125582125600
125583- <li>Return a <span>frozen array</span> of valid BCP 47 language tags representing either one or
125584- more <span data-x="a plausible language">plausible languages</span>, or the user's preferred
125585- languages, ordered by preference with the most preferred language first. The same object must be
125586- returned until the user agent needs to return different values, or values in a different order,
125587- or <var>emulatedLanguage</var> is updated. <ref>BCP47</ref></li>
125601+ <li>Return <span>this</span>'s <span>plausible languages array</span>.</li>
125588125602 </ol>
125589125603 </div>
125590125604
0 commit comments