Bug 21417 - Specifying more than one language in META fails w3 test
Summary: Specifying more than one language in META fails w3 test
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC OS X 10.5
: P3 Normal
Assignee: Nobody
URL: http://www.w3.org/International/tests...
Keywords:
Depends on:
Blocks: 77724
  Show dependency treegraph
 
Reported: 2008-10-06 16:28 PDT by Jon@Chromium
Modified: 2012-04-11 13:19 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon@Chromium 2008-10-06 16:28:05 PDT
The behavior in the instance of having more than one language specified in the META tag of a page is not specified.  IE 7, Chromium, and Safari 3.1 all fail this test.  Firefox passes.

The html element in the test says: <html>. There is no HTTP Content-Language information. There is a meta tag that says <meta http-equiv="Content-Language" content="ko,zh,ja" />. The tests will react if Korean (ko) language is detected.

Steps:
1. Launch Chrome, or Safari 3.1
2. Go to http://www.w3.org/International/tests/sec-lang-decl-6 or
http://www.w3.org/International/tests/sec-lang-decl-7
3. Observe "Styling with :lang" section

Result:
Background color is white

Expected:
Should be green

This is being tracked by Chromium as http://code.google.com/p/chromium/issues/detail?id=3180
Comment 1 Matt Falkenhagen 2012-01-23 20:14:15 PST
According to the HTML5 spec, http-equiv Content-Language containing a comma should be ignored: http://dev.w3.org/html5/spec/Overview.html#pragma-set-default-language

Also, when falling back to the HTTP header Content-Language, if it contains multiple languages, the computed lang should be unknown: "In the absence of any such language information, and in cases where the higher-level protocol reports multiple languages, the language of the node is unknown, and the corresponding language tag is the empty string."

The w3 tests seem updated to reflect this:
http://www.w3.org/International/tests/html-css/language-declarations/results-language-declarations