https://bugzilla.wikimedia.org/show_bug.cgi?id=60017

sp...@wikimedia.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gwi...@wikimedia.org
            Summary|Flow: Reference numbers     |Flow: Reference numbers in
                   |aren't super-scripted       |Parsoid output aren't
                   |                            |superscripted

--- Comment #3 from sp...@wikimedia.org ---
The pre-formatted div you mention in #comment 2 seems fixed on mediawiki.

The lack of superscript may be because Parsoid doesn't run the <ref> tag
through Extension:Cite/Cite.php – it doesn't use the PHP parser's hooks. But it
clearly does something with the <ref> tag, turning it into a <span
class="reference"> containing a hyperlink with a counted element.  If it's by
design that Parsoid doesn't output a <sup> tag, then a workaround could be to
include Parsoid-specific CSS matching the browser's built-in styling of <sup>
i.e.

  span.reference { font-size: smaller; line-height: normal; vertical-align:
super;}

Some other glitches with reference tags:

* The hyperlinks between the citation [1] and the reference are #citeANCHORNAME
fragments, but because the Flow page includes a <base
href="/wiki/Talk:Sandbox"> (in order to make relative links work?), following
the links when you're viewing this topic in isolation makes you leave the
current page, and if it's scrolled off the Flow board the link won't work. This
happens on http://parsoid.wmflabs.org/_wikitext/ , I'll file a separate bug.

* Each post restarts its citation counters. It's technically illegal HTML to
have two id="cite_note-1" in one document and it's undefined what hyperlinks
using that as a fragment will do. So citations can never work correctly when
the Flow board or single topic view shows more than one post using them, unless
each Flow post provides an anchorPrefixParameter to Parsoid like
'#flow-postId-flow-post-rn84j0djfcyxetu8-' , and Parsoid prepends that when
generating id, name, and href attributes. Another separate bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to