W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] Video feedback

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 2 Jun 2011 21:02:28 -0700
Message-ID: <BANLkTim=rZRoRUVG2S3b8GMyU7DqXMz+4Q@mail.gmail.com>
On Thu, Jun 2, 2011 at 7:58 PM, Glenn Maynard <glenn at zewt.org> wrote:
> The most straightforward solution would seems to be having @lang be a
> CSS property; I don't know the rationale for this being done by HTML
> instead.

The language of a block of text is a property of the content, not a
styling attribute.  It must be carried by the content itself.

As an interesting aside, the direction of a block of text is a
property of the content as well, but CSS has a 'direction' property.
We only added that because XML didn't define a generic @dir attribute,
so we needed *some* way for generic XML languages to specify the text
direction (in this case, by specifying their own direction-specifying
attribute and then providing a default stylesheet that sets
'direction' based on that).  If XML had specified xml:dir like they
did xml:lang, 'direction' wouldn't exist.  Similarly, if XML hadn't
specified xml:lang, we'd probably have a 'language' property.

Received on Thursday, 2 June 2011 21:02:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:33 UTC