Page MenuHomePhabricator

Edits to/near headings are being serialised as <h3> rather than \n===
Closed, DuplicatePublic

Description

In this edit, VE added a title with <h3> tags (at the end of an existing line) instead of using proper wiki syntax.

Event Timeline

NicoV raised the priority of this task from to Needs Triage.
NicoV updated the task description. (Show Details)
NicoV added a project: VisualEditor.
NicoV subscribed.
NicoV renamed this task from V - <h3> title added instead of proper wiki syntax to VE - <h3> title added instead of proper wiki syntax.Sep 20 2015, 12:41 PM
NicoV set Security to None.
Jdforrester-WMF subscribed.

This looks like <li><p>Foo</p></li></ul><h3>Bar</h3> is being serialised as * Foo<h3>Bar</h3> instead of * Foo\n=== Bar ===; possibly single-line-context related?

Jdforrester-WMF renamed this task from VE - <h3> title added instead of proper wiki syntax to Heading following a link serialised as <h3> rather than \n===.Sep 24 2015, 6:00 PM
Jdforrester-WMF renamed this task from Heading following a link serialised as <h3> rather than \n=== to Edits to/near headings are being serialised as <h3> rather than \n===.
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.
Jdforrester-WMF added a subscriber: Elitre.

This looks like <li><p>Foo</p></li></ul><h3>Bar</h3> is being serialised as * Foo<h3>Bar</h3> instead of * Foo\n=== Bar ===; possibly single-line-context related?

Hmm .. I don't think so.

[subbu@earth lib] echo '<ul><li><p>Foo</p></li></ul><h3>Bar</h3>' | node parse --html2wt
* Foo

=== Bar ===

This looks like another case of reuse of ids from copy-paste. Merging with T116460.