Bug 18770 - Typing a character after a space fires unnecessary DOMCharacterDataModified events
Summary: Typing a character after a space fires unnecessary DOMCharacterDataModified e...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-27 06:40 PDT by Frank Illenberger
Modified: 2022-07-01 11:58 PDT (History)
5 users (show)

See Also:


Attachments
Test case (495 bytes, text/html)
2008-04-27 06:42 PDT, Frank Illenberger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Illenberger 2008-04-27 06:40:13 PDT
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.
Comment 1 Frank Illenberger 2008-04-27 06:42:05 PDT
Created attachment 20848 [details]
Test case
Comment 2 Ahmad Saleem 2022-06-30 17:08:36 PDT
I am getting following behavior:



-> Safari 15.5 -> Just loading test case shows "DOMCharacterDataModified" six times.
-> Chrome Canary 105 -> shows same four times.
-> Firefox Nightly 104 -> shows three times.

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

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!