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...
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:


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.

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

Background color is white

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: