In his email, Scott pointed to the phab task / gerrit patch [2] that introduced the extra span in the DOM structure. Separately, he also pointed to a change [3] that might roll out soon that might make Parsoid and the old parser emit the span wrapper identically. But, as he notes, the API and the read view code paths could be reconciled so that the outputs could match better. Till we make that fix, you will notice the difference between the API and the DOM structure.
Hopefully this helps clarify why you are noticing this now.Subbu.
1. https://sv.wikipedia.org/wiki/Wikipedia:Bybrunnen/Massmeddelanden#Migration_to_ParsoidHi!
We are working on the Wikispeech extension and have run into an issue on Swedish Wikipedia (svwp) where the page title DOM seems different both from the displayTitle returned by the API and from what we see on other wikis.
For example, if we query:
we get:
{"title":"Apa","pageid":3877894,"displaytitle":"<span class=\"mw-page-title-main\">Apa</span>"}}However, in the actual DOM on svwp, the title appears wrapped differently, for example:
<span lang="sv" dir="ltr"><span class="mw-page-title-main">Apa</span></span> + editsection span
So it adds an extra <span>..What confuses us is that this seems to behave differently from other wikis we have tested, such as enwp, where the title DOM appears as the displayTitle structure.
Is there something specific about svwp that causes the page title DOM to be wrapped differently from other wikis, or has there been any updates regarding the structure?
Kind regards,Viktoria Hillerud AhlbäckDeveloperWikimedia Sverige (WMSE)
_______________________________________________ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/