Skip to content

Commit 573d536

Browse files
committed
LibWeb/HTML: Add FIXMEs to honor WebDriver BiDi emulated language
Corresponds to: whatwg/html@547f804 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.
1 parent c899069 commit 573d536

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Libraries/LibWeb/HTML/NavigatorLanguage.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ namespace Web::HTML {
1616
class NavigatorLanguageMixin {
1717
public:
1818
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-language
19+
// FIXME: Honor WebDriver BiDi emulated language.
1920
String const& language() const { return ResourceLoader::the().preferred_languages()[0]; }
2021

2122
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-languages
23+
// FIXME: Honor WebDriver BiDi emulated language.
2224
ReadonlySpan<String> languages() const { return ResourceLoader::the().preferred_languages(); }
2325
};
2426

0 commit comments

Comments
 (0)