mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
2be3ab72c6
* When a page is missing an explicit <references /> tag, we insert an implicit <references /> tag and assign it a zero-width DSR with a starting offset equal to the length of the page. However, now that we have byte offsets, that should have been strlen, not mb_strlen. This was causing incorrect DSR assignment on this implicit tag and causing trailing newline selser diffs on these pages. * Debugged on this reduced test case: "* a – b <ref>x</ref>\n\nc\n\n" and comparing selser trace and then DSR offsets on the DOMs. Change-Id: I8aebf307197935259df78251fb4a26c593f29603 |
||
---|---|---|
lib/ext/Cite | ||
src/Parsoid |