Page MenuHomePhabricator

VE won't recognise <bdi> tags on paste
Closed, ResolvedPublic1 Estimated Story Points

Description

  1. start or reply to a conversation
  2. copy the username from the Flow post signature
  3. paste: impossible to paste it (a blank is left)

If you press space before pasting or if you paste is after typing a text, it does not work.

It doesn't happen every time. Copy any other kind of link has a different behavior (T135621).

Details

Related Changes in Gerrit:

Event Timeline

User links aren't copying because they are wrapped in BDI tags which VE doesn't know about.

Esanders renamed this task from Copy/pasting a username (with link) on Flow has an unexpected behavior to VE won't recognise <bdi> tags on paste.May 18 2016, 4:10 PM

Change 289443 had a related patch set uploaded (by Esanders):
Add <BDI> support

https://gerrit.wikimedia.org/r/289443

With this fix the pasted wikitext will be [[User:Name|<bdi>Name</bdi>]] which is technically correct - however if we want to avoid this then Flow should replace the <bdi> tags with <span> tags and attach the bdi behaviour via a class.

With this fix the pasted wikitext will be [[User:Name|<bdi>Name</bdi>]] which is technically correct - however if we want to avoid this then Flow should replace the <bdi> tags with <span> tags and attach the bdi behaviour via a class.

That isn't always possible (you'd think that there would be a perfect CSS equivalent to <bdi>'s behavior, but there isn't), but we can see if it can be done in this case.

Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.
Jdforrester-WMF set the point value for this task to 1.

Checked in betalabs (just in case) - copying username from Flow - e.g. [[User:ET80|<bdi>ET80</bdi>]]