VisualEditor: URLs followed immediately by {{templates}} are improperly displayed and cannot be edited
Open, NormalPublic


Something like{{deadlink}} cannot be properly 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 the text "[]", linked to[].

bzimport set Reference to bz65362.

Caused by mw:ExpandedAttrs from Parsoid.



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

Supposedly the reason for this is that{{echo|/index.php}} would produce a link to , 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?

Neil_P._Quinn_WMF changed the title from "VisualEditor: URLs followed immediately by {{templates}} are un-editable alienated content, because they're mw:ExpandedAttrs" to "VisualEditor: URLs followed immediately by {{templates}} are improperly displayed and cannot be edited".Jul 24 2015, 8:55 PM
Neil_P._Quinn_WMF edited the task description. (Show Details)
Neil_P._Quinn_WMF set Security to None.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 24 2015, 8:55 PM

URLs followed by templates are still broken. However, they now seem to be broken differently: they display as regular links with broken syntax, rather than as alienated nodes.

Add Comment