[whatwg] HTML: A DOM attribute that returns the language of a node

Matt Falkenhagen falken at chromium.org
Mon Jul 15 20:25:10 PDT 2013

(resending from correct address)

On Tue, Jul 16, 2013 at 10:18 AM, Takayoshi Kochi (河内 隆仁)
<kochi at google.com> wrote:
> IIUC WebKit uses internally node's language to determine which font to use
> to render text,
> e.g for Han unification (https://en.wikipedia.org/wiki/Han_unification)
> WebKit has to choose
> a proper glyph depending on its lang attribute for the same Unicode
> codepoint.

Yes, WebKit does this using -webkit-locale which Elliott mentioned

Firefox and IE also use language for font selection, but I'm not
familiar with their implementation.

More information about the whatwg mailing list