Last week, `nativeGalleryEnabled` was enabled in production https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/889257
Running rt testing this week reported a number semantic differences when serializing from html instead of from data-mw,
https://parsoid-rt-tests.wikimedia.org/regressions/between/eced3e2/798eef3b
Note that selser will prevent any dirtying for unedited galleries and galleries edited by VE would drop the data-mw properties so there's no change to production. This is just about reporting during roundtrip testing but might yield some issues worth fixing.
---
`|thumb` media option dropped
ex. https://parsoid-rt-tests.wikimedia.org/resultFlagNew/eced3e2/798eef3b/jawiki/%E5%A4%A7%E5%88%86%E7%A9%BA%E6%B8%AF
This was known in T214601 and felt fine to normalize away since it isn't a valid media option in galleries. It seems like we can do better than the patch that was merged for that by having another argument to `renderMedia` that prevents other formats from rendering (first one wins T305628),
https://github.com/wikimedia/mediawiki-services-parsoid/blob/master/src/Ext/ParsoidExtensionAPI.php#L938-L946
In any case, the reason this is classified as a semantic difference is that the `alt` attribute on the `img` is suppressed for thumbs and not for plain floated images because the caption is visible for thumbs.
---
From https://parsoid-rt-tests.wikimedia.org/resultFlagNew/eced3e2/798eef3b/enwiki/MESSENGER_probe
```
------
ages of the spacecraft">
File:MESSENGER - Sonda.png|alt=Diagram of ''MESSENGER''|Diagram of ''MESSENGER''.
File:MESSENGER - installa
++++++
ages of the spacecraft">
File:MESSENGER - Sonda.png|alt=Diagram of MESSENGER|Diagram of ''MESSENGER''.
File:MESSENGER - installa
```
Here `|alt` formatting is lost. This can probably be fixed by T252246. The alt attribute is text though so the normalization seems fine.
The reason this is classified as a semantic difference is because the formatting in an attribute forces an `mw:ExpandedAttrs` typeof, which isn't there after roundtripping.
---
Keep going ...