Page MenuHomePhabricator

Make Score extension compatible with Parsoid
Open, MediumPublic

Description

Parsoid has its own extension API - see https://www.mediawiki.org/wiki/Parsoid/Extension_API.
In this first phase, we are targeting tag-hook extensions for migration.
The Score extension needs an update to work directly with Parsoid.

Event Timeline

Arlolra triaged this task as Medium priority.Feb 25 2021, 5:24 PM
Arlolra moved this task from Backlog to Missing Functionality on the Parsoid board.

Looking at the Score extension code, it looks like the only markup that is impacted is image linking. But, @Arlolra has been working to have legacy parser generate Parsoid-style output for images. So, we may be have to get away without needing to write a Parsoid-native handler and simply continuing to proxy calls to the legacy parser.

Just a note that there isn't really a Spec for Score content. Or rather how to distinguish between different types of audio/video (TMH vs Score) content at the spec level.
This should be addressed at some point and leads to problems like T135501: Formalize how TMH provides a player for Score-generated ogg/vorbis files