https://bugzilla.wikimedia.org/show_bug.cgi?id=41223

       Web browser: ---
             Bug #: 41223
           Summary: Emptying paragraph in Firefox with backspace adds <br
                    _moz_dirty>
           Product: VisualEditor
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ContentEditable
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Firefox naturally leaves a <br _moz_dirty> when the contents of a paragraph has
been deleted. There are 2 cases, deleting text in a paragraph and deleting text
in a paragraph in a list item.

In the case of a paragraph NOT within a list item, the DOM is:
<p><br _moz_dirty></p>. ve.ce.TextNode onUpdate cleans the parent, removing the
<br>. 

In the case of a paragraph WITHIN a list item, the DOM is:
<li><p></p><br _moz_dirty></li>. Cleaning the parent doesn't remove the br, but
parent.parent does. Maybe this needs to traverse up to the highest splittable
node? 

In both cases the focus does not return to the slug because the surface is
locked, preventing showSelection (this is in the onChange method).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to