https://bugzilla.wikimedia.org/show_bug.cgi?id=47498

--- Comment #1 from ssas...@wikimedia.org ---
I think this is related to https://bugzilla.wikimedia.org/show_bug.cgi?id=47434

Detailed explanation follows:

* On parsoid.wmflabs.org, selective serialization (selser) is enabled. This
immediately sets the regular (non-selser) serializer in editing mode. Since
we've enabled editing support for templates, in non-selser mode, templates are
rendered assuming parameters have been edited.  This then normalizes
white-space.

* The reason for why selser is disabled is in the bug above.

That said, here are a couple improvements we could do on the Parsoid end:

1. Disable editing support for templates at this point, since VE doesn't
support that anyway.
2. Add another level of modification detection for template parameters in
addition to whether we are in selser mode (but that merely adds additional
state we have to maintain in the DOM)
3. Change the tpl-wikitext normalization to add a space before/after the "=". 
But, this just shifts dirty diffs to templates that dont use spaces
before/after the "=".

For now, I would recommend 1.  In addition, we should maybe apply 3. as well
depending on the most common whitespace use around template parameters.

But, we should try to ensure the selective serialization is enabled as far as
possible.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to