Page MenuHomePhabricator

Parsoid problem with the <pages> tag, wrong navigation links
Closed, ResolvedPublic

Description

With Parsoid, the HTML generated from a <pages> tag is partially wrong, the url to go back to the precedent chapter points to the same current chapter.

In this example, it points to "CHAPITRE IX", although the reader is already at this chapter:
http://parsoid.wmflabs.org/frwikisource/De%20la%20litt%C3%A9rature%20des%20n%C3%A8gres/9

In comparison, on Wikisource, this points correctly to "CHAPITRE VIII":
http://fr.wikisource.org/wiki/De_la_litt%C3%A9rature_des_n%C3%A8gres/9


Version: unspecified
Severity: normal

Details

Reference
bz54668

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:19 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz54668.

I did not know about the <pages> tag extension before. Which extension defines this?

Arlolra set Security to None.
Arlolra claimed this task.
Arlolra subscribed.

the url to go back to the precedent chapter points to the same current chapter.

This seems to be rendered ok nowadays,
https://fr.wikisource.org/api/rest_v1/page/html/De_la_litt%C3%A9rature_des_n%C3%A8gres%2F9