Page MenuHomePhabricator

VisualEditor: Templated tables seem to fail in copy paste
Closed, ResolvedPublic

Description

https://www.mediawiki.org/wiki/Manual:Code?veaction=edit

Copy one of the tables there. You get an error in fixupInsertion

[Error] TypeError: 'undefined' is not an object (evaluating 'source.clone')
copy (load.php, line 94)
getClonedElement (load.php, line 39)
fixupInsertion (load.php, line 120)
fixupInsertion (load.php, line 119)
newFromDocumentInsertion (load.php, line 71)
afterPaste (load.php, line 299)
(anonymous function) (load.php, line 294)
proxy (load.php, line 10)

This does not seem related to bug 58318. The table also doesn't render as it should in the original surface, with slugs above and below it inside the table. Possibly caused by the usage of templates for row construction.


Version: unspecified
Severity: normal

Details

Reference
bz58387