If you go change one template to another, the only difference is attributes, even if it's a completely different template. We need a way for nodes to override the basic node comparison of aNode.type === bNode.type.
Description
Details
Related Objects
Event Timeline
Actually the typeChange property is never used, so changing any block node to any other block node will come up as an attribute change.
Change 357397 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] VisualDiff: Fix doc child replacement
Change 357397 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] VisualDiff: Fix doc child replacement
Change 361679 had a related patch set uploaded (by Jforrester; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (b3a7707)
Change 361679 merged by Jforrester:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (b3a7707)
The patch only resolved the more egregious case when the node type has changed - we didn't add the special rule for templates yet.
Change 367921 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Abstract definition of type equality when comparing inline nodes
Change 367922 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Compare template names when diffing, not just type
Change 367921 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Abstract definition of type equality when comparing inline nodes
Change 368830 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (4d6745b2f)
Change 368830 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (4d6745b2f)
It seems we're not quite done here whilst https://gerrit.wikimedia.org/r/#/c/367922/ remains unmerged.
Change 367922 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Compare template names when diffing, not just type