From 7592bbf056c15e4c2d4e1690e989c11fd765aa57 Mon Sep 17 00:00:00 2001
From: Matt Garrish
A small set of elements are ignored when the parsing table of contents to avoid misinterpretation. These are the [[!html]] sectioning - content elements and sectioning - root elements. The reason they are ignored is because they can define their own - outlines (i.e., they can represent embedded content that is self-contained and not - necessarily related to the structure of content links).
+ content elements and what were previously defined as sectioning root + elements — the [[html]] [^blockquote^], [^body^], [^details^], [^dialog^], + [^fieldset^], [^figure^], and [^td^] elements. The reason they are ignored is because they + can define their own outlines (i.e., they can represent embedded content that is + self-contained and not necessarily related to the structure of content links).Any element that has its hidden
attribute set is also skipped, since hidden elements are
@@ -5012,9 +5011,9 @@
This step resets current_toc_node back to the parent object after all of its child branches have been processed.
-If there are no branches in the stack, the toc["entries"] is set to null - if it doesn't contain any items (to avoid processing any further lists at the - root level).
+If there are no branches in the stack, the toc["entries"] is set to + null if it doesn't contain any items (to avoid processing any further lists at + the root level).
@@ -5213,9 +5212,8 @@When entering a sectioning content element, a sectioning root element, or an element with a sectioning content element, a [=sectioning root=] element, or an + element with a hidden attribute: