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

       Web browser: ---
            Bug ID: 47349
           Summary: Caption tags are stripped from tables when VE converts
                    data model to DOM
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Data Model
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

1. Go to: http://ve-change-marking.instance-proxy.wmflabs.org/wiki/Test2
2. Open page in VisualEditor
3. Open browser console.
4. Run ve.dm.converter.getDomFromData( ve.instances[0].documentModel.store,
ve.instances[0].documentModel.data.data ).body.outerHTML
5. You get the following output:
--------------
<body><table data-parsoid="{&quot;tsr&quot;:[0,3],&quot;dsr&quot;:[0,49,3,2]}">
This is a caption
<tbody data-parsoid="{&quot;dsr&quot;:[24,47,0,0]}"><tr
data-parsoid="{&quot;tsr&quot;:[24,26],&quot;startTagSrc&quot;:&quot;|-&quot;,&quot;autoInsertedEnd&quot;:true,&quot;dsr&quot;:[24,46,2,0]}">
<td
data-parsoid="{&quot;tsr&quot;:[27,28],&quot;autoInsertedEnd&quot;:true,&quot;dsr&quot;:[27,46,1,0]}">Table
cell content</td></tr>
</tbody></table></body>
----------------

Notice the missing <caption> .. </caption> tags.
So, when Parsoid gets this, the caption is fostered out and shows up as a diff.

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