Page MenuHomePhabricator

Table of contents does not activate headings that are inside of divs
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
When you pass "Why have you replaced the area used for content by an empty space?" or any of the other headers below it, they do not not activate in the TOC. These headers are wrapped in a div (<div style="border:1px solid #aaa; padding:1em;">) which is likely causing this issue.

What should have happened instead?:

The headings should have activated in the TOC as you are viewing them.

Other information (browser name/version, screenshots, etc.): Firefox 107.0a1 (2022-09-23)

I wonder if this issue also occurs with headers that are placed in or are surrounded by templates. I haven't been able to test that though.