Last modified: 2013-07-04 10:34:52 UTC
See for example http://parsoid.wmflabs.org/en/Foobar - output is [457] rather than [1] for the first one.
Lowering priority as this is purely cosmetic and does not affect round-tripping or editing.
But affects user confidence in Parsoid catastrophically. :-)
Patch submitted @ https://gerrit.wikimedia.org/r/#/c/60378/2
Related URL: https://gerrit.wikimedia.org/r/60631 (Gerrit Change I490edd52be75d8484358a07bef783080f4604f86)
The two patches are independent of each other. But, 60631 is the real fix for this bug. - 60378 will fix the bug when a page always has a references tag. It is required to reset ref indexes when a page has multiple reference tags. As a result, it will ensure that state is reset when the last references tag on the page is a global references tag. But, will not work in other scenarios. - 60631 will fix the bug by ensuring global parser state is reset before each page is parsed. This doesn't however ensure that ref indexes are reset after each references tag when a page has multiple reference tags.
Now merged. To be verified in production once Parsoid is redeployed.
Confirmed working in production - thanks! Marking as fixed.
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]