who adapted it for his work on the Seven Gifts of the Holy Ghost. However the legend gained its greatest prominence when it appeared in the third recension (edited revision) of Martin of Opava's Chronicon Pontificum et Imperatorum later in the 13th century. This version, which may have been by Martin himself, is the first to attach a name to the figure, indicating that she was known as John Anglicus or John of Mainz. It also changes the date from the 11th to the 9th century, indicating that Joan reigned between Leo IV and Benedict III in the 850s. According to the Chronicon: One version of the Chronicon gives an alternative fate for the female pope: she did not die immediately after her exposure but was confined and deposed, after which she did many years of penance. Her son from the affair eventually became Bishop of Ostia and ordered her entombment in his cathedral when she died. Other references to the female pope are attributed to earlier writers, though none appears in manuscripts that predate the Chronica. The one most commonly cited is Anastasius Bibliothecarius (d. 886), a compiler of Liber Pontificalis, who was a contemporary of the female Pope by the Chronicon'''s dating. However the story is found in only one unreliable manuscript of Anastasius. This manuscript, in the Vatican Library, bears the relevant passage inserted as a footnote at the bottom of a page. It is out of sequence and in a different hand, one that dates from after the time of Martin of Opava. This ‘witness’ to the female pope is likely to be based on Martin's account and not a possible source for it. The same is true of Marianus Scotus's Chronicle of the Popes, a text written in the 11th century. Some of its manuscripts contain a brief mention of a female pope named Johanna (the earliest source to attach to her the female form of the name), but all these manuscripts are later than Martin's work. Earlier manuscripts do not contain the legend. Some versions of the legend suggest that subsequent popes were subjected to an examination whereby, having sat on a so-called sedia stercoraria or ‘dung chair’ containing a hole, a cardinal had to reach up and establish that the new pope had testicles before announcing "Duos habet et bene pendentes" ("He has two and they dangle nicely"), or "habet" ("he has them")