Closed
      
        Bug 1043182
      
      
        Opened 11 years ago
          Closed 11 years ago
      
        
    
  
IMEContentObserver::CharacterDataChanged() doesn't convert new lines in replaced and inserted text to native new lines   
    Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
        RESOLVED
        FIXED
        
    
  
        
            mozilla34
        
    
  
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: inputmethod)
Attachments
(1 file, 1 obsolete file)
| 
        
        
         8.33 KB,
          patch         
       | 
      
           smaug
 :
              
              review+
           | 
      Details | Diff | Splinter Review | 
      No description provided.
| Assignee | ||
          Comment 1•11 years ago
           
         | 
      ||
| Assignee | ||
          Comment 2•11 years ago
           
         | 
      ||
The patches of bug496360 causes broken behavior of ChangJie (Taiwan's IME).
0. Focus to textarea element.
1. Type a Chinese character and commit it.
2. Type Enter.
3. Type something.
Then, the new composition is inserted to the end of the first line, not the second line. This only occurs in textarea. Not reproduced in HTML editor.
The reason is, plain text editor doesn't use <br> for line breaks. The content is actually plain text with XP line breaks. However, IMEContentObserver::CharacterDataChanged() doesn't convert the new lines to native new lines at computing the mOldEnd and mNewEnd.
I'm not sure why ChangJie is broken by the patches. Although, this bug has already been there...
        Attachment #8461408 -
        Attachment is obsolete: true
        Attachment #8462395 -
        Flags: review?(bugs)
          Updated•11 years ago
           
         | 
      
        Attachment #8462395 -
        Flags: review?(bugs) → review+
| Assignee | ||
          Comment 3•11 years ago
           
         | 
      ||
          Comment 4•11 years ago
           
         | 
      ||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
          Updated•6 years ago
           
         | 
      
Component: Event Handling → User events and focus handling
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•