Last modified: 2014-08-20 22:45:18 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 T71117, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69117 - VisualEditor: Placing some templates in bulleted lists causes complex transclusions
VisualEditor: Placing some templates in bulleted lists causes complex transc...
Status: RESOLVED WORKSFORME
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-04 18:34 UTC by WhatamIdoing
Modified: 2014-08-20 22:45 UTC (History)
4 users (show)

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


Attachments

Description WhatamIdoing 2014-08-04 18:34:21 UTC
Steps to Reproduce:
1. Open https://ru.wikipedia.org/w/index.php?oldid=63644335&veaction=edit and look at the second section.

The wikitext is:

=== Б ===

* [[Борисов, Бойко Методиев]] (род. 1959) — болгарский политик.
* {{NL|Борисов, Борис}}

{{NL}} is a template that transcludes the rest of this short list.

2. The first bullet point is plain wikitext.  Click on the first item and try to change some of the text (e.g., to change the birth date from 1959 to 1960).


Actual Results:  
The first bullet point can only be edited as the "content" part of a complex transclusion.  

Expected Results:  
That plain-text list items can be edited as plain old list items.

Reproducible: Didn't try
Comment 1 ssastry 2014-08-20 22:45:18 UTC
This is not a problem with lists per se. This is a result of how Parsoid represents templates in the DOM, and where some transclusions doesn't generate well-balanced DOM structures.

Parsoid marks complete DOM subtrees as template-generated/affected. So, in scenarios where output of a template spans multiple dom subtrees, all those affected subtrees are wrapped as one piece.

You can reproduce this behavior with a simple example like: "a {{echo|b\n\nc}} d". In this example, b and c belong to different paragraphs which also contain content from outside the transclusion. So, all of it is pulled into the template wrapping.

This is the same behavior where multiple transclusions are used to generate football tables, succession tables, etc.

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


Navigation
Links