Last modified: 2013-01-21 21:08:40 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 T39872, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37872 - Parsoid: round-trip templates
Parsoid: round-trip templates
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Gabriel Wicke
:
Depends on: 37910 37911 39520
Blocks: 39567
  Show dependency treegraph
 
Reported: 2012-06-23 17:14 UTC by Brion Vibber
Modified: 2013-01-21 21:08 UTC (History)
3 users (show)

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


Attachments

Description Brion Vibber 2012-06-23 17:14:14 UTC
I know this isn't supposed to work yet, that's why it's in the bug tracker to track. :D


Steps to repro:
* create new page using classic editor
* include {{Template:Warningbox|this template does not exist}}
* save
* open in visual editor
* edit some other part of the page so it is ready to save
* save

Expected results:
* broken template link should display in edit mode
* no change to page after save except for whatever you typed

Actual results:
* template link is invisible in edit mode
* template link is just gone after saving
Comment 1 Gabriel Wicke 2012-06-24 19:44:52 UTC
Templates are not yet round-tripped- we have not worked on them yet (similar to images / thumbnails, category links etc). We'll likely add a simple unexpanded template round-trip mode first (so the page won't be WYSIWYG for templates at first). 

Expanded template round-tripping is quite hard with unbalanced templates, but we have some ideas for the establishment of affected DOM scope: http://www.mediawiki.org/wiki/Parsoid/Todo#DOM_tree_builder. This will likely be the last feature we add since it is also the hardest.
Comment 2 Gabriel Wicke 2012-06-24 20:42:50 UTC
Tracking unexpanded / expanded round-tripping in separate bugs.
Comment 3 James Forrester 2012-08-06 19:25:57 UTC
Mass-moving bugs into the new 'Parsoid' product.
Comment 4 Gabriel Wicke 2013-01-21 21:08:40 UTC
This particular example and templates in general now round-trip pretty solidly. Parameter editing is not yet supported, but slated to be tackled in the next months.

Closing this bug as fixed.

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


Navigation
Links