<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>21417</bug_id>
          
          <creation_ts>2008-10-06 16:28:05 -0700</creation_ts>
          <short_desc>Specifying more than one language in META fails w3 test</short_desc>
          <delta_ts>2012-04-11 13:19:01 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.w3.org/International/tests/sec-lang-decl-6</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>77724</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jon@Chromium">jon</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>falken</cc>
    
    <cc>jshin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94291</commentid>
    <comment_count>0</comment_count>
    <who name="Jon@Chromium">jon</who>
    <bug_when>2008-10-06 16:28:05 -0700</bug_when>
    <thetext>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: &lt;html&gt;. There is no HTTP Content-Language information. There is a meta tag that says &lt;meta http-equiv=&quot;Content-Language&quot; content=&quot;ko,zh,ja&quot; /&gt;. 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 &quot;Styling with :lang&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>541092</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Falkenhagen">falken</who>
    <bug_when>2012-01-23 20:14:15 -0800</bug_when>
    <thetext>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: &quot;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.&quot;

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

    </bug>

</bugzilla>