LibWeb/HTML: Add FIXMEs to honor WebDriver BiDi emulated language

Corresponds to:
547f8044b0

We currently don't follow the spec for these language getters, and the
BiDi changes are still ongoing, so it seems better to leave a FIXME for
them rather than try to make any changes right now.
This commit is contained in:
Sam Atkins 2025-11-27 17:03:30 +00:00
parent c8990697d1
commit 573d5362f4
Notes: github-actions[bot] 2025-12-01 11:08:46 +00:00

View file

@ -16,9 +16,11 @@ namespace Web::HTML {
class NavigatorLanguageMixin {
public:
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-language
// FIXME: Honor WebDriver BiDi emulated language.
String const& language() const { return ResourceLoader::the().preferred_languages()[0]; }
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-languages
// FIXME: Honor WebDriver BiDi emulated language.
ReadonlySpan<String> languages() const { return ResourceLoader::the().preferred_languages(); }
};