Bug 18770

Summary: Typing a character after a space fires unnecessary DOMCharacterDataModified events
Product: WebKit Reporter: Frank Illenberger <illenberger>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: ahmad.saleem792, ap, cdumez, rniwa, wenson_hsieh
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Test case none

Frank Illenberger
Reported 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.
Attachments
Test case (495 bytes, text/html)
2008-04-27 06:42 PDT, Frank Illenberger
no flags
Frank Illenberger
Comment 1 2008-04-27 06:42:05 PDT
Created attachment 20848 [details] Test case
Ahmad Saleem
Comment 2 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!
Note You need to log in before you can comment on or make changes to this bug.