Last modified: 2012-11-20 02:10:12 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 T39910, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37910 - Parsoid: round-trip unexpanded templates
Parsoid: round-trip unexpanded templates
Status: RESOLVED WONTFIX
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks: 37872
  Show dependency treegraph
 
Reported: 2012-06-24 20:39 UTC by Gabriel Wicke
Modified: 2012-11-20 02:10 UTC (History)
2 users (show)

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


Attachments

Description Gabriel Wicke 2012-06-24 20:39:49 UTC

    
Comment 1 James Forrester 2012-08-06 19:26:00 UTC
Mass-moving bugs into the new 'Parsoid' product.
Comment 2 Gabriel Wicke 2012-11-20 02:10:12 UTC
We decided against explicitly supporting the round-tripping of unexpanded templates as this would not help to identify DOM constructs built up from several templates. An example for this would be the famous table start / row / end templates. This is needed so that content between these templates can be protected from editing. Inserting 'foo' between a table-start and a table-row template call will probably not produce the expected result when the templates are later expanded.

We developed a working template encapsulation algorithm that identifies the DOM subtree affected by expanded template output, so this simpler workaround solution is not needed.

In case this is needed later, it would be trivial to implement by setting the proper RDFa and data-parsoid information on an unexpanded (probably meta-based) template element.

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


Navigation
Links