VisualEditor: URLs followed immediately by {{templates}} are un-editable alienated content, because they're mw:ExpandedAttrs
OpenPublic

Description

Reproducible: Always

This:

http://example.com{{deadlink}}

cannot be edited in VisualEditor. It should be processed as two pieces: one external link that is followed immediately by one template. Instead, it is presented as a single block of unknown/un-editable/alienated content.


Version: unspecified
Severity: normal

bzimport added a project: VisualEditor-DataModel.Via ConduitNov 22 2014, 3:13 AM
bzimport set Reference to bz65362.
Whatamidoing-WMF created this task.Via LegacyMay 15 2014, 7:01 PM
Jdforrester-WMF added a comment.Via ConduitMay 15 2014, 7:12 PM

Caused by mw:ExpandedAttrs from Parsoid.

Input:

http://example.com{{deadlink}}

Output:

<a data-mw="…" typeof="mw:ExpandedAttrs" about="#mwt2" rel="mw:ExtLink" href="http://example.com" data-parsoid="…">http://example.com</a>

Catrope added a comment.Via ConduitMay 16 2014, 9:45 PM

Supposedly the reason for this is that http://example.com{{echo|/index.php}} would produce a link to http://example.com/index.php , rather than a link followed by text. But it depends on what the template outputs; if the output starts with a space or a newline this won't happen. Maybe Parsoid is being a bit too trigger-happy with mw:ExpandedAttrs in the second case?

Jdforrester-WMF moved this task to Backlog on the VisualEditor workboard.Via WebNov 24 2014, 4:24 PM

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.