https://bugzilla.wikimedia.org/show_bug.cgi?id=49503
Web browser: ---
Bug ID: 49503
Summary: Redirects to categories don't round-trip properly
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
echo '#redirect [[Category:Foo]]' | node parse --wt2wt | node parse --wt2wt
#redirect [[Category:Foo]][[Category:Foo]][[Category:Foo]]
It seems that the necessary special-case handing in the serializer is missing.
If we assume that editors never insert categories in the middle of the DOM
(currently true) then it should be safe to check for the previousSibling of the
category link, and avoid serializing it if that is a redirect with the same
target.
--
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