Page MenuHomePhabricator

Section editing doesn't work on sections which are not children of the root, e.g. div-wrapped sections
Open, Needs TriagePublic

Description

Our section editing assumes the Parsoid <section> tag will be a document child, but in edge cases, such as

<div>
===Heading===
Content
</div>

the whole <section> is wrapped in a <div>.

Currently and exception is thrown but the editor continues to load in full document mode.

Event Timeline

JTannerWMF moved this task from To Triage to Freezer on the VisualEditor board.
JTannerWMF subscribed.

We can revisit this when working on Section Editing on Desktop.

This wikitext is unlikely to occur on articles, and is more commonly used on project pages or user pages.