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

--- Comment #20 from [email protected] ---
Given all the discussion we've had, I think we should implement a quick and
simple solution for now.  Here is my proposal.

As far as I can tell, the only place where tag reordering and minimization
matters is where wikitext I and B tags end up as siblings.  So, just targeting
that situation should give what we want.

1. ..</i><i> ..
2. ..</b><b> ..
3. ..</i></b><i> ..
4. ..</b></i><b> ..

These 4 scenarios boil down to two cases which can be handled fairly easily in
the serializer.

While HTML like this <s><i><b>a</b></i></s><b>c</b> (and other variants) could
also be minimized (and would indeed be handled by the algorithm under
discussion that I implemented), serializing this to <s>'''''a'''''</s>'''c''' 
should be sufficient since there is no ambiguity in the parse in the front end
and hence no corruption.

-- 
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

Reply via email to