https://bugzilla.wikimedia.org/show_bug.cgi?id=52488
--- Comment #3 from Roan Kattouw <[email protected]> --- (In reply to comment #1) > This is because VE seems to have stripped data-mw from a category <link> > element. > That sounds scary. I'll investigate. > 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). > They're only handled differently if they occur in isolation. But mw:Transclusion takes precedence over other things, as does about-grouping. So if there's a <link> tag that's either about-grouped with other things or has mw:Transclusion set, it won't (shouldn't) be treated as metadata. I'll have to see what's going on here. > 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. > I don't quite understand what kind of fostering behavior you're talking about here exactly, but I'll investigate the linked article and see. -- 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
