<html lang="..."> attribute breaks dashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Focal |
Confirmed
|
Undecided
|
Unassigned | ||
Jammy |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The attached HTML file should be rendered as two lines of text, one with dashes between the words and one with spaces. However, Firefox renders the file with no dashes whatsoever. Instead of dashes, it shows double-width spaces.
The HTML renders correctly if lang="de-x-formal" attribute is changed to lang="de". Please note that de-x-formal is a valid language code, as verified with http://
I also noticed that the extra wide spaces Firefox incorrectly shows instead of dashes are in the ori1Uni font while the regular letters are in DejaVu Serif. With lang="de", everything is in DejaVu Serif, including dashes which render correctly.
This problem does not occur with Chromium on Ubuntu, nor with Firefox on Debian, nor Firefox on Windows.
Ubuntu version: Ubuntu 22.04.2 LTS
Firefox version: firefox 111.0-2 from snap
Thank you very much for looking into this.
Here is an example of a website where this bug causes dashes not to show:
https:/ /www.dontexist. de/
Firefox on Ubuntu incorrectly renders "MediaWiki- Startseite" as "MediaWiki Startseite". Other browsers and Firefox on other OSes correctly render "MediaWiki- Startseite" .