See https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec/Rich_Attributes
In phase 1a of the rich attribute work, we have a uniform representation of all live attributes in the databag, with generic rules for serialization and deserialization.
A number of ad-hoc uses of the data bag can be converted to rich attributes in this phase of the work (see ::loadDataAttribs):
- data-mw-i18n
- data-parsoid-diff
[] data-mw-variant (This requires T348161)
And possibly:
- data-mw
- data-parsoid