Layout method processes elements in different modes
with mode toc { ProcessChildren(element, toc); }
Even simpler, specify this with style rules
style body { display: block with mode toc, block with mode regular }
The default mode is named regular.