Page MenuHomePhabricator

VisualEditor: Aborted empty list creates a pawn
Closed, ResolvedPublic

Description

Go to http://en.wikipedia.org/wiki/Content_Management_Interoperability_Services
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

Details

Reference
bz48287

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.
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: https://gerrit.wikimedia.org/r/63102 (Gerrit Change If22d9b904b8861e24d56944d791545635b2e4254)

(In reply to comment #3)

Related URL: https://gerrit.wikimedia.org/r/63102 (Gerrit Change
If22d9b904b8861e24d56944d791545635b2e4254)

Merged.

Merged into master; will be deployed from Monday.