W3C home > Mailing lists > Public > www-international@w3.org > April to June 2011

I18N-ISSUE-31: What's the language of a document [HTML5]

From: Internationalization Core Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Mon, 20 Jun 2011 15:15:39 +0000
To: www-international@w3.org
Message-Id: <E1QYgCR-0003aM-B7@lowblow.w3.org>

I18N-ISSUE-31: What's the language of a document [HTML5]

http://www.w3.org/International/track/issues/31

Raised by: Richard Ishida
On product: HTML5

4.2.5.3 Pragma directives
http://dev.w3.org/html5/spec/semantics.html#attr-meta-http-equiv-content-language

WG Approved: Yes



Our proposal is as follows and is based on the text of the following sections:

http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#document-wide-default-language

http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-lang-and-xml:lang-attributes

[1] Explain clearly that declarations in the http header and the meta element refer to the document as an object, rather than the text in a specific element (this is what makes the distinction between single and multiple values sensible).

[2] Continue to recommend that the document-wide default language be defined by a lang attribute on the html tag, but say that if the lang attribute is missing and there is a language defined in the http or meta, then those language declarations can be used to guess the language of the text, if they contain a single value.

[3] Establish the precedence between http vs meta.

[4] Establish the rule that multiple values in the place that has precedence equates to lang="".

This is very close to what we already have, but doesn't try to make the meta declaration a different thing than the http declaration, or change it so that multiple values are no longer valid. At the same time, it allows either the http or the meta to provide language information for text-processing, if the declaration is useable.

We also feel that the spec seems to restrict the use of the term 'document-wide default language' to refer only to a language declared using the meta, and this is rather odd. We feel that in fact the lang attribute on the html element also establishes a document-wide default language. (See the text: "Until the pragma is successfully processed, there is no document-wide default language.")

Update: This comment became part of ISSUE-88.


IMPORTANT: This issue was moved from our old review tracking system to the new tracker system. For previous mail relating to this issue, see: http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&hdr-1-name=subject&hdr-1-query=the%20language%20of%20a%20document&hdr-2-name=from&hdr-2-query=&hdr-3-name=message-id&hdr-3-query=&index-grp=Member__FULL+Public__FULL&index-type=t&type-index=www-international%40w3.org&resultsperpage=20&sortby=date
Received on Monday, 20 June 2011 15:15:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 June 2011 15:15:42 GMT