Talk:Heading HTML changes

Parsoid considerations
A few notes:


 * 1) The Parsoid team should probably be included on the critical path here, since the adoption of Parsoid read views, for at least some uses, is in the same critical time frame as the transition to the new heading HTML is given.
 * 2) Parsoid probably wants to transition the body content to a new div wrapper as well, so the overall structure is something like:   -- so that   is always the heading and   is always the "content to be hidden for dynamic section display"; we'll probably want to add the extra wrapper around body content at the same time as the wrapper around heading content
 * 3) VisualEditor will of course need to be updated as well.  Right now VE strips all the section wrapping that it receives from Parsoid.  That approach could be extended, but eventually this means that the CSS for styling headings will start to look radically different "in VisualEditor" vs "in read views".  It may be desirable to try to make the VE CE representation include (some of?) these wrappers as well, in order to ensure the CSS doesn't drift.  That has complications during editing, however, like what if the heading is deleted merging two sections, or how do you keep the editor from adding text in the "wrong" place between the and the, etc.

cscott (talk) 16:53, 19 January 2023 (UTC)