<?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>22057</bug_id>
          
          <creation_ts>2013-05-16 08:46:41 +0000</creation_ts>
          <short_desc>Clarify InputMethodContext&apos;s scope in the spec</short_desc>
          <delta_ts>2013-07-04 07:32:41 +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 - IME API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Takayoshi Kochi">kochi</reporter>
          <assigned_to name="Takayoshi Kochi">kochi</assigned_to>
          <cc>adrianba</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>public-webapps</cc>
    
    <cc>travil</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87749</commentid>
    <comment_count>0</comment_count>
    <who name="Takayoshi Kochi">kochi</who>
    <bug_when>2013-05-16 08:46:41 +0000</bug_when>
    <thetext>An InputMethodContext can be obtained from any HTMLElement, but in some cases
it is unrealistic that all elements in a page have different contexts.

This point is ambiguous in the spec.

For example, consider the following HTML:

&lt;html&gt;
&lt;body&gt;
&lt;input type=text&gt;
&lt;textarea&gt;
...
&lt;/textarea&gt;
&lt;div contenteditable=true&gt;
  &lt;span id=span1&gt; ... &lt;/span&gt;
  &lt;span id=span2&gt; ... &lt;/span&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/text&gt;

It makes sense &lt;input&gt; and &lt;textarea&gt; can have different context, but
if span1 and span2 can have different contexts, 
 - once cursor enters any of the span, switch to the active context?
 - if selection encompasses 2 &lt;span&gt;s, what context should be activated?

This may complicate the implementation too much.  Probably a guideline

  under one contentable element, all DOM elements under the element
  usually share the same context

makes sense for most implementations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88306</commentid>
    <comment_count>1</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2013-05-28 22:03:00 +0000</bug_when>
    <thetext>Yes, it’s our thinking that if the developer queries for input method context on child elements inside the same contentEditable element, he’ll get the same context as on the parent contentEditable element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90337</commentid>
    <comment_count>2</comment_count>
    <who name="Takayoshi Kochi">kochi</who>
    <bug_when>2013-07-04 07:32:41 +0000</bug_when>
    <thetext>I&apos;ll clear this in the next working draft spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>