<?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>26612</bug_id>
          
          <creation_ts>2014-08-20 07:26:16 +0000</creation_ts>
          <short_desc>D3E defines input event should be fired immediately after the DOM as been updated but it shouldn&apos;t be so if the editor value is changed by setting value attribute</short_desc>
          <delta_ts>2015-01-21 20:37:49 +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 - DOM3 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="Masayuki Nakano">masayuki</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>annevk</cc>
    
    <cc>benjamp</cc>
    
    <cc>bugs</cc>
    
    <cc>mike</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>110339</commentid>
    <comment_count>0</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2014-08-20 07:26:16 +0000</bug_when>
    <thetext>Currently, D3E spec defines when input event should be fired as:

&quot;A user agent MUST dispatch this event immediately after the DOM has been updated.&quot;

However, at setting value attribute of &lt;input&gt; or &lt;textarea&gt;, input event is not fired on Firefox, Chrome nor IE.

So, D3E needs to update its definition for conforming to implementations.

And I think that beforeinput definition should be changed too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110340</commentid>
    <comment_count>1</comment_count>
      <attachid>1502</attachid>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2014-08-20 07:35:33 +0000</bug_when>
    <thetext>Created attachment 1502
testcase

Using innerHTML for contenteditable editor doesn&apos;t cause firing input event too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110341</commentid>
    <comment_count>2</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2014-08-20 07:36:22 +0000</bug_when>
    <thetext>Setting .value doesn&apos;t change the DOM, it changes the value of
the form control.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110342</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-08-20 07:41:56 +0000</bug_when>
    <thetext>But it should not fire synchronously. At best it should fire when mutation observers are dispatched.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110346</commentid>
    <comment_count>4</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2014-08-20 09:30:29 +0000</bug_when>
    <thetext>I think that input event caused by changes from JS isn&apos;t necessary for web apps. Therefore, I think that current implementations do make sense to me. So, I don&apos;t think that input event (and beforeinput event) should be fired for the cases in the testcase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117399</commentid>
    <comment_count>5</comment_count>
    <who name="Ben Peters">benjamp</who>
    <bug_when>2015-01-21 18:01:42 +0000</bug_when>
    <thetext>Copied to https://github.com/w3c/editing-explainer/issues/41

Please continue the conversation there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117405</commentid>
    <comment_count>6</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2015-01-21 20:37:49 +0000</bug_when>
    <thetext>Bug has moved to Github issue tracking for Editing TF current work.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1502</attachid>
            <date>2014-08-20 07:35:33 +0000</date>
            <delta_ts>2014-08-20 07:35:33 +0000</delta_ts>
            <desc>testcase</desc>
            <filename>input_at_setting_value.html</filename>
            <type>text/html</type>
            <size>854</size>
            <attacher name="Masayuki Nakano">masayuki</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxwPgogIDxpbnB1dCBpZD0iaW5wdXQiPgogIDxzY3JpcHQ+CiAgZG9j
dW1lbnQuZ2V0RWxlbWVudEJ5SWQoImlucHV0IikuYWRkRXZlbnRMaXN0ZW5lcigiaW5wdXQiLCBm
dW5jdGlvbiAoKSB7IGFsZXJ0KCJpbnB1dCBmaXJlZCBvbiA8aW5wdXQ+Iik7IH0pOwogIDwvc2Ny
aXB0PgogIDxidXR0b24gb25jbGljaz0iZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2lucHV0Jyku
dmFsdWUgPSAnZm9vJzsiPnNldCB2YWx1ZTwvYnV0dG9uPgo8L3A+CjxwPgogIDx0ZXh0YXJlYSBp
ZD0idGV4dGFyZWEiPjwvdGV4dGFyZWE+CiAgPHNjcmlwdD4KICBkb2N1bWVudC5nZXRFbGVtZW50
QnlJZCgidGV4dGFyZWEiKS5hZGRFdmVudExpc3RlbmVyKCJpbnB1dCIsIGZ1bmN0aW9uICgpIHsg
YWxlcnQoImlucHV0IGZpcmVkIG9uIDx0ZXh0YXJlYT4iKTsgfSk7CiAgPC9zY3JpcHQ+CiAgPGJ1
dHRvbiBvbmNsaWNrPSJkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgndGV4dGFyZWEnKS52YWx1ZSA9
ICdmb28nOyI+c2V0IHZhbHVlPC9idXR0b24+CjwvcD4KPHA+CiAgPGRpdiBjb250ZW50ZWRpdGFi
bGUgaWQ9ImVkaXRvciI+PC9kaXY+CiAgPHNjcmlwdD4KICBkb2N1bWVudC5nZXRFbGVtZW50QnlJ
ZCgiZWRpdG9yIikuYWRkRXZlbnRMaXN0ZW5lcigiaW5wdXQiLCBmdW5jdGlvbiAoKSB7IGFsZXJ0
KCJpbnB1dCBmaXJlZCBvbiA8ZGl2IGNvbnRlbnRlZGl0YWJsZT4iKTsgfSk7CiAgPC9zY3JpcHQ+
CiAgPGJ1dHRvbiBvbmNsaWNrPSJkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnZWRpdG9yJykuaW5u
ZXJIVE1MID0gJ2Zvbyc7Ij5zZXQgdGV4dCB3aXRoIGlubmVySFRNTDwvYnV0dG9uPgo8L3A+Cgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>