Page MenuHomePhabricator

VisualEditor:The numbered list does not get reordered properly after deleting the first item of the list creating a difference in Edit mode and Read mode
Closed, DeclinedPublic

Description

Steps to reproduce:

1.Open the editor
2.Create a numbered list with 4 items.For example:

  1. item 1
  2. item 2
  3. item 3
  4. item 4

3.Now place the cursor at the end of item 2 and press enter
4.Add a new item 3( it gets added properly)
5.Now place the cursor just before item 1 and press enter to move it to the next line
6.Type a new item1 in first line
7.Delete the new item

Observed Result:

The order (1.) does not get deleted.In read mode the list appears like this:

  1. item 1
  2. item 2
  3. new item 3
  4. new item 4
  5. item 3
  6. item 4

After saving, in read mode the list appears as follows:

1.item 1
2.item 2
3.new item 3
4.new item 4
5.item 3
6.item 4


Version: unspecified
Severity: normal

Details

Reference
bz58757

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:40 AM
bzimport set Reference to bz58757.

Test Environment:https://test2.wikipedia.org/
Browser: Chrome Version 26.0.1410.65 & FF 25
OS: MAC OS X 10. 8. 5
Page:https://test2.wikipedia.org/w/index.php?title=Another_page20th

Created attachment 14149
In edit source mode

Attached:

Screen_Shot_2013-12-20_at_11.37.03_AM.png (489×1 px, 107 KB)

Created attachment 14150
In VE edit mode

Attached:

Screen_Shot_2013-12-20_at_11.36.40_AM.png (569×1 px, 112 KB)

Created attachment 14151
In read mode

Attached:

Screen_Shot_2013-12-20_at_11.36.23_AM.png (511×1 px, 107 KB)

I think that this is "expected" behaviour (blank <li>s don't show in read mode, but do in wikitext and VE), confusingly.