Last modified: 2013-09-20 06:00:31 UTC
I was able to produce a reference labelled "0" in the VisualEditor using the following steps: 1. Create a simple page with some text and a reference. (I've made an example at [[User:Mr. Stradivarius/ref0]].) 2. Copy and paste the reference to somewhere else in the page. 3. Delete the reference from the text that has just been copied and pasted. 4. The first reference is automatically renumbered to "0". The numbering of the first is fixed (back to "1") if you delete the line of text that you were on, but if you add new lines of text the first reference remains laballed "0" even if the pasted line is subsequently removed. The numbering still starts at 0 if you add another reference, so you get ref "0", ref "1", etc. This is on Firefox 22.
Also, this is just in the editing window. When the page is saved, the numbering returns to normal.
Confirming that this bug is now fixed, almost certainly in the re-write of copy-and-paste for nodes that happened for the 5 September release. Apologies for the slow triage at my end.