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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|[email protected]        |[email protected]

--- Comment #3 from [email protected] ---
There are two different pieces of this:

1. With the missing HTML <tr> tag, Parsoid incorrectly assumes that the missing
<tr> tag inserted by the tree builder comes from wikitext (which can be seen by
the |- output in the non-selser serialization above). This confusion is the
reason for the off-by-1 DSR error.  I can fix that in the parser (and have a
fix for it) with an additional check to determine whether a <tr> comes from
wikitext.

2. However, this also needs a fix in the serializer. Where the content of the
<tr> is unchanged, selser accurated spits back the original wikitext. However,
the serializer also needs a fix so that it attempts HTML-tag serialization
instead of wikitext-tag serialization on the <tr>. That will fix the second
issue.

As for 1. the problem is in migrateTrailingNLs. I fixed it, but I think we
added this dom pass to deal with some issues in the WTS during refactoring to
eliminate spurious diffs around trailing newlines and separators. I am tempted
to simply rip out that pass and see what happens (which as a side effect, also
fixes part 1. of this bug). For now, maybe I will push a fix for both, but I
think we should consider getting rid of that pass altogether, if possible since
it may not be necessary anymore.

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