You are not logged in.

#1 2022-04-16 14:27:15

polv
Member
Registered: 2021-04-27
Posts: 42

[Solved] Firefox's HTML lang attribute needs hyphen

I made a UserScript to fix this for the time being; but honestly think this should be fixed upstream.

I have noticed this for a while on Firefox.

<span lang="ja">

does not work, while 

<span lang="ja-JP">

or even 

<span lang="ja-">

works OK. As for the standard, it should be OK even without hyphen. (I asked how other people see in WaniKani Community (for Japanese learning).)

For example in Github or multilingual Wiktionary.

163091600-edce5ae6-2024-411a-969c-264d0dda1de5.png

The problem appears to be quite serious as top-level lang attritube (how the website is marked as wholly Japanese) isn't detected either.

<html lang="ja">

Goo Japanese monolingual Dictionary

In contrast, Firefox for Android works OK, with or without hyphen.

Last edited by polv (2022-05-06 12:57:02)

Offline

#2 2022-05-06 12:56:01

polv
Member
Registered: 2021-04-27
Posts: 42

Re: [Solved] Firefox's HTML lang attribute needs hyphen

I've found the real culprit - community/ttf-droid 20121017-10 should not be used. (Version from 2012? Seriously?)

Offline

Board footer

Powered by FluxBB