<?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>18770</bug_id>
          
          <creation_ts>2008-04-27 06:40:13 -0700</creation_ts>
          <short_desc>Typing a character after a space fires unnecessary DOMCharacterDataModified events</short_desc>
          <delta_ts>2022-07-01 11:58:04 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></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>0</everconfirmed>
          <reporter name="Frank Illenberger">illenberger</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>rniwa</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79036</commentid>
    <comment_count>0</comment_count>
    <who name="Frank Illenberger">illenberger</who>
    <bug_when>2008-04-27 06:40:13 -0700</bug_when>
    <thetext>Normally, a single character typed into a contenteditable are should create a single DOMCharacterDataModified event. 

WebKit generates two unnecessary additional DOMCharacterDataModified  events for a character typed after a space character.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79037</commentid>
    <comment_count>1</comment_count>
      <attachid>20848</attachid>
    <who name="Frank Illenberger">illenberger</who>
    <bug_when>2008-04-27 06:42:05 -0700</bug_when>
    <thetext>Created attachment 20848
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879606</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-06-30 17:08:36 -0700</bug_when>
    <thetext>I am getting following behavior:



-&gt; Safari 15.5 -&gt; Just loading test case shows &quot;DOMCharacterDataModified&quot; six times.
-&gt; Chrome Canary 105 -&gt; shows same four times.
-&gt; Firefox Nightly 104 -&gt; shows three times.

Now when I try to type anything in content editable field - across all browsers I am getting just once &quot;DOMCharacterDataModified&quot;.

In former case, all browsers are behaving different and it might be something which need to be checked within Web-Spec and aligned with it across all browsers. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20848</attachid>
            <date>2008-04-27 06:42:05 -0700</date>
            <delta_ts>2008-04-27 06:42:05 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>UnnecessaryDOMCharacterDataModifiedEvents.html</filename>
            <type>text/html</type>
            <size>495</size>
            <attacher name="Frank Illenberger">illenberger</attacher>
            
              <data encoding="base64">PGh0bWw+Cgk8Ym9keT4KCQk8cD5ET01DaGFyYWN0ZXJEYXRhTW9kaWZpZWQgc2hvdWxkIGJlIHBy
aW50ZWQgdHdpY2U6CgkJPGRpdiBjb250ZW50ZWRpdGFibGU9InRydWUiPlRlc3Q8L2Rpdj4KCQk8
c2NyaXB0PgogIAkJCXZhciBkaXYgPSBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiZGl2
IilbMF07CiAgCQkJZGl2LmFkZEV2ZW50TGlzdGVuZXIoIkRPTUNoYXJhY3RlckRhdGFNb2RpZmll
ZCIsIGZ1bmN0aW9uKCkgeyBkb2N1bWVudC53cml0ZSgiPHA+RE9NQ2hhcmFjdGVyRGF0YU1vZGlm
aWVkPC9wPiIpOyB9LCBmYWxzZSk7CgoJCQl3aW5kb3cuZ2V0U2VsZWN0aW9uKCkuc2V0UG9zaXRp
b24oZGl2LmZpcnN0Q2hpbGQsIDQpOwoJCQlkb2N1bWVudC5leGVjQ29tbWFuZCgiSW5zZXJ0VGV4
dCIsIGZhbHNlLCAiICIpOwoJCQlkb2N1bWVudC5leGVjQ29tbWFuZCgiSW5zZXJ0VGV4dCIsIGZh
bHNlLCAiISIpOwoJCTwvc2NyaXB0PgoJPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>