Page MenuHomePhabricator

Pasting <a> tags without href inserts link to null
Closed, ResolvedPublic1 Story Points

Description

Steps to reproduce:

  1. Find an old page that still uses <a name="foo"> instead of <span id="foo">, e.g. http://www.dorn.org/docs/selfhtml/index.htm
  2. Copy the content (in the above example the first line "SELFHTML: Version 8.0 vom 27.10.2001, Autor: Stefan Münz" is enough).
  3. Paste it in VE.

Expected: No link is created, as there is no link. In this case the content should be inserted as bold text.
Actual: An external link with target null is created, i.e. in this case the underlying wikitext is [null '''SELFHTML: Version 8.0 vom 27.10.2001, Autor: Stefan Münz'''].

Event Timeline

Schnark created this task.Apr 6 2018, 7:55 AM
Restricted Application added a project: VisualEditor. · View Herald TranscriptApr 6 2018, 7:55 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Esanders claimed this task.Apr 6 2018, 10:25 AM
Esanders edited projects, added VisualEditor (Current work); removed VisualEditor.
Esanders set the point value for this task to 1.

Change 424559 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Convert href-less links to spans

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

Change 424562 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Convert href-less links to spans

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

Change 424562 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Convert href-less links to spans

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

Change 425104 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (f7cbfa3f0)

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

Change 425104 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (f7cbfa3f0)

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

Change 424559 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Convert href-less links to spans

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

Deskana closed this task as Resolved.Apr 16 2018, 2:09 PM
Deskana triaged this task as Normal priority.