@ssastry asks,
do you know why the audio player renders differently in Parsoid vs. legacy? See the infobox on https://it.wikipedia.org/wiki/Timor_Est vs https://it.wikipedia.org/wiki/Timor_Est?useparsoid=1 .. I don't remember if this is known and not yet fixed or a bug / regression
It looks like TMH's assets aren't loaded because of Parsoid's native implementation,
diff --git a/src/Wt2Html/PP/Processors/AddMediaInfo.php b/src/Wt2Html/PP/Processors/AddMediaInfo.php index e2135c3a3..36438ef96 100644 --- a/src/Wt2Html/PP/Processors/AddMediaInfo.php +++ b/src/Wt2Html/PP/Processors/AddMediaInfo.php @@ -794,6 +794,11 @@ class AddMediaInfo implements Wt2HtmlDOMProcessor { break; } + if ( !$isImage ) { + $env->getMetadata()->addModuleStyles( [ 'ext.tmh.player.styles' ] ); + $env->getMetadata()->addModules( [ 'ext.tmh.player' ] ); + } + $alt = null; $keepAltInDataMw = !$isImage || $errs; $attr = WTSUtils::getAttrFromDataMw( $dataMw, 'alt', $keepAltInDataMw );
Parsoid's player is just the browser's native rendering.
A somewhat related note is T313875