Steps to Reproduce:
- Inspect the section element for https://en.wikipedia.org/api/rest_v1/page/html/User_talk%3ABrion_VIBBER/891637716#Quick_bar
- Note that the id of the previous section ("Substituting surname") was 6.
Actual Results:
<section data-mw-section-id="154" id="mwdw"><h2 id="Quick_bar">Quick bar</h2>
Expected Results:
The section id should have been 7.
<section data-mw-section-id="7" id="mwdw"><h2 id="Quick_bar">Quick bar</h2>
I suspect this has to do with the unclosed {{subst: in section 6. The syntax highlighter (and possibly the legacy parser) seems to autoclose it after the newline but Parsoid does not.
Impact: this leads clients that use Parsoid output to build their section edit links based on that to try to edit the wrong section.