Page MenuHomePhabricator

Table in fosterable position doesn't round-trip
Open, NormalPublic

Description

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


Version: unspecified
Severity: normal

Details

Reference
bz58730

Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz58730.
Arlolra created this task.Dec 20 2013, 5:51 AM
Arlolra removed GWicke as the assignee of this task.Nov 25 2014, 7:57 PM
Arlolra set Security to None.
ssastry moved this task from Backlog to Robustness on the Parsoid board.Dec 22 2014, 12:41 AM
marcoil moved this task from Robustness to Backlog on the Parsoid board.Feb 13 2015, 12:49 PM
Arlolra updated the task description. (Show Details)Apr 21 2016, 9:14 PM
ssastry moved this task from Backlog to html2wt on the Parsoid board.Dec 18 2017, 10:09 PM