Closed
      
        Bug 456244
      
      
        Opened 17 years ago
          Closed 17 years ago
      
        
    
  
Deleting all content in an inline contenteditable element inserts a <br>
Categories
(Core :: DOM: Editor, defect)
Tracking
()
        RESOLVED
        FIXED
        
    
  
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
Details
(Keywords: testcase)
Attachments
(3 files)
| 
        
        
         321 bytes,
          text/html         
       | 
      Details | |
| 
        
        
         7.82 KB,
          patch         
       | 
      
           peterv
 :
              
              review+
          peterv
 :
              
              superreview+
           | 
      Details | Diff | Splinter Review | 
| 
        
        
         807 bytes,
          patch         
       | 
      Details | Diff | Splinter Review | 
Deleting all content in an inline contenteditable element inserts a <br>.
I would guess it's a similar problem as in bug 455992.
STEPS TO REPRODUCE
1. load the attached testcase
2. delete the X so that the span becomes empty
ACTUAL RESULTS
A <br> is inserted into to the DOM, making "Y" move to the next line.
| Assignee | ||
          Comment 1•17 years ago
           
         | 
      ||
| Assignee | ||
          Comment 2•17 years ago
           
         | 
      ||
Assignee: nobody → mats.palmgren
        Attachment #339658 -
        Flags: superreview?(peterv)
        Attachment #339658 -
        Flags: review?(peterv)
| Assignee | ||
          Comment 3•17 years ago
           
         | 
      ||
          Updated•17 years ago
           
         | 
      
        Attachment #339658 -
        Flags: superreview?(peterv)
        Attachment #339658 -
        Flags: superreview+
        Attachment #339658 -
        Flags: review?(peterv)
        Attachment #339658 -
        Flags: review+
| Assignee | ||
          Comment 4•17 years ago
           
         | 
      ||
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•