Page MenuHomePhabricator

VisualEditor: Aborted empty list creates a pawn
Closed, ResolvedPublic


Go to
Put the cursor somewhere in the text.
Type "Enter" 2 times.
Type "Up".
Click Bullet List
Type Enter
Type Up
Type Delete

Wild pawn appears.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 1:23 AM
bzimport set Reference to bz48287.

Same when entering text instead of Delete

I can reproduce in Firefox and Chrome if you forwards-delete or insert characters. It appears that this is because when you clear out the <li> (return at the end of the list) it doesn't check that the <ul> is empty, so you get a node inside the <ul>.

Note that in casual testing this 'worked', because backspace deletes the pawn and <ul> together. Bother.

Related URL: (Gerrit Change If22d9b904b8861e24d56944d791545635b2e4254)

(In reply to comment #3)

Related URL: (Gerrit Change


Merged into master; will be deployed from Monday.