mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
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:
parent
c8990697d1
commit
573d5362f4
Notes:
github-actions[bot]
2025-12-01 11:08:46 +00:00
Author: https://github.com/AtkinsSJ
Commit: 573d5362f4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6960
1 changed files with 2 additions and 0 deletions
|
|
@ -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(); }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue