In response to T416431: Section wrapping not working on page on pages with unbalanced templates and T414734: MobileFrontend + Parsoid has different collapsible-section HTML on en.wp main page, we will update our section wrapping spec in https://www.mediawiki.org/wiki/Parsing/Notes/Section_Wrapping and attempt to suppress <section> wrapping around "HTML tag" headings, so that <section> only wraps == ... == wikitext constructs.
See also T417531: Section wrapping should use precise information about HTML-syntax headings.