W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

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

From: (wrong string) 河内 隆仁 <kochi@google.com>
Date: Tue, 16 Jul 2013 10:18:20 +0900
Message-ID: <CADP2=hpPxR+tmbpuYPfNZLLucPY1Jmz1z2CepEPdzuWm+pzrpQ@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: Peter Occil <poccil14@gmail.com>, WHATWG <whatwg@whatwg.org>, Matt Falkenhagen <falken@google.com>
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.

Matt (falken@) knows more about this.


On Sun, Jul 14, 2013 at 12:39 AM, Ian Hickson <ian@hixie.ch> wrote:

> On Fri, 12 Jul 2013, Peter Occil wrote:
> >
> > Well, my true hope is that such a DOM attribute like "language" will be
> > specified in the HTML or DOM spec.  Especially since it's not currently
> > possible to get the language of a node through JavaScript methods alone.
>
> What's the use case for having this in HTML?
>
> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>



-- 
Takayoshi Kochi
Received on Tuesday, 16 July 2013 01:19:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC