Page MenuHomePhabricator

Can't paste HTML containing <section> into an empty paragraph in VisualEditor
Closed, ResolvedPublic

Description

When trying to copy the citation from https://collection.cooperhewitt.org/objects/18651091/ (at the bottom) into VisualEditor, sometimes pasting it does nothing.

To reproduce:

  • Use a Chromium-like browser
  • Triple-click the citation to select it
  • Copy
  • Paste into an empty paragraph

Expected: the wikitext is parsed and pasted as a citation. Actual: nothing happens.

The minimal HTML to reproduce this problem is like this:

<main>&lt;ref&gt;test&lt;/ref&gt;</main><footer>blahblah</footer>

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 570938 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Unwrap unsupported section tags when pasting

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

Change 570938 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Unwrap unsupported section tags when pasting

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

Change 570978 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (4ff5f2555)

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

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

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

Esanders renamed this task from Can't paste into an empty paragraph in VisualEditor from a specific page (in Chrome) to Can't paste HTML containing <section> into an empty paragraph in VisualEditor.Oct 20 2020, 6:44 PM
Esanders reopened this task as Open.