https://bugzilla.wikimedia.org/show_bug.cgi?id=58730
Web browser: ---
Bug ID: 58730
Summary: Table in fosterable position doesn't round-trip
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Tested with selser:
curl
'http://localhost:8000/mediawikiwiki/User%3AGWicke%2FTest%2FTableFoster?oldid=846340'
| sed s/Foo/Fooo/g > /tmp/test.html
curl --data-urlencode "html@/tmp/test.html" -d 'oldid=846340'
http://localhost:8000/mediawikiwiki/User%3AGWicke%2FTest%2FTableFoster
Fooo
{||}
{||}
Bar
A possible scheme discussed on IRC is this:
1) Give the first empty (broken-up) table a zero-width dsr, similar to fostered
content. The broken-up table will always be empty as other content would first
be fostered out of the table itself.
2) Give the nested (surviving) table the full dsr width of both tables, with
start/end tag widths inflated to include the outer table
The net effect should be:
- clean round-tripping with selser when the table content is not edited (yay!)
- stripping of the broken empty table when the table is edited
Not sure how complicated this is to implement.
--
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