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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>21830</bug_id>
          
          <creation_ts>2013-04-25 19:28:30 +0000</creation_ts>
          <short_desc>KeyboardEvent.locale is too general.</short_desc>
          <delta_ts>2015-10-06 22:44:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - UI Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Travis Leithead [MSFT]">travil</reporter>
          <assigned_to name="Gary Kacmarcik">garykac</assigned_to>
          <cc>garykac</cc>
    
    <cc>masayuki</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>public-webapps</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86809</commentid>
    <comment_count>0</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2013-04-25 19:28:30 +0000</bug_when>
    <thetext>The KeyboardEvent.locale property is underspecified. BCP-47 is too general, we need to get much more crip on what sub-set of these strings are reasonable and which are not.

Eg., there is a dvorak BCP-47 string. Should this be reported?

Goal should be to simplify the set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86976</commentid>
    <comment_count>1</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2013-04-30 00:00:04 +0000</bug_when>
    <thetext>It&apos;s good timing. I tried implementing KeyboardEvent.locale and CompositionEvent.locale on Gecko.

Then, I worked on Windows and Mac. I think there is no API on Linux (except directly accessing IM framework such as iBus, SCIM). I&apos;m still investigating about Android, though.

On Windows, we can make conversion table with:
http://msdn.microsoft.com/en-us/goglobal/bb896001.aspx
# I guess that IE 9 also used this table.

On Mac, we can get the language property of current TIS with kTISPropertyInputSourceLanguages.
https://developer.apple.com/library/mac/#documentation/TextFonts/Reference/TextInputSourcesReference/Reference/reference.html

Then, on Mac, we cannot return locale. E.g., cannot return en-US, can just return en.

And IE 10 returns &quot;zh-CN&quot; for simplified Chinese. However, on Mac, we can returns &quot;zh-Hans&quot;. So, I have no idea to implement with good compatibility between platforms.

So, I&apos;m now thinking that .locale is not useful for web developers under current spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86987</commentid>
    <comment_count>2</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2013-04-30 05:07:54 +0000</bug_when>
    <thetext>The draft patches for Gecko are here:
https://bugzilla.mozilla.org/show_bug.cgi?id=680832</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87824</commentid>
    <comment_count>3</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2013-05-17 18:09:00 +0000</bug_when>
    <thetext>We may want to move KeyboardEvent.locale into UI Events so that we can take the time to define it properly.

Nothing in D3E relies on KeyboardEvent.locale, but UI Events has a few methods that want to make use of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96321</commentid>
    <comment_count>4</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2013-11-14 09:00:41 +0000</bug_when>
    <thetext>The locale attribute has been moved into UI Events.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123549</commentid>
    <comment_count>5</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2015-10-06 22:44:22 +0000</bug_when>
    <thetext>Now tracking as: https://github.com/w3c/uievents/issues/14</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>