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

Gabriel Wicke <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #4 from Gabriel Wicke <[email protected]> ---
(In reply to comment #1)
> [subbu@earth tests] echo "</b>" | node parse --editMode false
> <body data-parsoid="{}"><p data-parsoid='{"dsr":[0,4,0,0]}'><meta
> typeof="mw:Placeholder/StrippedTag"
> data-parsoid='{"src":"</b>","name":"B","dsr":[0,4,null,null]}'></p>
> </body>
> 
> We just need to find a way of converting these non-editmode stripped tags
> into
> plain text in certain situations.

In my testing that is not what the PHP parser & tidy are doing, so this would
be a change of content semantics.

Cleaning up stray close tags when nearby content is edited is a good thing in
my opinion. Selective serialization ensures that end tags in unmodified parts
of the page are preserved to avoid dirty diffs. Simply re-inserting stray end
tags based on StrippedTag info is not safe in the presence of editing, and
making it safe would add a lot of complexity for little gain.

For these reasons I am closing this as WONTFIX. Please reopen this bug if there
are cases where the PHP parser renders stray end tags as text, but we don't.

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