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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected],
                   |                            |[email protected]
          Component|General                     |Data Model
           Assignee|[email protected]        |[email protected]
            Product|Parsoid                     |VisualEditor

--- Comment #1 from [email protected] ---
This is because VE seems to have stripped data-mw from a category <link>
element.

In this particular instance, because of fostering of a category link from the
infobox table, the <link> happens to be the very first element in the
transclusion HTML from the infobox and gets the entire roundripping information
of the infobox.  However, if I understand correctly, these metadata tags are
handled differently in VE which might be contributing to the lost of data-mw on
these tags (and subsequently Parsoid never sees the infobox when it comes to
serialization).

So, this can happen on any page where the infobox generates a table and the
specific HTML output emits a category link outside a table-tag.  The specific
place where category links are placed relative to table tags does not matter
for the PHP parser since category link wikitext effectively disappear from the
HTML from the place where they appeared (and hence there is nothing left to
foster out of the table).  But, in the case of Parsoid, because of
roundtripping requirements, the links generate an actual HTML element which
(depending on where they occur in the HTML flow) can get fostered out and can
(depending on how they interact with the surrounding context) can get
roundtripping data-mw information.

So, if VE can preserve this information for now, that will fix this problem.

If there is a problem dealing with link tags and preserving data-mw for
whatever reason, we should figure out a strategy of dealing with these tags. 
Note that it does not matter what HTML category links translate to -- as long
as a HTML element is generated, they are subject to fostering out of tables.

I will not outline other possible solutions for now -- we can discuss on IRC if
we there is anything needed on the Parsoid end to support these scenarios.

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