Last modified: 2013-12-20 05:59:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60730, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58730 - Table in fosterable position doesn't round-trip
Table in fosterable position doesn't round-trip
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-20 05:51 UTC by Arlo Breault
Modified: 2013-12-20 05:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Arlo Breault 2013-12-20 05:51:59 UTC
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.
Comment 1 Gabriel Wicke 2013-12-20 05:59:27 UTC
See https://gerrit.wikimedia.org/r/#/c/102084/ for the patch referenced above.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links