https://bugzilla.wikimedia.org/show_bug.cgi?id=53444
Web browser: ---
Bug ID: 53444
Summary: Metadata should always be collapsed on replace.
Product: VisualEditor
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Data Model
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
In ve.dm.Document.getMetadataReplace(), we only merge metadata if the amount
removed is larger than the amount inserted. But this could end up putting
metadata in odd positions, for example if you have Foo[[Category:Bar]]BazQuux
and you delete 'ooBa' and replace it with {image}xxx{/image}, then the category
ends up inside the image.
We should always merge metadata when a segment is deleted, so that it appears
outside any new structure added.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l