Bug Report: pages with a custom language emit an invalid, empty `dir=""` attribute, with no way to set it

When a page’s Language popup in the Page Inspector is set to something other than the project language, Elements writes a page attribute customLanguageDirection into the project file and leaves it as an empty string. {{page.languageAttributes}} then expands to:

<html class="scroll-smooth" lang="en" dir="">

The lang value is correct. The dir attribute, however, is emitted with an empty value.
bugreport-dir-realmac.md (12.1 KB)

Please see the attached bug report.

Thank you,
Jan