<?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>22194</bug_id>
          
          <creation_ts>2013-05-29 06:47:43 +0000</creation_ts>
          <short_desc>Clarificaiton of &apos;enabled&apos; property behavior</short_desc>
          <delta_ts>2013-07-04 07:42:29 +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>All</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>public-webapps</cc>
    
    <cc>travil</cc>
    
    <cc>yoichio</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88365</commentid>
    <comment_count>0</comment_count>
    <who name="Takayoshi Kochi">kochi</who>
    <bug_when>2013-05-29 06:47:43 +0000</bug_when>
    <thetext>Even though the spec assumes that the &apos;enabled&apos; property associated with
the context can be used to detect whether the IME is turned on or not,
but for some cases it may not work as intended.

On Chromium (and possibly other browsers) a real IME context is shared in a
browser, and the state of the IME may change on focus change.

To illustrate this, if a page has one input field which has focus and
IME is turned on, context.enabled is expected to return true.
But once outside of the input field is clicked, the browser turns off IME.
A naive implementation of .enabled property will return false in that case,
but the state of IME will be restored when the input field gets focus again,
and .enabled returns true.

Webapps developers may assume that the state won&apos;t change on focus change.

Possible solutions:

1. Do not change the spec.

Users of the API will accept the behavior as is and let the behavior
implementation dependent.

2. Hold the .enabled state within context and restore when it gets focus

Retain the state and change the state only when the field has focus,
and once it loses focus and gets focus again, then restore the state.

This may be an expected behavior of most developers.

3. Remove .enabled from the spec

As .enabled may not be implemented on Mac/Android, it may be a good
idea to abandon .enabled and focus on having &apos;inputmode&apos; attribute.
Microsoft&apos;s proposal also dropped .enabled (for the reason that
it won&apos;t support the case for non-editable element, though).

4. none of the above

Any other ideas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90341</commentid>
    <comment_count>1</comment_count>
    <who name="Takayoshi Kochi">kochi</who>
    <bug_when>2013-07-04 07:42:29 +0000</bug_when>
    <thetext>I&apos;ll choose 3, abondoning .enable property.

Something like input type= or inputmode should be used instead to give hint to
user agent.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>