Page MenuHomePhabricator

Use data-mw.rangeId="t:...." instead of "about" for template ranges
Open, MediumPublic

Description

In an attempt to unify our DOM spec for templates, annotations, and whatever-else-may-be-similar, it would be nice if src/Wt2Html/PP/Processors/DOMRangeBuilder.php for templates used data-mw.rangeId like AnnotationRangeBuilder does, perhaps with a different ID prefix (or maybe data-mw.rangeId is a dictionary?) so our markup is uniform & consistent and it's obvious how any future range builder would integrate.

T275082: Develop a spec for representing a DOM range in serialized Parsoid output is closely related.