Hi!
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:
*https://sv.wikipedia.org/w/api.php?action=parse&format=json&page=Apa... https://sv.wikipedia.org/w/api.php?action=parse&format=json&page=Apa&prop=displaytitle&formatversion=2*
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äck* *Developer* Wikimedia Sverige (WMSE)