Citation references are zero-indexed rather than one-indexed in target names
Closed, ResolvedPublic

Description

In the current Parsoid integration (through the PHP parser) of the Citation extensions, its references are zero-indexed rather than one-indexed in target names - this means that the generated HTML from Parsoid looks (roughly) like:

<li id="cite_note-Foo-0" data-parsoid="…"><a href="#cite_ref-Foo-0-0" data-parsoid="…">↑</a>…</li>

... rather than:

<li id="cite_note-Foo-1"><a href="#cite_ref-Foo-1-0">↑</a>…</li>


Version: unspecified
Severity: trivial

bzimport added projects: Parsoid, Easy.Via ConduitNov 22 2014, 12:54 AM
bzimport set Reference to bz43236.
Jdforrester-WMF created this task.Via LegacyDec 18 2012, 4:41 PM
GWicke added a comment.Via ConduitDec 18 2012, 4:50 PM

Same reason as those other bugs: We are using our own Cite extension implementation (no PHP involved) that differs in details like these. Easy to adjust though.

Aklapper added a comment.Via ConduitJul 4 2013, 10:33 AM

[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]

Add Comment