texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/ParserNonXS.pm (parse_texi_text, pa


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/ParserNonXS.pm (parse_texi_text, parse_texi_file) (_close_commands, _setup_document_root_and_before_node_section), tp/Texinfo/XS/parsetexi/Parsetexi.pm (_maybe_ignore_before_setfilename, parse_texi_file), tp/Texinfo/XS/parsetexi/api.c (parse_string), tp/Texinfo/XS/parsetexi/close.c (close_commands), tp/Texinfo/XS/parsetexi/element_types.txt, tp/Texinfo/XS/parsetexi/parser.c (setup_document_root_and_before_node_section, parse_texi_file, begin_paragraph_p), tp/Texinfo/XS/misc.c [...]
Date: Fri, 31 Dec 2021 06:55:29 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 40b1c8655d * tp/Texinfo/ParserNonXS.pm (parse_texi_text, 
parse_texi_file) (_close_commands, 
_setup_document_root_and_before_node_section), 
tp/Texinfo/XS/parsetexi/Parsetexi.pm (_maybe_ignore_before_setfilename, 
parse_texi_file), tp/Texinfo/XS/parsetexi/api.c (parse_string), 
tp/Texinfo/XS/parsetexi/close.c (close_commands), 
tp/Texinfo/XS/parsetexi/element_types.txt, tp/Texinfo/XS/parsetexi/parser.c 
(setup_document_root_and_before_node_section, parse_texi_file, 
begin_paragraph_p),  [...]
40b1c8655d is described below

commit 40b1c8655d340bfed9a9e0e5757b39343b045736
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 31 12:55:05 2021 +0100

    * tp/Texinfo/ParserNonXS.pm (parse_texi_text, parse_texi_file)
    (_close_commands, _setup_document_root_and_before_node_section),
    tp/Texinfo/XS/parsetexi/Parsetexi.pm
    (_maybe_ignore_before_setfilename, parse_texi_file),
    tp/Texinfo/XS/parsetexi/api.c (parse_string),
    tp/Texinfo/XS/parsetexi/close.c (close_commands),
    tp/Texinfo/XS/parsetexi/element_types.txt,
    tp/Texinfo/XS/parsetexi/parser.c
    (setup_document_root_and_before_node_section, parse_texi_file,
    begin_paragraph_p),
    tp/Texinfo/XS/misc.c (xs_abort_empty_line),
    tp/Texinfo/Convert/Plaintext.pm (_convert):
    rename text_root type as before_node_section.
---
 ChangeLog                                          |  16 ++++++
 tp/Texinfo/Convert/Plaintext.pm                    |   2 +-
 tp/Texinfo/ParserNonXS.pm                          |  55 +++++++++++----------
 tp/Texinfo/XS/misc.c                               |   2 +-
 tp/Texinfo/XS/parsetexi/Parsetexi.pm               |  26 +++++-----
 tp/Texinfo/XS/parsetexi/api.c                      |   8 +--
 tp/Texinfo/XS/parsetexi/close.c                    |   2 +-
 tp/Texinfo/XS/parsetexi/element_types.c            |   2 +-
 tp/Texinfo/XS/parsetexi/element_types.h            |   2 +-
 tp/Texinfo/XS/parsetexi/element_types.txt          |   2 +-
 tp/Texinfo/XS/parsetexi/parser.c                   |  18 +++----
 tp/Texinfo/XS/parsetexi/parser.h                   |   2 +-
 tp/t/accents.t                                     |  24 ++++-----
 tp/t/results/alias/alias_table_command.pl          |   2 +-
 tp/t/results/alias/bad_line.pl                     |   2 +-
 tp/t/results/alias/block_command_alias.pl          |   2 +-
 tp/t/results/alias/simple.pl                       |   2 +-
 tp/t/results/columnfractions/empty.pl              |   2 +-
 tp/t/results/columnfractions/empty_comment.pl      |   2 +-
 tp/t/results/columnfractions/good.pl               |   2 +-
 tp/t/results/columnfractions/good_comment.pl       |   2 +-
 tp/t/results/columnfractions/good_space_comment.pl |   2 +-
 tp/t/results/columnfractions/invalid.pl            |   2 +-
 tp/t/results/columnfractions/not_fraction.pl       |   2 +-
 tp/t/results/columnfractions/out_of_multitable.pl  |   2 +-
 .../something_before_columnfractions.pl            |   2 +-
 tp/t/results/columnfractions/wrong_command.pl      |   2 +-
 .../additional_space_in_end_conditional.pl         |   2 +-
 ...additional_space_in_end_conditional_expanded.pl |   2 +-
 tp/t/results/conditionals/bad_ifclear_argument.pl  |   2 +-
 tp/t/results/conditionals/bad_ifset_argument.pl    |   2 +-
 tp/t/results/conditionals/command_conditionals.pl  |   2 +-
 .../command_conditionals_user_defined.pl           |   2 +-
 tp/t/results/conditionals/commands_in_ifset.pl     |   2 +-
 tp/t/results/conditionals/comment_on_ifset_line.pl |   2 +-
 .../results/conditionals/conditional_not_closed.pl |   2 +-
 .../conditionals/consecutive_conditionals.pl       |   2 +-
 tp/t/results/conditionals/empty_ifclear.pl         |   2 +-
 tp/t/results/conditionals/empty_ifset.pl           |   2 +-
 .../conditionals/empty_ifset_in_ifset_no_set.pl    |   2 +-
 .../conditionals/empty_ifset_in_ifset_set.pl       |   2 +-
 tp/t/results/conditionals/empty_set_in_ifclear.pl  |   2 +-
 tp/t/results/conditionals/empty_set_in_ifset.pl    |   2 +-
 .../end_conditional_not_at_line_begining.pl        |   2 +-
 tp/t/results/conditionals/end_ifset_in_format.pl   |   2 +-
 .../conditionals/false_format_not_closed.pl        |   2 +-
 tp/t/results/conditionals/ifclear_in_ifset.pl      |   2 +-
 tp/t/results/conditionals/ifclear_in_ifset_set.pl  |   2 +-
 .../conditionals/ifnot_format_conditional.pl       |   2 +-
 tp/t/results/conditionals/ifnotinfo_exception.pl   |   2 +-
 tp/t/results/conditionals/ifset_in_command.pl      |   2 +-
 tp/t/results/conditionals/ifset_nonalpha.pl        |   2 +-
 tp/t/results/conditionals/ignore_not_closed.pl     |   2 +-
 tp/t/results/conditionals/ignored_in_ifset.pl      |   2 +-
 .../conditionals/info_ifinfo_ifnotplaintext.pl     |   2 +-
 tp/t/results/conditionals/info_ifplaintext.pl      |   2 +-
 .../conditionals/inlinefmtifelse_nesting.pl        |   2 +-
 .../conditionals/inlineiffmtifelse_not_closed.pl   |   2 +-
 .../inlineiffmtifelse_not_closed_three_arg.pl      |   2 +-
 .../inlineiffmtifelse_not_closed_two_arg.pl        |   2 +-
 .../conditionals/inlineifset_false_not_closed.pl   |   2 +-
 tp/t/results/conditionals/macro_in_ifset.pl        |   2 +-
 tp/t/results/conditionals/macro_in_ifset_set.pl    |   2 +-
 tp/t/results/conditionals/many_conditionals.pl     |   2 +-
 tp/t/results/conditionals/nested_ifset_ifclear.pl  |   2 +-
 tp/t/results/conditionals/nested_ignore.pl         |   2 +-
 tp/t/results/conditionals/not_set.pl               |   2 +-
 tp/t/results/conditionals/plaintext_ifinfo.pl      |   2 +-
 .../plaintext_ifinfo_ifnotplaintext.pl             |   2 +-
 .../conditionals/superfluous_argument_to_end.pl    |   2 +-
 .../conditionals/text_on_conditional_line.pl       |   2 +-
 .../text_on_conditional_line_expanded.pl           |   2 +-
 tp/t/results/conditionals/txiinternalvalue.pl      |   2 +-
 .../conditionals/user_defined_txiinternalvalue.pl  |   2 +-
 tp/t/results/converters_tests/accent_with_text.pl  |   2 +-
 .../results/converters_tests/at_commands_in_raw.pl |   2 +-
 tp/t/results/converters_tests/complex_nestings.pl  |   2 +-
 .../email_table_command_as_argument.pl             |   2 +-
 tp/t/results/converters_tests/empty_accent.pl      |   2 +-
 .../converters_tests/enumerate_above_ten.pl        |   2 +-
 .../results/converters_tests/footnote_no_number.pl |   2 +-
 .../footnote_no_number_separate.pl                 |   2 +-
 tp/t/results/converters_tests/image_extension.pl   |   2 +-
 tp/t/results/converters_tests/image_formatting.pl  |   2 +-
 tp/t/results/converters_tests/image_with_spaces.pl | Bin 7902 -> 7912 bytes
 .../index_entry_in_preformatted.pl                 |   2 +-
 tp/t/results/converters_tests/inline.pl            |   2 +-
 tp/t/results/converters_tests/inline_expand_tex.pl |   2 +-
 tp/t/results/converters_tests/inlinefmtifelse.pl   |   2 +-
 .../results/converters_tests/inlineifsetifclear.pl |   2 +-
 tp/t/results/converters_tests/line_breaks.pl       |   2 +-
 .../converters_tests/normal_font_in_monospace.pl   |   2 +-
 .../printindex_merged_indices_code_style.pl        |   2 +-
 .../results/converters_tests/raw_block_commands.pl |   2 +-
 .../raw_block_commands_expand_tex.pl               |   2 +-
 .../converters_tests/ref_error_formatting.pl       |   2 +-
 tp/t/results/converters_tests/ref_in_sectioning.pl |   2 +-
 tp/t/results/converters_tests/refs_formatting.pl   |   2 +-
 .../converters_tests/simplest_no_node_section.pl   |   2 +-
 .../some_at_commands_in_ref_nodes.pl               |   2 +-
 tp/t/results/converters_tests/sp_in_example.pl     |   2 +-
 .../converters_tests/spaces_in_empty_node_names.pl |   2 +-
 .../converters_tests/spaces_in_node_names.pl       |   2 +-
 .../table_in_display_in_example.pl                 |   2 +-
 .../table_in_example_in_display.pl                 |   2 +-
 .../converters_tests/test_deftypefnnewline.pl      |   2 +-
 tp/t/results/converters_tests/test_sp.pl           |   2 +-
 .../converters_tests/things_before_setfilename.pl  |   2 +-
 .../things_before_setfilename_no_element.pl        |   2 +-
 tp/t/results/converters_tests/top_in_ref.pl        |   2 +-
 .../converters_tests/top_in_ref_keep_top.pl        |   2 +-
 tp/t/results/converters_tests/unknown_value.pl     |   2 +-
 tp/t/results/coverage/accent_and_dash.pl           |   2 +-
 tp/t/results/coverage/accent_no_closed.pl          |   2 +-
 tp/t/results/coverage/accent_no_closed_comment.pl  |   2 +-
 tp/t/results/coverage/accent_no_closed_newline.pl  |   2 +-
 .../results/coverage/accent_no_closed_paragraph.pl |   2 +-
 tp/t/results/coverage/accents_errors.pl            |   2 +-
 .../coverage/arg_in_brace_no_arg_command.pl        |   2 +-
 tp/t/results/coverage/at_after_accent_command.pl   |   2 +-
 tp/t/results/coverage/block_commands.pl            |   2 +-
 tp/t/results/coverage/cartouche.pl                 |   2 +-
 tp/t/results/coverage/cartouche_in_example.pl      |   2 +-
 tp/t/results/coverage/cartouche_in_quotation.pl    |   2 +-
 tp/t/results/coverage/center.pl                    |   2 +-
 tp/t/results/coverage/commands.pl                  |   2 +-
 tp/t/results/coverage/commands_in_math.pl          |   2 +-
 tp/t/results/coverage/comment_on_cartouche_line.pl |   2 +-
 tp/t/results/coverage/comment_on_group_line.pl     |   2 +-
 tp/t/results/coverage/def.pl                       |   2 +-
 tp/t/results/coverage/delcomment.pl                |   2 +-
 tp/t/results/coverage/displaymath.pl               |   2 +-
 tp/t/results/coverage/empty_w.pl                   |   2 +-
 tp/t/results/coverage/exdent_and_commands.pl       |   2 +-
 tp/t/results/coverage/exdent_and_formats.pl        |   2 +-
 tp/t/results/coverage/flushleft_flushright.pl      |   2 +-
 .../coverage/flushleft_flushright_in_quotation.pl  |   2 +-
 tp/t/results/coverage/flushright_example_nested.pl |   2 +-
 tp/t/results/coverage/flushright_not_closed.pl     |   2 +-
 .../coverage/formats_only_title_comments.pl        |   2 +-
 tp/t/results/coverage/formats_only_titles.pl       |   2 +-
 tp/t/results/coverage/formats_titles.pl            |   2 +-
 .../coverage/group_beginning_and_end_on_line.pl    |   2 +-
 tp/t/results/coverage/group_not_closed.pl          |   2 +-
 tp/t/results/coverage/hyphenation.pl               |   2 +-
 tp/t/results/coverage/indentedblock.pl             |   2 +-
 tp/t/results/coverage/indicateurl_end_lines.pl     |   2 +-
 tp/t/results/coverage/insertcopying.pl             |   2 +-
 tp/t/results/coverage/invalid_U.pl                 |   2 +-
 tp/t/results/coverage/item_container.pl            |   2 +-
 .../results/coverage/lettered_accent_and_spaces.pl |   2 +-
 tp/t/results/coverage/math.pl                      |   2 +-
 tp/t/results/coverage/multitable.pl                |   2 +-
 tp/t/results/coverage/nested_block_commands.pl     |   2 +-
 tp/t/results/coverage/not_i_j_in_dotless.pl        |   2 +-
 tp/t/results/coverage/preformatted.pl              |   2 +-
 .../coverage/punctuation_in_line_commands.pl       |   2 +-
 tp/t/results/coverage/quotation_author.pl          |   2 +-
 tp/t/results/coverage/raggedright.pl               |   2 +-
 tp/t/results/coverage/setfilename_in_paragraph.pl  |   2 +-
 .../coverage/spaces_after_braced_command.pl        |   2 +-
 .../spaces_no_brace_after_braced_command.pl        |   2 +-
 tp/t/results/coverage/symbol_after_block.pl        |   2 +-
 tp/t/results/coverage/symbol_after_command.pl      |   2 +-
 tp/t/results/coverage/table.pl                     |   2 +-
 tp/t/results/coverage/table_command_comment.pl     |   2 +-
 tp/t/results/coverage/test_errormsg.pl             |   2 +-
 tp/t/results/coverage/test_tie.pl                  |   2 +-
 tp/t/results/coverage/test_today.pl                |   2 +-
 tp/t/results/coverage/titlefont_in_center.pl       |   2 +-
 tp/t/results/coverage/unknown_accents.pl           |   2 +-
 tp/t/results/coverage/unknown_commands.pl          |   2 +-
 tp/t/results/coverage/verbatiminclude.pl           |   2 +-
 tp/t/results/coverage_braces/abbr_acronym.pl       |   2 +-
 tp/t/results/coverage_braces/anchor_not_closed.pl  |   2 +-
 .../coverage_braces/brace_opened_no_command.pl     |   2 +-
 tp/t/results/coverage_braces/caption_not_closed.pl |   2 +-
 tp/t/results/coverage_braces/code_not_closed.pl    |   2 +-
 .../results/coverage_braces/email_possibilities.pl |   2 +-
 tp/t/results/coverage_braces/empty_commands.pl     |   2 +-
 tp/t/results/coverage_braces/empty_images.pl       |   2 +-
 .../coverage_braces/empty_line_in_anchor.pl        |   2 +-
 tp/t/results/coverage_braces/empty_line_in_math.pl |   2 +-
 tp/t/results/coverage_braces/empty_ref.pl          |   2 +-
 .../coverage_braces/empty_second_email_argument.pl |   2 +-
 tp/t/results/coverage_braces/end_line_in_anchor.pl |   2 +-
 tp/t/results/coverage_braces/footnote.pl           |   2 +-
 .../footnote_ending_on_empty_line.pl               |   2 +-
 .../footnote_in_command_not_closed.pl              |   2 +-
 tp/t/results/coverage_braces/footnote_no_node.pl   |   2 +-
 .../results/coverage_braces/footnote_not_closed.pl |   2 +-
 .../coverage_braces/form_feed_in_brace_commands.pl |   2 +-
 .../format_on_first_footnote_line.pl               |   2 +-
 .../results/coverage_braces/heading_in_footnote.pl |   2 +-
 .../coverage_braces/inforef_too_much_args.pl       |   2 +-
 tp/t/results/coverage_braces/kbd.pl                |   2 +-
 .../math_bracketed_inside_not_closed.pl            |   2 +-
 .../coverage_braces/math_bracketed_not_closed.pl   |   2 +-
 .../math_bracketed_not_closed_next_line.pl         |   2 +-
 tp/t/results/coverage_braces/math_not_closed.pl    |   2 +-
 tp/t/results/coverage_braces/nested.pl             |   2 +-
 tp/t/results/coverage_braces/nested_args.pl        |   2 +-
 tp/t/results/coverage_braces/nested_in_sc.pl       |   2 +-
 tp/t/results/coverage_braces/no_brace.pl           |   2 +-
 .../coverage_braces/no_brace_space_end_line.pl     |   2 +-
 tp/t/results/coverage_braces/recursive_acronym.pl  |   2 +-
 tp/t/results/coverage_braces/ref_empty_node.pl     |   2 +-
 .../coverage_braces/ref_in_style_command.pl        |   2 +-
 tp/t/results/coverage_braces/simple.pl             |   2 +-
 .../coverage_braces/space_command_in_image.pl      |   2 +-
 tp/t/results/coverage_braces/space_in_anchor.pl    |   2 +-
 tp/t/results/coverage_braces/space_in_footnote.pl  |   2 +-
 tp/t/results/coverage_braces/space_in_image.pl     |   2 +-
 tp/t/results/coverage_braces/test_image.pl         |   2 +-
 tp/t/results/coverage_braces/test_w.pl             |   2 +-
 tp/t/results/coverage_braces/too_much_args.pl      |   2 +-
 .../coverage_braces/two_footnotes_in_nodes.pl      |   2 +-
 .../two_footnotes_in_nodes_separate.pl             |   2 +-
 .../coverage_braces/unknown_command_with_braces.pl |   2 +-
 tp/t/results/coverage_braces/unmatched_brace.pl    |   2 +-
 tp/t/results/coverage_braces/uref_in_ref.pl        |   2 +-
 tp/t/results/coverage_braces/uref_url.pl           |   2 +-
 .../uref_with_commands_characters.pl               |   2 +-
 tp/t/results/coverage_braces/verb_in_xref.pl       |   2 +-
 tp/t/results/coverage_braces/w_end_sentence.pl     |   2 +-
 tp/t/results/def/all_commands.pl                   |   2 +-
 tp/t/results/def/all_commands_delimiters.pl        |   2 +-
 .../def/all_commands_delimiters_printindex.pl      |   2 +-
 tp/t/results/def/all_commands_printindex.pl        |   2 +-
 tp/t/results/def/all_empty_def.pl                  |   2 +-
 tp/t/results/def/ampchar.pl                        |   2 +-
 tp/t/results/def/code_in_def.pl                    |   2 +-
 tp/t/results/def/def_defx_mismatch.pl              |   2 +-
 tp/t/results/def/defx_after_comment.pl             |   2 +-
 tp/t/results/def/defx_after_comment_in_example.pl  |   2 +-
 tp/t/results/def/defx_after_empty_line.pl          |   2 +-
 .../def/defx_after_empty_line_in_example.pl        |   2 +-
 tp/t/results/def/defx_after_paragraph_end.pl       |   2 +-
 .../def/defx_after_preformatted_with_text.pl       |   2 +-
 tp/t/results/def/defx_after_text.pl                |   2 +-
 tp/t/results/def/defx_in_example.pl                |   2 +-
 tp/t/results/def/double_command.pl                 |   2 +-
 tp/t/results/def/empty_def_arguments.pl            |   2 +-
 tp/t/results/def/empty_def_command.pl              |   2 +-
 tp/t/results/def/empty_deftype.pl                  |   2 +-
 tp/t/results/def/empty_deftypeop_name.pl           |   2 +-
 tp/t/results/def/end_of_line_end_file.pl           |   2 +-
 tp/t/results/def/end_of_line_protect_at_end.pl     |   2 +-
 tp/t/results/def/end_of_lines_protected.pl         |   2 +-
 .../def/end_of_lines_protected_in_footnote.pl      |   2 +-
 tp/t/results/def/inter_item_commands_in_def.pl     |   2 +-
 .../def/inter_item_commands_in_def_in_example.pl   |   2 +-
 tp/t/results/def/leading_space_in_def_arg.pl       |   2 +-
 tp/t/results/def/no_category_or_no_name.pl         |   2 +-
 tp/t/results/def/not_closed.pl                     |   2 +-
 tp/t/results/def/protected_brace.pl                |   2 +-
 tp/t/results/def/ref_in_def.pl                     |   2 +-
 tp/t/results/def/space_in_def_for_index.pl         |   2 +-
 tp/t/results/def/wrong_braces_simple.pl            |   2 +-
 tp/t/results/def/wrong_braces_with_end_of_lines.pl |   2 +-
 ...pty_quotation_with_arg_followed_by_quotation.pl |   2 +-
 .../docbook_tests/multiple_documentlanguage.pl     |   2 +-
 .../docbook_tests/special_docbook_unnumbered.pl    |   2 +-
 tp/t/results/float/anchor_in_caption.pl            |   2 +-
 tp/t/results/float/cindex_in_caption.pl            |   2 +-
 .../results/float/comment_space_comand_in_float.pl |   2 +-
 tp/t/results/float/complex_float.pl                |   2 +-
 tp/t/results/float/empty_listoffloats.pl           |   2 +-
 .../float/empty_listoffloats_with_floats.pl        |   2 +-
 tp/t/results/float/float_copying.pl                |   2 +-
 tp/t/results/float/float_with_at_commands.pl       |   2 +-
 tp/t/results/float/footnote_in_caption.pl          |   2 +-
 .../results/float/footnote_in_caption_and_error.pl |   2 +-
 tp/t/results/float/listoffloats_with_commands.pl   |   2 +-
 .../float/numbering_captions_listoffloats.pl       |   2 +-
 tp/t/results/float/ref_to_float.pl                 |   2 +-
 tp/t/results/float/simple.pl                       |   2 +-
 tp/t/results/formats_encodings/accent.pl           |   2 +-
 .../formats_encodings/accent_enable_encoding.pl    |   2 +-
 tp/t/results/formats_encodings/accentenc.pl        |   2 +-
 .../formats_encodings/accentenc_enable_encoding.pl |   2 +-
 .../formats_encodings/at_commands_in_refs.pl       |   2 +-
 .../at_commands_in_refs_latin1.pl                  |   2 +-
 .../formats_encodings/at_commands_in_refs_utf8.pl  |   2 +-
 .../char_latin1_latin1_in_refs.pl                  |   2 +-
 .../formats_encodings/char_latin1_utf8_in_refs.pl  |   2 +-
 .../char_latin2_latin2_in_refs.pl                  |   2 +-
 .../documentencoding_utf8_and_insertions.pl        |   2 +-
 .../formats_encodings/japanese_shift_jis.pl        |   2 +-
 .../no_documentencoding_and_insertions.pl          |   2 +-
 tp/t/results/formats_encodings/sample_utf8.pl      |   2 +-
 tp/t/results/formats_encodings/weird_accents.pl    |   2 +-
 .../weird_accents_disable_encoding.pl              |   2 +-
 tp/t/results/formatting/cond.pl                    |   2 +-
 .../results/formatting/cond_ifhtml_ifinfo_iftex.pl |   2 +-
 tp/t/results/formatting/cond_info.pl               |   2 +-
 .../formatting/cond_info_ifhtml_ifinfo_iftex.pl    |   2 +-
 .../cond_info_no-ifhtml_no-ifinfo_no-iftex.pl      |   2 +-
 .../cond_no-ifhtml_no-ifinfo_no-iftex.pl           |   2 +-
 tp/t/results/formatting/cond_xml.pl                |   2 +-
 tp/t/results/formatting/defcondx_Dbar.pl           |   2 +-
 tp/t/results/formatting/defcondx_Ubar.pl           |   2 +-
 .../formatting/direntry_dircategory_info_split.pl  |   2 +-
 .../formatting/documentlanguage_set_option.pl      |   2 +-
 .../formatting/documentlanguage_set_option_info.pl |   2 +-
 .../formatting/documentlanguage_set_unknown.pl     |   2 +-
 tp/t/results/formatting/empty.pl                   |   2 +-
 tp/t/results/formatting/float_copying.pl           |   2 +-
 tp/t/results/formatting/one_line.pl                |   2 +-
 tp/t/results/formatting/one_line_no_content.pl     |   2 +-
 .../formatting/simplest_test_date_in_header.pl     |   2 +-
 tp/t/results/formatting/simplest_test_prefix.pl    |   2 +-
 .../formatting/simplest_test_prefix_info.pl        |   2 +-
 .../formatting/split_for_format_not_split.pl       |   2 +-
 tp/t/results/formatting/split_nocopying.pl         |   2 +-
 tp/t/results/formatting/split_nocopying_split.pl   |   2 +-
 tp/t/results/formatting/texi_bib_example.pl        |   2 +-
 tp/t/results/formatting/texi_cond.pl               |   2 +-
 tp/t/results/formatting/texi_glossary.pl           |   2 +-
 tp/t/results/heading/heading_in_copying.pl         |   2 +-
 tp/t/results/heading/heading_in_example.pl         |   2 +-
 tp/t/results/heading/heading_in_quotation.pl       |   2 +-
 .../character_number_leading_toc_stoc.pl           |   2 +-
 tp/t/results/html_tests/check_htmlxref.pl          |   2 +-
 tp/t/results/html_tests/commands_in_abbr.pl        |   2 +-
 tp/t/results/html_tests/commands_in_alt.pl         |   2 +-
 tp/t/results/html_tests/commands_in_email.pl       |   2 +-
 .../deftypefnnewline_for_copying_after.pl          |   2 +-
 .../deftypefnnewline_for_copying_before.pl         |   2 +-
 tp/t/results/html_tests/documentdescription.pl     |   2 +-
 .../empty_lines_at_beginning_no_setfilename.pl     |   2 +-
 ...lines_at_beginning_no_setfilename_no_element.pl |   2 +-
 .../html_tests/example_at_commands_arguments.pl    |   2 +-
 tp/t/results/html_tests/example_class.pl           |   2 +-
 tp/t/results/html_tests/example_empty_arguments.pl |   2 +-
 tp/t/results/html_tests/example_multi_class.pl     |   2 +-
 .../html_tests/footnotestyle_separate_late.pl      |   2 +-
 tp/t/results/html_tests/html_in_copying.pl         |   2 +-
 tp/t/results/html_tests/image_link_prefix.pl       |   2 +-
 .../results/html_tests/index_and_node_same_name.pl |   2 +-
 tp/t/results/html_tests/index_below.pl             |   2 +-
 tp/t/results/html_tests/no_use_iso.pl              |   2 +-
 tp/t/results/html_tests/raw_html.pl                |   2 +-
 tp/t/results/html_tests/redirection_same_labels.pl |   2 +-
 tp/t/results/html_tests/ref_in_preformatted.pl     |   2 +-
 tp/t/results/html_tests/shortcontents_no_top.pl    |   2 +-
 tp/t/results/html_tests/simple_menu.pl             |   2 +-
 tp/t/results/html_tests/test_accents_sc_default.pl |   2 +-
 .../html_tests/test_accents_sc_default_latin1.pl   |   2 +-
 .../html_tests/test_accents_sc_default_usascii.pl  |   2 +-
 .../html_tests/test_accents_sc_enable_encoding.pl  |   2 +-
 .../test_accents_sc_enable_encoding_latin1.pl      |   2 +-
 .../test_accents_sc_enable_encoding_usascii.pl     |   2 +-
 .../test_accents_sc_use_numeric_entity.pl          |   2 +-
 .../html_tests/test_xrefautomaticsectiontitle.pl   |   2 +-
 .../test_xrefautomaticsectiontitle_off_first.pl    |   2 +-
 tp/t/results/html_tests/tex_expanded_in_copying.pl |   2 +-
 .../text_before_top_and_contents_after_title.pl    |   2 +-
 ...t_before_top_and_summarycontents_after_title.pl |   2 +-
 tp/t/results/html_tests/titles.pl                  |   2 +-
 tp/t/results/html_tests/utf8_default.pl            |   2 +-
 tp/t/results/html_tests/utf8_enable_encoding.pl    |   2 +-
 .../html_tests/utf8_enable_encoding_no_use_iso.pl  |   2 +-
 .../utf8_enable_encoding_use_numeric_entity.pl     |   2 +-
 tp/t/results/html_tests/utf8_use_numeric_entity.pl |   2 +-
 .../verbatim_in_multitable_in_example.pl           |   2 +-
 tp/t/results/html_tests/xml_protected_in_verb.pl   |   2 +-
 tp/t/results/htmlxref/htmlxref.pl                  |   2 +-
 tp/t/results/htmlxref/htmlxref_nodes.pl            |   2 +-
 tp/t/results/htmlxref/htmlxref_only_mono.pl        |   2 +-
 tp/t/results/htmlxref/htmlxref_only_mono_nodes.pl  |   2 +-
 tp/t/results/htmlxref/htmlxref_only_split.pl       |   2 +-
 tp/t/results/htmlxref/htmlxref_only_split_nodes.pl |   2 +-
 tp/t/results/include/cpp_lines.pl                  |   2 +-
 tp/t/results/include/double_include.pl             |   2 +-
 tp/t/results/include/include_at_end_line.pl        |   2 +-
 tp/t/results/include/include_comment.pl            |   2 +-
 .../include_setfilename_on_setfilename_line.pl     |   2 +-
 tp/t/results/include/include_space.pl              |   2 +-
 tp/t/results/include/include_space_comment.pl      |   2 +-
 tp/t/results/include/include_with_setfilename.pl   |   2 +-
 .../macro_and_commands_in_early_commands.pl        |   2 +-
 .../results/include/macro_definition_in_include.pl |   2 +-
 tp/t/results/include/macro_in_early_commands.pl    |   2 +-
 tp/t/results/include/no_eol_in_included_file.pl    |   2 +-
 tp/t/results/include/simple.pl                     |   2 +-
 tp/t/results/include/simple_no_eol.pl              |   2 +-
 tp/t/results/include/value_expansion_in_include.pl |   2 +-
 .../include/verbatiminclude_and_encoding.pl        |   2 +-
 .../include/verbatiminclude_and_encoding_latin1.pl |   2 +-
 tp/t/results/indices/complex_recursive_synindex.pl |   2 +-
 tp/t/results/indices/def_existing_index.pl         |   2 +-
 tp/t/results/indices/def_syn_indices.pl            |   2 +-
 ...default_cp_index_and_one_letter_syncodeindex.pl |   2 +-
 tp/t/results/indices/double_index_entry.pl         |   2 +-
 tp/t/results/indices/double_seeentry_seealso.pl    |   2 +-
 tp/t/results/indices/double_syncodeindex.pl        |   2 +-
 tp/t/results/indices/empty_cindex_entry.pl         |   2 +-
 tp/t/results/indices/empty_index_entry.pl          |   2 +-
 tp/t/results/indices/empty_string_index_entry.pl   |   2 +-
 tp/t/results/indices/encoding_index_ascii.pl       |   2 +-
 .../encoding_index_ascii_enable_encoding.pl        |   2 +-
 tp/t/results/indices/encoding_index_latin1.pl      |   2 +-
 .../encoding_index_latin1_enable_encoding.pl       |   2 +-
 tp/t/results/indices/encoding_index_utf8.pl        |   2 +-
 .../indices/encoding_index_utf8_enable_encoding.pl |   2 +-
 tp/t/results/indices/explicit_sort_key.pl          |   2 +-
 tp/t/results/indices/ftable_vtable.pl              |   2 +-
 tp/t/results/indices/image_lines_count.pl          |   2 +-
 tp/t/results/indices/image_text_lines_count.pl     |   2 +-
 tp/t/results/indices/index_entries_locations.pl    |   2 +-
 .../indices/index_entry_before_first_node.pl       | Bin 9495 -> 9505 bytes
 tp/t/results/indices/index_entry_before_node.pl    |   2 +-
 tp/t/results/indices/index_entry_in_footnote.pl    |   2 +-
 .../index_entry_in_footnote_different_node_end.pl  |   2 +-
 .../indices/index_entry_in_footnote_separate.pl    |   2 +-
 tp/t/results/indices/print_merged_index.pl         |   2 +-
 tp/t/results/indices/printindex_before_document.pl |   2 +-
 .../indices/printindex_index_entry_in_copying.pl   |   2 +-
 ...rintindex_index_entry_in_copying_in_footnote.pl |   2 +-
 ...ndex_index_entry_in_copying_no_insertcopying.pl |   2 +-
 .../indices/printindex_with_space_before.pl        | Bin 9064 -> 9074 bytes
 tp/t/results/indices/recursive_synindex.pl         |   2 +-
 .../indices/same_index_entry_merged_indices.pl     |   2 +-
 tp/t/results/indices/seealso_duplicate.pl          |   2 +-
 tp/t/results/indices/seeentry.pl                   |   2 +-
 tp/t/results/indices/subentries.pl                 |   2 +-
 tp/t/results/indices/subentry_and_sortas.pl        |   2 +-
 tp/t/results/indices/syncode_index_print_both.pl   |   2 +-
 tp/t/results/indices/syncodeindex_to_plain.pl      |   2 +-
 tp/t/results/indices/transparent_sort_chars.pl     |   2 +-
 tp/t/results/indices/unknown_index_entry.pl        |   2 +-
 tp/t/results/indices/unknown_printindex.pl         |   2 +-
 tp/t/results/indices/unknown_synindex.pl           |   2 +-
 .../indices/unknown_then_known_index_entry.pl      |   2 +-
 tp/t/results/indices/w_lines_count.pl              |   2 +-
 tp/t/results/indices/wrong_synindex.pl             |   2 +-
 tp/t/results/info_tests/anchor_and_spaces.pl       |   2 +-
 tp/t/results/info_tests/anchor_in_command.pl       |   2 +-
 tp/t/results/info_tests/before_node_and_section.pl |   2 +-
 tp/t/results/info_tests/center_flush.pl            |   2 +-
 tp/t/results/info_tests/colon_in_index_entry.pl    |   2 +-
 tp/t/results/info_tests/def_in_copying.pl          |   2 +-
 .../direntry_dircategory_and_commands.pl           |   2 +-
 tp/t/results/info_tests/encoding_us_ascii.pl       |   2 +-
 tp/t/results/info_tests/error_in_footnote.pl       |   2 +-
 tp/t/results/info_tests/file_only_png.pl           | Bin 6882 -> 6892 bytes
 tp/t/results/info_tests/float_long_captions.pl     |   2 +-
 tp/t/results/info_tests/image_and_punctuation.pl   |   2 +-
 .../info_tests/image_and_spaces_formatting.pl      |   2 +-
 tp/t/results/info_tests/image_extension.pl         |   2 +-
 tp/t/results/info_tests/image_in_paragraph.pl      | Bin 6589 -> 6599 bytes
 tp/t/results/info_tests/image_not_found.pl         |   2 +-
 tp/t/results/info_tests/image_quotes.pl            | Bin 5363 -> 5373 bytes
 tp/t/results/info_tests/image_text_encoded.pl      |   2 +-
 tp/t/results/info_tests/index_entry_at_end_node.pl |   2 +-
 .../info_tests/invalid_node_name_no_warning.pl     |   2 +-
 .../info_tests/invalid_node_name_warning.pl        |   2 +-
 tp/t/results/info_tests/known_encoding.pl          |   2 +-
 .../info_tests/multiline_image_and_align.pl        |   2 +-
 .../multitable_anchor_and_index_entry.pl           |   2 +-
 .../info_tests/nested_footnotes_separate.pl        |   2 +-
 .../info_tests/nested_multitable_anchor_index.pl   |   2 +-
 tp/t/results/info_tests/no_node_but_top.pl         |   2 +-
 tp/t/results/info_tests/no_nodes.pl                |   2 +-
 tp/t/results/info_tests/no_top_node.pl             |   2 +-
 tp/t/results/info_tests/note_in_strong.pl          |   2 +-
 .../info_tests/note_in_strong_end_of_line.pl       |   2 +-
 tp/t/results/info_tests/novalidate_empty_refs.pl   |   2 +-
 tp/t/results/info_tests/only_documentencoding.pl   |   2 +-
 .../info_tests/paragraphindent_and_preamble.pl     |   2 +-
 .../info_tests/paragraphindent_asis_first.pl       |   2 +-
 .../info_tests/paragraphindent_none_first.pl       |   2 +-
 tp/t/results/info_tests/pxref_test.pl              |   2 +-
 tp/t/results/info_tests/ref_tests.pl               |   2 +-
 tp/t/results/info_tests/space_at_menu_end.pl       |   2 +-
 tp/t/results/info_tests/space_in_menu.pl           |   2 +-
 tp/t/results/info_tests/space_in_setfilename.pl    |   2 +-
 tp/t/results/info_tests/split_no_copying.pl        |   2 +-
 .../info_tests/split_test_before_first_node.pl     |   2 +-
 .../split_test_before_first_node_no_empty_line.pl  |   2 +-
 tp/t/results/info_tests/test_index.pl              |   2 +-
 tp/t/results/info_tests/text_before_node.pl        |   2 +-
 tp/t/results/info_tests/top_node_normalization.pl  |   2 +-
 tp/t/results/info_tests/unknown_encoding.pl        |   2 +-
 tp/t/results/info_tests/xref_test.pl               |   2 +-
 ...acro_defined_txiinternalvalue_in_translation.pl |   2 +-
 .../init_files_tests/modified_translation.pl       |   2 +-
 tp/t/results/init_files_tests/redefined_need.pl    |   2 +-
 tp/t/results/invalid_nestings/accents.pl           |   2 +-
 tp/t/results/invalid_nestings/bad_style_nesting.pl |   2 +-
 tp/t/results/invalid_nestings/bad_tab_nesting.pl   |   2 +-
 .../results/invalid_nestings/block_not_matching.pl |   2 +-
 .../invalid_nestings/cartouche_in_style_command.pl |   2 +-
 tp/t/results/invalid_nestings/center.pl            |   2 +-
 .../invalid_nestings/def_in_style_command.pl       |   2 +-
 .../def_not_closed_in_menu_description.pl          |   2 +-
 .../invalid_nestings/enumerate_in_style_command.pl |   2 +-
 .../invalid_nestings/example_in_style_command.pl   |   2 +-
 .../invalid_nestings/float_in_style_command.pl     |   2 +-
 .../flushright_in_style_command.pl                 |   2 +-
 tp/t/results/invalid_nestings/footnote_in_ref.pl   |   2 +-
 .../formats_not_closed_in_example.pl               |   2 +-
 tp/t/results/invalid_nestings/ignore_in_xref.pl    |   2 +-
 tp/t/results/invalid_nestings/ignored_text.pl      |   2 +-
 tp/t/results/invalid_nestings/in_errormsg.pl       |   2 +-
 tp/t/results/invalid_nestings/in_table.pl          |   2 +-
 tp/t/results/invalid_nestings/item_in_ref.pl       |   2 +-
 .../item_tab_outside_of_table_lists.pl             |   2 +-
 .../itemx_in_itemize_enumerate_in_table.pl         |   2 +-
 .../invalid_nestings/menu_in_style_command.pl      |   2 +-
 .../multitable_in_style_command.pl                 |   2 +-
 .../invalid_nestings/multitable_item_in_index.pl   |   2 +-
 tp/t/results/invalid_nestings/node_in_copying.pl   |   2 +-
 .../invalid_nestings/node_in_copying_not_closed.pl |   2 +-
 .../invalid_nestings/node_on_index_entry_line.pl   |   2 +-
 .../invalid_nestings/on_block_command_line.pl      |   2 +-
 tp/t/results/invalid_nestings/on_def_line.pl       |   2 +-
 .../invalid_nestings/on_index_entry_line.pl        |   2 +-
 tp/t/results/invalid_nestings/on_itemize_line.pl   |   2 +-
 tp/t/results/invalid_nestings/on_node_line.pl      |   2 +-
 tp/t/results/invalid_nestings/on_section_line.pl   |   2 +-
 .../results/invalid_nestings/on_subheading_line.pl |   2 +-
 tp/t/results/invalid_nestings/quotation_in_ref.pl  |   2 +-
 .../invalid_nestings/quotation_in_style_command.pl |   2 +-
 tp/t/results/invalid_nestings/raw_block_on_line.pl |   2 +-
 tp/t/results/invalid_nestings/recursive_copying.pl |   2 +-
 tp/t/results/invalid_nestings/ref_in_anchor.pl     |   2 +-
 tp/t/results/invalid_nestings/ref_in_ref.pl        |   2 +-
 .../results/invalid_nestings/section_in_copying.pl |   2 +-
 .../invalid_nestings/section_in_flushright.pl      |   2 +-
 .../invalid_nestings/section_in_footnote.pl        |   2 +-
 tp/t/results/invalid_nestings/section_in_math.pl   |   2 +-
 .../section_in_nested_block_commands.pl            |   2 +-
 tp/t/results/invalid_nestings/section_in_table.pl  |   2 +-
 .../invalid_nestings/section_on_def_line.pl        |   2 +-
 .../invalid_nestings/section_on_defx_line.pl       |   2 +-
 .../section_on_index_entry_line.pl                 |   2 +-
 .../style_not_closed_before_first_node.pl          |   2 +-
 .../style_not_closed_in_block_command.pl           |   2 +-
 .../style_not_closed_in_table_line.pl              |   2 +-
 .../style_not_closed_no_newline_root_commands.pl   |   2 +-
 .../style_not_closed_root_commands.pl              |   2 +-
 tp/t/results/invalid_nestings/tab_in_index.pl      |   2 +-
 tp/t/results/invalid_nestings/table_in_code.pl     |   2 +-
 .../table_not_closed_in_menu_comment.pl            |   2 +-
 .../table_not_closed_in_menu_description.pl        |   2 +-
 .../results/invalid_nestings/table_on_item_line.pl |   2 +-
 .../unclosed_verb_end_of_line_on_misc_line.pl      |   2 +-
 .../invalid_nestings/unclosed_verb_on_misc_line.pl |   2 +-
 .../unclosed_verb_on_section_line.pl               |   2 +-
 tp/t/results/invalid_nestings/verbatim_in_ref.pl   |   2 +-
 tp/t/results/itemize/accent_argument.pl            |   2 +-
 tp/t/results/itemize/asis_as_itemize_argument.pl   |   2 +-
 tp/t/results/itemize/bad_enumerate_arguments.pl    |   2 +-
 .../itemize/comment_first_on_enumerate_line.pl     |   2 +-
 .../itemize/comment_first_on_itemize_line.pl       |   2 +-
 tp/t/results/itemize/enumerate_and_empty_lines.pl  |   2 +-
 tp/t/results/itemize/enumerate_argument.pl         |   2 +-
 tp/t/results/itemize/enumerate_argument_item.pl    |   2 +-
 tp/t/results/itemize/enumerate_in_example.pl       |   2 +-
 tp/t/results/itemize/enumerate_letters.pl          |   2 +-
 .../results/itemize/headitem_itemx_in_enumerate.pl |   2 +-
 tp/t/results/itemize/headitem_itemx_in_itemize.pl  |   2 +-
 .../itemize/inter_item_commands_in_enumerate.pl    |   2 +-
 .../itemize/inter_item_commands_in_itemize.pl      |   2 +-
 tp/t/results/itemize/itemize_and_empty_lines.pl    |   2 +-
 tp/t/results/itemize/itemize_in_example.pl         |   2 +-
 .../itemize/itemize_line_commands_with_brace.pl    |   2 +-
 tp/t/results/itemize/itemize_long_item.pl          |   2 +-
 tp/t/results/itemize/not_closed_item.pl            |   2 +-
 tp/t/results/itemize/not_closed_itemize.pl         |   2 +-
 tp/t/results/itemize/table_in_itemize.pl           |   2 +-
 tp/t/results/itemize/w_argument.pl                 |   2 +-
 tp/t/results/languages/appendix_translated.pl      |   2 +-
 tp/t/results/languages/command_translated.pl       |   2 +-
 tp/t/results/languages/multiple.pl                 |   2 +-
 tp/t/results/languages/multiple_lang_chapters.pl   |   2 +-
 .../languages/multiple_lang_chapters_latex.pl      |   2 +-
 .../languages/multiple_lang_chapters_texi2html.pl  |   2 +-
 tp/t/results/languages/simple.pl                   |   2 +-
 tp/t/results/languages/unknown_language.pl         |   2 +-
 tp/t/results/languages/unknown_region.pl           |   2 +-
 .../anchor_links_xref_xrefautomaticsectiontitle.pl |   2 +-
 tp/t/results/latex_tests/custom_headings.pl        |   2 +-
 tp/t/results/latex_tests/enumerate_arguments.pl    |   2 +-
 tp/t/results/latex_tests/example_in_cartouche.pl   |   2 +-
 tp/t/results/latex_tests/float_and_refs.pl         |   2 +-
 tp/t/results/latex_tests/fonttextsize.pl           |   2 +-
 tp/t/results/latex_tests/indices.pl                |   2 +-
 tp/t/results/latex_tests/kbdinputstyle_and_kbd.pl  |   2 +-
 tp/t/results/latex_tests/nested_enumerate.pl       |   2 +-
 tp/t/results/latex_tests/nested_itemize.pl         |   2 +-
 .../no_titlepage_and_setchapternewpage_odd.pl      |   2 +-
 .../no_titlepage_and_setchapternewpage_on.pl       |   2 +-
 tp/t/results/latex_tests/pagesizes.pl              |   2 +-
 tp/t/results/latex_tests/pagetype.pl               |   2 +-
 .../setchapternewpage_on_odd_titlepage.pl          |   2 +-
 tp/t/results/latex_tests/settitle_and_headings.pl  |   2 +-
 tp/t/results/latex_tests/shorttitlepage.pl         |   2 +-
 .../three_setchapternewpage_on_odd_off.pl          |   2 +-
 tp/t/results/latex_tests/titlepage_and_headings.pl |   2 +-
 .../titlepage_and_setchapternewpage_odd.pl         |   2 +-
 .../titlepage_and_setchapternewpage_on.pl          |   2 +-
 tp/t/results/latex_tests/titlepage_classical.pl    |   2 +-
 tp/t/results/latex_tests/titlepage_in_top_node.pl  |   2 +-
 tp/t/results/latex_tests/titlepage_long_title.pl   |   2 +-
 tp/t/results/latex_tests/titlepage_no_author.pl    |   2 +-
 tp/t/results/latex_tests/titlepage_no_title.pl     |   2 +-
 .../titlepage_with_commands_classical.pl           |   2 +-
 .../latex_tests/two_setchapternewpage_odd_on.pl    |   2 +-
 .../latex_tests/two_setchapternewpage_on_odd.pl    |   2 +-
 .../results/latex_tests/verbatim_in_smallformat.pl |   2 +-
 tp/t/results/layout/navigation.pl                  |   2 +-
 tp/t/results/layout/navigation_chapter.pl          |   2 +-
 .../results/layout/navigation_chapter_no_header.pl |   2 +-
 .../navigation_chapter_no_header_vertical.pl       |   2 +-
 tp/t/results/layout/navigation_chapter_vertical.pl |   2 +-
 tp/t/results/layout/navigation_no_header.pl        |   2 +-
 .../layout/navigation_no_header_vertical.pl        |   2 +-
 tp/t/results/layout/navigation_node.pl             |   2 +-
 tp/t/results/layout/navigation_node_no_header.pl   |   2 +-
 .../layout/navigation_node_no_header_vertical.pl   |   2 +-
 tp/t/results/layout/navigation_node_vertical.pl    |   2 +-
 tp/t/results/layout/navigation_section.pl          |   2 +-
 .../results/layout/navigation_section_no_header.pl |   2 +-
 .../navigation_section_no_header_vertical.pl       |   2 +-
 tp/t/results/layout/navigation_section_vertical.pl |   2 +-
 tp/t/results/layout/navigation_vertical.pl         |   2 +-
 tp/t/results/layout/no_monolithic.pl               |   2 +-
 tp/t/results/macro/arg_body_expansion_order.pl     |   2 +-
 tp/t/results/macro/arg_not_closed.pl               |   2 +-
 tp/t/results/macro/backslash_in_arg.pl             |   2 +-
 tp/t/results/macro/bad_argument.pl                 |   2 +-
 tp/t/results/macro/bad_formal_arg.pl               |   2 +-
 .../macro/bad_macro_name_with_underscore.pl        |   2 +-
 tp/t/results/macro/complete_macro_for_end.pl       |   2 +-
 tp/t/results/macro/complex_argument.pl             |   2 +-
 tp/t/results/macro/double_macro_definition.pl      |   2 +-
 tp/t/results/macro/double_recursive_macro_call.pl  |   2 +-
 tp/t/results/macro/empty_end.pl                    |   2 +-
 tp/t/results/macro/empty_macro_argument.pl         |   2 +-
 tp/t/results/macro/empty_macro_in_text_no_arg.pl   |   2 +-
 tp/t/results/macro/empty_macro_no_arg.pl           |   2 +-
 tp/t/results/macro/expand_two_same.pl              |   2 +-
 tp/t/results/macro/expansion_order.pl              |   2 +-
 tp/t/results/macro/form_feeds.pl                   |   2 +-
 tp/t/results/macro/ifclear_in_macro.pl             |   2 +-
 tp/t/results/macro/ifset_and_end_isef_in_macro.pl  |   2 +-
 tp/t/results/macro/ifset_in_macro.pl               |   2 +-
 tp/t/results/macro/ifset_in_macro_set.pl           |   2 +-
 tp/t/results/macro/ignored_macro_definition.pl     |   2 +-
 tp/t/results/macro/implicit_quoting_one_arg.pl     |   2 +-
 tp/t/results/macro/implicit_quoting_recursion.pl   |   2 +-
 tp/t/results/macro/include_after_empty_line_arg.pl |   2 +-
 tp/t/results/macro/leading_spaces_no_ignore.pl     |   2 +-
 tp/t/results/macro/line_after_recursive_call.pl    |   2 +-
 tp/t/results/macro/macro_expands_to_empty.pl       |   2 +-
 tp/t/results/macro/macro_expansion.pl              |   2 +-
 tp/t/results/macro/macro_for_end.pl                |   2 +-
 .../macro/macro_for_ignored_line_command.pl        |   2 +-
 tp/t/results/macro/macro_in_accent.pl              |   2 +-
 tp/t/results/macro/macro_in_brace_command.pl       |   2 +-
 tp/t/results/macro/macro_in_end_argument.pl        |   2 +-
 tp/t/results/macro/macro_in_ifset.pl               |   2 +-
 tp/t/results/macro/macro_in_ifset_end_in_arg.pl    |   2 +-
 tp/t/results/macro/macro_in_index_commands.pl      |   2 +-
 .../macro/macro_in_invalid_documentencoding.pl     |   2 +-
 tp/t/results/macro/macro_in_macro_arg.pl           |   2 +-
 tp/t/results/macro/macro_in_macro_arg_simpler.pl   |   2 +-
 tp/t/results/macro/macro_in_menu.pl                |   2 +-
 tp/t/results/macro/macro_in_misc_commands.pl       |   2 +-
 tp/t/results/macro/macro_name_with_digit.pl        |   2 +-
 tp/t/results/macro/macro_name_with_hyphen.pl       |   2 +-
 tp/t/results/macro/macro_no_arg_bad_expansion.pl   |   2 +-
 tp/t/results/macro/macro_no_arg_expansion.pl       |   2 +-
 tp/t/results/macro/macro_no_argument.pl            |   2 +-
 tp/t/results/macro/macro_not_closed.pl             |   2 +-
 tp/t/results/macro/macro_one_arg_end_of_file.pl    |   2 +-
 .../macro_with_error_at_end_line_after_macro.pl    |   2 +-
 tp/t/results/macro/macro_zero.pl                   |   2 +-
 tp/t/results/macro/nested_macro_call.pl            |   2 +-
 tp/t/results/macro/no_macrobody.pl                 |   2 +-
 tp/t/results/macro/paragraph_and_macro.pl          |   2 +-
 tp/t/results/macro/protect_comma_macro_line.pl     |   2 +-
 tp/t/results/macro/protect_in_body.pl              |   2 +-
 tp/t/results/macro/protect_in_body_line_arg.pl     |   2 +-
 tp/t/results/macro/protect_in_body_one_arg.pl      |   2 +-
 tp/t/results/macro/recursive_call_in_argument.pl   |   2 +-
 tp/t/results/macro/recursive_call_in_macro.pl      |   2 +-
 tp/t/results/macro/redefine_texinfo_macro.pl       |   2 +-
 tp/t/results/macro/simple_imbricated_macro.pl      |   2 +-
 tp/t/results/macro/space_macro_after_end.pl        |   2 +-
 .../macro/space_macro_after_end_verbatim.pl        |   2 +-
 tp/t/results/macro/text_before_after.pl            |   2 +-
 tp/t/results/macro/too_much_args.pl                |   2 +-
 tp/t/results/macro/two_macros_on_a_line.pl         |   2 +-
 .../results/macro/unknown_macro_on_line_command.pl |   2 +-
 tp/t/results/macro/zero_argument.pl                |   2 +-
 tp/t/results/menu/bad_beginning.pl                 |   2 +-
 .../menu/block_commands_in_menu_description.pl     |   2 +-
 tp/t/results/menu/comment_on_menu_line.pl          |   2 +-
 tp/t/results/menu/dash_in_menu.pl                  |   2 +-
 tp/t/results/menu/detailmenu.pl                    |   2 +-
 tp/t/results/menu/detailmenu_in_description.pl     |   2 +-
 tp/t/results/menu/detailmenu_on_subnodes.pl        |   2 +-
 tp/t/results/menu/detailmenu_unknown_node.pl       |   2 +-
 .../menu/direntry_dircategory_after_first_node.pl  |   2 +-
 tp/t/results/menu/empty_menu_entry_name.pl         |   2 +-
 tp/t/results/menu/entry_after_detailmenu.pl        |   2 +-
 tp/t/results/menu/example_in_menu_comment.pl       |   2 +-
 tp/t/results/menu/example_in_menu_description.pl   |   2 +-
 tp/t/results/menu/formats_in_menu.pl               |   2 +-
 tp/t/results/menu/inlineraw_in_menu_description.pl |   2 +-
 tp/t/results/menu/invalid_info_menu_entry.pl       |   2 +-
 tp/t/results/menu/menu_entry_name.pl               |   2 +-
 tp/t/results/menu/menu_entry_name_comment.pl       |   2 +-
 tp/t/results/menu/menu_entry_no_entry.pl           |   2 +-
 tp/t/results/menu/menu_entry_no_entry_location.pl  |   2 +-
 tp/t/results/menu/menu_entry_node.pl               |   2 +-
 tp/t/results/menu/menu_entry_node_comments.pl      |   2 +-
 tp/t/results/menu/menu_in_deffn.pl                 |   2 +-
 tp/t/results/menu/menu_in_example.pl               |   2 +-
 .../menu/menu_no_closed_after_empty_line.pl        |   2 +-
 .../results/menu/menu_no_closed_entry_beginning.pl |   2 +-
 tp/t/results/menu/menu_no_closed_in_description.pl |   2 +-
 tp/t/results/menu/menu_no_closed_in_entry.pl       |   2 +-
 tp/t/results/menu/menu_no_closed_star.pl           |   2 +-
 tp/t/results/menu/menu_node_unterminated.pl        |   2 +-
 tp/t/results/menu/menu_pointing_to_anchor.pl       |   2 +-
 tp/t/results/menu/menu_title_before_entries.pl     |   2 +-
 tp/t/results/menu/multiple_menus.pl                |   2 +-
 tp/t/results/menu/no_colon_in_menu.pl              |   2 +-
 tp/t/results/menu/reference_to_external_manual.pl  |   2 +-
 tp/t/results/menu/sc_in_menu.pl                    |   2 +-
 tp/t/results/menu/simple.pl                        |   2 +-
 tp/t/results/menu/simple_no_menu.pl                |   2 +-
 tp/t/results/menu/submenu_in_example.pl            |   2 +-
 tp/t/results/menu/verb_in_menu_description.pl      |   2 +-
 tp/t/results/misc_commands/also_not_line.pl        |   2 +-
 .../author_outside_titlepage_quotation.pl          |   2 +-
 tp/t/results/misc_commands/bad_documentlanguage.pl |   2 +-
 tp/t/results/misc_commands/bye.pl                  |   2 +-
 tp/t/results/misc_commands/clickstyle.pl           |   2 +-
 .../codequoteundirected_codequotebacktick.pl       |   2 +-
 .../misc_commands/command_in_heading_footing.pl    |   2 +-
 .../misc_commands/command_line_in_paragraph.pl     |   2 +-
 .../command_not_closed_in_documentencoding.pl      |   2 +-
 .../misc_commands/comment_space_command_on_line.pl |   2 +-
 tp/t/results/misc_commands/comments_in_text.pl     |   2 +-
 tp/t/results/misc_commands/contents.pl             |   2 +-
 .../misc_commands/defindex_too_much_args.pl        |   2 +-
 tp/t/results/misc_commands/definfoenclose.pl       |   2 +-
 .../misc_commands/definfoenclose_with_empty_arg.pl |   2 +-
 tp/t/results/misc_commands/double_exdent.pl        |   2 +-
 tp/t/results/misc_commands/empty_center.pl         |   2 +-
 .../results/misc_commands/empty_center_with_arg.pl |   2 +-
 .../misc_commands/empty_documentencoding.pl        |   2 +-
 tp/t/results/misc_commands/footnote_in_center.pl   |   2 +-
 .../misc_commands/heading_command_in_commands.pl   |   2 +-
 .../incorrect_allowcodebreaks_argument.pl          |   2 +-
 tp/t/results/misc_commands/indent_in_quotation.pl  |   2 +-
 tp/t/results/misc_commands/index_entries.pl        |   2 +-
 tp/t/results/misc_commands/invalid_clickstyle.pl   |   2 +-
 .../misc_commands/invalid_documentencoding.pl      |   2 +-
 .../results/misc_commands/invalid_kbdinputstyle.pl |   2 +-
 tp/t/results/misc_commands/kbdinputstyle.pl        |   2 +-
 .../misc_commands/kbdinputstyle_in_table.pl        |   2 +-
 tp/t/results/misc_commands/many_lines.pl           |   2 +-
 .../no_empty_line_between_headings.pl              |   2 +-
 .../misc_commands/noindent_after_smallexample.pl   |   2 +-
 tp/t/results/misc_commands/noindent_empty_para.pl  |   2 +-
 .../results/misc_commands/noindent_in_paragraph.pl |   2 +-
 tp/t/results/misc_commands/noindent_indent.pl      |   2 +-
 tp/t/results/misc_commands/ref_in_center.pl        |   2 +-
 tp/t/results/misc_commands/setfilename.pl          |   2 +-
 tp/t/results/misc_commands/simple.pl               |   2 +-
 tp/t/results/misc_commands/sp.pl                   |   2 +-
 .../misc_commands/synindex_too_much_args.pl        |   2 +-
 tp/t/results/misc_commands/test_allowcodebreaks.pl |   2 +-
 .../misc_commands/text_before_and_after_bye.pl     |   2 +-
 .../misc_commands/text_before_line_command.pl      |   2 +-
 tp/t/results/misc_commands/vskip.pl                |   2 +-
 tp/t/results/morecoverage/formatting_fr.pl         |   2 +-
 tp/t/results/morecoverage/texi_formatting.pl       |   2 +-
 tp/t/results/moreindices/double_index_entry.pl     |   2 +-
 tp/t/results/moreindices/index_no_node.pl          |   2 +-
 tp/t/results/moreindices/index_split.pl            |   2 +-
 tp/t/results/moreindices/index_split_nodes.pl      |   2 +-
 tp/t/results/moreindices/nodes_before_top.pl       |   2 +-
 .../nodes_before_top_and_sections_monolithic.pl    |   2 +-
 .../moreindices/nodes_before_top_no_nodes.pl       |   2 +-
 tp/t/results/moreindices/nodes_before_top_nodes.pl |   2 +-
 tp/t/results/moreindices/split_chapter_index.pl    |   2 +-
 tp/t/results/moresectioning/equivalent_nodes.pl    |   2 +-
 .../moresectioning/equivalent_nodes_no_node.pl     |   2 +-
 .../moresectioning/more_sections_than_nodes.pl     |   2 +-
 tp/t/results/moresectioning/node_footnote_end.pl   |   2 +-
 .../moresectioning/node_footnote_separated.pl      |   2 +-
 .../moresectioning/node_footnote_use_node.pl       |   2 +-
 .../nodes_after_top_before_chapter.pl              |   2 +-
 ...s_after_top_before_chapter_use_nodes_chapter.pl |   2 +-
 .../nodes_after_top_before_section.pl              |   2 +-
 .../nodes_after_top_before_section_use_nodes.pl    |   2 +-
 ...s_after_top_before_section_use_nodes_chapter.pl |   2 +-
 .../moresectioning/placed_things_before_element.pl |   2 +-
 tp/t/results/moresectioning/sectioning_frames.pl   |   2 +-
 .../results/moresectioning/top_node_up_explicit.pl |   2 +-
 .../results/moresectioning/top_node_up_implicit.pl |   2 +-
 .../moresectioning/two_footnotes_in_nodes.pl       |   2 +-
 .../two_footnotes_in_nodes_separated.pl            |   2 +-
 tp/t/results/multitable/empty_headitem.pl          |   2 +-
 tp/t/results/multitable/empty_item_tab.pl          |   2 +-
 .../multitable/empty_multitable_with_cells.pl      |   2 +-
 .../inter_item_commands_in_multitable.pl           |   2 +-
 .../multitable/multitable_begin_with_tab.pl        |   2 +-
 tp/t/results/multitable/multitable_in_example.pl   |   2 +-
 tp/t/results/multitable/multitable_not_closed.pl   |   2 +-
 .../multitable/multitable_not_closed_item.pl       |   2 +-
 .../multitable/multitable_not_closed_item_tab.pl   |   2 +-
 .../multitable_one_column_too_much_cells.pl        |   2 +-
 .../multitable_two_columns_too_much_cells.pl       |   2 +-
 .../multitable/multitable_with_empty_item_tab.pl   |   2 +-
 .../results/multitable/not_letters_in_prototype.pl |   2 +-
 tp/t/results/multitable/paragraph_in_cells.pl      |   2 +-
 .../results/multitable/prototype_brace_no_brace.pl |   2 +-
 .../multitable/prototype_brace_no_brace_comment.pl |   2 +-
 tp/t/results/multitable/prototype_no_brace.pl      |   2 +-
 tp/t/results/multitable/ref_in_multitable.pl       |   2 +-
 tp/t/results/multitable/w_in_multitable.pl         |   2 +-
 tp/t/results/paragraph/close_paragraph_command.pl  |   2 +-
 tp/t/results/paragraph/commands_in_flushright.pl   |   2 +-
 tp/t/results/paragraph/comment_between_text.pl     |   2 +-
 tp/t/results/paragraph/comment_in_quotation.pl     |   2 +-
 tp/t/results/paragraph/double_style_paragraph.pl   |   2 +-
 tp/t/results/paragraph/image_in_paragraph.pl       |   2 +-
 tp/t/results/paragraph/no_paragraph_commands.pl    |   2 +-
 tp/t/results/paragraph/paragraph_command.pl        |   2 +-
 .../paragraph/paragraph_count_and_example.pl       |   2 +-
 .../paragraph/paragraph_in_style_command.pl        |   2 +-
 tp/t/results/paragraph/paragraph_indent_asis.pl    |   2 +-
 tp/t/results/paragraph/sole_image.pl               |   2 +-
 tp/t/results/paragraph/text.pl                     |   2 +-
 tp/t/results/paragraph/text_comment.pl             |   2 +-
 tp/t/results/paragraph/text_line.pl                |   2 +-
 tp/t/results/paragraph/text_space_comment.pl       |   2 +-
 tp/t/results/paragraph/two_lines.pl                |   2 +-
 .../plaintext_tests/U_with_utf8_enable_encoding.pl |   2 +-
 .../plaintext_tests/accent_command_punctuation.pl  |   2 +-
 .../accents_in_var_enable_encoding.pl              |   2 +-
 .../after_punctuation_character_in_command.pl      |   2 +-
 tp/t/results/plaintext_tests/all_spaces.pl         |   2 +-
 .../plaintext_tests/anchor_and_empty_lines.pl      |   2 +-
 .../at_commands_glued_in_example.pl                |   2 +-
 .../at_commands_glued_in_paragraph.pl              |   2 +-
 .../plaintext_tests/before_accent_punctuation.pl   |   2 +-
 .../characters_and_commands_in_var.pl              |   2 +-
 .../plaintext_tests/chinese_mixed_with_en.pl       |   2 +-
 .../code_commands_and_punctuation.pl               |   2 +-
 .../command_brace_no_arg_punctuation.pl            |   2 +-
 .../plaintext_tests/commands_and_punctuation.pl    |   2 +-
 tp/t/results/plaintext_tests/east_asian_in_w.pl    |   2 +-
 .../plaintext_tests/empty_line_in_example_end.pl   |   2 +-
 .../plaintext_tests/empty_multitable_in_itemize.pl |   2 +-
 .../end_sentence_space_protected.pl                |   2 +-
 tp/t/results/plaintext_tests/expanded_tex.pl       |   2 +-
 .../flushright_not_closed_and_format.pl            |   2 +-
 tp/t/results/plaintext_tests/html_expanded.pl      |   2 +-
 .../results/plaintext_tests/inhibit_punctuation.pl |   2 +-
 .../insert_copying_and_paragraph.pl                |   2 +-
 .../plaintext_tests/invalid_accent_punctuation.pl  |   2 +-
 .../plaintext_tests/isolated_html_expanded.pl      |   2 +-
 .../itemize_in_headitem_in_example.pl              |   2 +-
 tp/t/results/plaintext_tests/japanese_utf8.pl      |   2 +-
 .../plaintext_tests/line_passed_and_formats.pl     |   2 +-
 .../plaintext_tests/lone_braces_in_inlineraw.pl    |   2 +-
 tp/t/results/plaintext_tests/long_line.pl          |   2 +-
 .../plaintext_tests/long_uref_after_item.pl        |   2 +-
 .../plaintext_tests/multiline_image_and_align.pl   |   2 +-
 .../plaintext_tests/multiline_verb_after_space.pl  |   2 +-
 tp/t/results/plaintext_tests/multitable.pl         |   2 +-
 .../multitable_in_example_extraneous_tab.pl        |   2 +-
 .../plaintext_tests/nested_code_commands.pl        |   2 +-
 .../plaintext_tests/nested_indentedblock.pl        |   2 +-
 tp/t/results/plaintext_tests/nested_multitable.pl  |   2 +-
 .../plaintext_tests/no_empty_line_after_section.pl |   2 +-
 .../plaintext_tests/no_punctuation_commands.pl     |   2 +-
 .../no_punctuation_commands_frenchspacing.pl       |   2 +-
 tp/t/results/plaintext_tests/non_break_spaces.pl   |   2 +-
 tp/t/results/plaintext_tests/paragraphindent.pl    |   2 +-
 .../plaintext_tests/protect_spaces_on_line.pl      |   2 +-
 .../plaintext_tests/protected_space_end_line.pl    |   2 +-
 tp/t/results/plaintext_tests/punctuation.pl        |   2 +-
 .../plaintext_tests/punctuation_abbr_acronym.pl    |   2 +-
 .../punctuation_and_code_style_commands.pl         |   2 +-
 .../punctuation_and_code_style_commands_utf8.pl    |   2 +-
 .../plaintext_tests/punctuation_and_footnotes.pl   |   2 +-
 .../punctuation_and_footnotes_frenchspacing.pl     |   2 +-
 .../punctuation_and_upper_case_commands.pl         |   2 +-
 .../punctuation_and_upper_case_commands_utf8.pl    |   2 +-
 .../plaintext_tests/punctuation_at_end_command.pl  |   2 +-
 .../plaintext_tests/punctuation_commands.pl        |   2 +-
 .../punctuation_commands_frenchspacing.pl          |   2 +-
 .../plaintext_tests/punctuation_frenchspacing.pl   |   2 +-
 .../plaintext_tests/punctuation_in_command.pl      |   2 +-
 .../punctuation_in_command_end_line.pl             |   2 +-
 tp/t/results/plaintext_tests/punctuation_in_sc.pl  |   2 +-
 tp/t/results/plaintext_tests/quote_node_names.pl   |   2 +-
 .../sc_with_utf8_enable_encoding.pl                |   2 +-
 .../plaintext_tests/settitle_and_empty_top.pl      |   2 +-
 .../sp_with_text_before_in_example.pl              |   2 +-
 .../plaintext_tests/star_at_command_formatting.pl  |   2 +-
 .../plaintext_tests/tab_in_table_in_example.pl     |   2 +-
 .../results/plaintext_tests/tab_item_in_example.pl |   2 +-
 tp/t/results/plaintext_tests/transparent_text.pl   |   2 +-
 tp/t/results/preformatted/caption_in_example.pl    |   2 +-
 .../comment_example_and_blank_lines.pl             |   2 +-
 tp/t/results/preformatted/comments_in_example.pl   |   2 +-
 tp/t/results/preformatted/def_in_example.pl        |   2 +-
 tp/t/results/preformatted/empty_line.pl            |   2 +-
 .../preformatted/empty_line_style_command.pl       |   2 +-
 .../preformatted/insertcopying_in_example.pl       |   2 +-
 .../preformatted/nested_example_and_comment.pl     |   2 +-
 tp/t/results/preformatted/nested_formats.pl        |   2 +-
 tp/t/results/preformatted/page_in_example.pl       |   2 +-
 tp/t/results/preformatted/quote_dash_in_display.pl |   2 +-
 tp/t/results/preformatted/quote_dash_in_example.pl |   2 +-
 .../preformatted/text_on_display_command_line.pl   |   2 +-
 .../preformatted/text_on_example_command_line.pl   |   2 +-
 tp/t/results/preformatted/titlefont_in_example.pl  |   2 +-
 .../results/quotation/comment_on_quotation_line.pl |   2 +-
 tp/t/results/quotation/empty_quotation.pl          |   2 +-
 .../quotation/only_comment_on_quotation_line.pl    |   2 +-
 tp/t/results/quotation/quotation_and_author.pl     |   2 +-
 .../quotation/quotation_author_in_example.pl       |   2 +-
 .../quotation_beginning_and_end_on_line.pl         |   2 +-
 .../space_at_commands_end_quotation_line.pl        |   2 +-
 tp/t/results/quotation/standard_quotations.pl      |   2 +-
 tp/t/results/raw/beginning_and_end_on_line.pl      |   2 +-
 tp/t/results/raw/braces_in_tex.pl                  |   2 +-
 tp/t/results/raw/displaymath.pl                    |   2 +-
 tp/t/results/raw/inline_in_example.pl              |   2 +-
 tp/t/results/raw/inline_missing_first_arg.pl       |   2 +-
 tp/t/results/raw/inlinefmt.pl                      |   2 +-
 tp/t/results/raw/inlinefmt_with_empty_line.pl      |   2 +-
 tp/t/results/raw/inlineraw.pl                      |   2 +-
 tp/t/results/raw/inlineraw_with_empty_line.pl      |   2 +-
 tp/t/results/raw/lone_braces_in_html.pl            |   2 +-
 tp/t/results/raw/misc_raw.pl                       |   2 +-
 tp/t/results/raw/misc_raw_comments.pl              |   2 +-
 tp/t/results/raw/nested_macros.pl                  |   2 +-
 tp/t/results/raw/raw_commands_and_end_of_lines.pl  |   2 +-
 tp/t/results/raw/raw_expanded_in_style.pl          |   2 +-
 tp/t/results/raw/raw_in_example.pl                 |   2 +-
 tp/t/results/raw/raw_in_para.pl                    |   2 +-
 tp/t/results/raw/raw_in_style.pl                   |   2 +-
 tp/t/results/raw/raw_not_closed.pl                 |   2 +-
 tp/t/results/raw/tex_not_closed.pl                 |   2 +-
 tp/t/results/raw/verbatim_and_verbatiminclude.pl   |   2 +-
 tp/t/results/raw/verbatim_in_brace_command.pl      |   2 +-
 tp/t/results/raw/verbatim_not_closed.pl            |   2 +-
 tp/t/results/regions/anchor_in_copying.pl          |   2 +-
 .../regions/anchor_in_copying_in_footnote.pl       |   2 +-
 tp/t/results/regions/anchor_in_titlepage.pl        |   2 +-
 .../regions/anchor_in_titlepage_titlepage.pl       |   2 +-
 tp/t/results/regions/copying_not_closed.pl         |   2 +-
 tp/t/results/regions/double_copying.pl             |   2 +-
 .../results/regions/double_titlepage_not_closed.pl |   2 +-
 tp/t/results/regions/format_in_titlepage.pl        |   2 +-
 .../regions/format_in_titlepage_titlepage.pl       |   2 +-
 tp/t/results/regions/ref_in_copying.pl             |   2 +-
 tp/t/results/regions/today_in_copying.pl           |   2 +-
 tp/t/results/sectioning/a_comma_after_node.pl      |   2 +-
 tp/t/results/sectioning/anchor_in_footnote.pl      |   2 +-
 .../sectioning/anchor_in_footnote_separate.pl      |   2 +-
 tp/t/results/sectioning/anchor_zero.pl             |   2 +-
 tp/t/results/sectioning/at_commands_in_node.pl     |   2 +-
 .../sectioning/chapter_before_and_after_part.pl    |   2 +-
 tp/t/results/sectioning/chapter_before_part.pl     |   2 +-
 tp/t/results/sectioning/chapter_between_nodes.pl   |   2 +-
 .../chapter_node_before_and_after_part.pl          |   2 +-
 tp/t/results/sectioning/chapter_sections.pl        |   2 +-
 .../sectioning/character_and_spaces_in_node.pl     |   2 +-
 .../sectioning/character_and_spaces_in_refs.pl     |   2 +-
 .../sectioning/character_and_spaces_in_refs_out.pl |   2 +-
 tp/t/results/sectioning/complex.pl                 |   2 +-
 tp/t/results/sectioning/complex_split_at_node.pl   |   2 +-
 tp/t/results/sectioning/contents.pl                |   2 +-
 .../sectioning/contents_and_shortcontents.pl       |   2 +-
 .../sectioning/contents_at_document_begin.pl       |   2 +-
 .../results/sectioning/contents_at_end_document.pl |   2 +-
 .../contents_at_end_document_after_node.pl         |   2 +-
 tp/t/results/sectioning/contents_in_document.pl    |   2 +-
 tp/t/results/sectioning/contents_in_html_text.pl   |   2 +-
 tp/t/results/sectioning/contents_no_section.pl     |   2 +-
 .../sectioning/contents_with_only_top_node.pl      |   2 +-
 .../results/sectioning/double_node_anchor_float.pl |   2 +-
 tp/t/results/sectioning/double_part.pl             |   2 +-
 tp/t/results/sectioning/double_top.pl              |   2 +-
 tp/t/results/sectioning/double_top_in_menu.pl      |   2 +-
 tp/t/results/sectioning/double_top_section.pl      |   2 +-
 tp/t/results/sectioning/email_in_node.pl           |   2 +-
 tp/t/results/sectioning/empty_anchor.pl            |   2 +-
 tp/t/results/sectioning/empty_node.pl              |   2 +-
 .../sectioning/empty_nodes_with_commands.pl        |   2 +-
 tp/t/results/sectioning/empty_ref_arg.pl           |   2 +-
 tp/t/results/sectioning/empty_refs.pl              |   2 +-
 tp/t/results/sectioning/empty_top_node_up.pl       |   2 +-
 tp/t/results/sectioning/equivalent_labels.pl       |   2 +-
 tp/t/results/sectioning/equivalent_nodes.pl        |   2 +-
 .../results/sectioning/explicit_node_directions.pl |   2 +-
 tp/t/results/sectioning/external_node_in_menu.pl   |   2 +-
 tp/t/results/sectioning/hole_in_sectioning.pl      |   2 +-
 tp/t/results/sectioning/internal_top_node_up.pl    |   2 +-
 tp/t/results/sectioning/lone_Top_node.pl           |   2 +-
 tp/t/results/sectioning/lone_contents.pl           |   2 +-
 tp/t/results/sectioning/loop_nodes.pl              |   2 +-
 tp/t/results/sectioning/lowered_subsubsection.pl   |   2 +-
 tp/t/results/sectioning/loweredheading.pl          |   2 +-
 tp/t/results/sectioning/menutextorder.pl           |   2 +-
 .../results/sectioning/more_sections_than_nodes.pl |   2 +-
 tp/t/results/sectioning/next_in_menu_is_below.pl   |   2 +-
 tp/t/results/sectioning/next_no_prev_to_node.pl    |   2 +-
 .../results/sectioning/no_argument_and_contents.pl |   2 +-
 tp/t/results/sectioning/no_element.pl              |   2 +-
 tp/t/results/sectioning/no_menu.pl                 |   2 +-
 tp/t/results/sectioning/node_empty_direction.pl    |   2 +-
 tp/t/results/sectioning/node_line_arguments.pl     |   2 +-
 tp/t/results/sectioning/node_nested_parentheses.pl |   2 +-
 .../sectioning/node_part_chapter_after_chapter.pl  |   2 +-
 .../sectioning/node_part_chapter_after_top.pl      |   2 +-
 tp/t/results/sectioning/node_referenced_in_ref.pl  |   2 +-
 .../node_sectop_before_chapter_no_node.pl          |   2 +-
 .../sectioning/node_sectop_before_lone_node_Top.pl |   2 +-
 tp/t/results/sectioning/node_too_much_args.pl      |   2 +-
 .../node_up_direction_for_top_with_manual.pl       |   2 +-
 tp/t/results/sectioning/node_up_external_node.pl   |   2 +-
 tp/t/results/sectioning/nodename_parentheses.pl    |   2 +-
 .../nodes_after_top_before_chapter_nodes.pl        |   2 +-
 .../nodes_after_top_before_chapter_not_split.pl    |   2 +-
 ...ore_chapter_not_split_no_use_node_directions.pl |   2 +-
 .../nodes_after_top_before_chapter_sections.pl     |   2 +-
 .../nodes_after_top_before_section_nodes.pl        |   2 +-
 .../nodes_after_top_before_section_sections.pl     |   2 +-
 tp/t/results/sectioning/nodes_before_after_top.pl  |   2 +-
 .../sectioning/nodes_before_after_top_xref.pl      |   2 +-
 tp/t/results/sectioning/nodes_before_top.pl        |   2 +-
 .../nodes_no_node_top_explicit_directions.pl       |   2 +-
 .../non_automatic_internal_top_node_up.pl          |   2 +-
 .../non_automatic_top_node_up_and_url.pl           |   2 +-
 .../sectioning/non_automatic_top_node_up_url.pl    |   2 +-
 tp/t/results/sectioning/novalidate.pl              |   2 +-
 .../one_node_explicit_directions_anchor.pl         |   2 +-
 tp/t/results/sectioning/one_subsection.pl          |   2 +-
 tp/t/results/sectioning/one_subsection_and_node.pl |   2 +-
 tp/t/results/sectioning/part_before_chapter.pl     |   2 +-
 tp/t/results/sectioning/part_before_section.pl     |   2 +-
 tp/t/results/sectioning/part_before_top.pl         |   2 +-
 tp/t/results/sectioning/part_chapter_after_top.pl  |   2 +-
 tp/t/results/sectioning/part_chapter_appendix.pl   |   2 +-
 tp/t/results/sectioning/part_node_after_top.pl     |   2 +-
 tp/t/results/sectioning/part_node_before_top.pl    |   2 +-
 .../sectioning/part_node_chapter_after_top.pl      |   2 +-
 .../sectioning/part_node_chapter_appendix.pl       |   2 +-
 .../sectioning/part_node_chapter_node_appendix.pl  |   2 +-
 .../sectioning/part_node_node_part_appendix.pl     |   2 +-
 tp/t/results/sectioning/part_node_part_appendix.pl |   2 +-
 .../sectioning/part_node_part_node_appendix.pl     |   2 +-
 .../sectioning/placed_things_before_element.pl     |   2 +-
 .../sectioning/placed_things_before_node.pl        |   2 +-
 .../sectioning/protected_node_parentheses.pl       |   2 +-
 tp/t/results/sectioning/raiselowersections.pl      |   2 +-
 tp/t/results/sectioning/rec_nodes.pl               |   2 +-
 tp/t/results/sectioning/ref_to_top.pl              |   2 +-
 tp/t/results/sectioning/ref_to_unknown_node.pl     |   2 +-
 .../sectioning/section_before_after_top_node.pl    |   2 +-
 .../section_before_after_top_node_last_node.pl     |   2 +-
 tp/t/results/sectioning/section_before_chapter.pl  |   2 +-
 tp/t/results/sectioning/section_before_part.pl     |   2 +-
 tp/t/results/sectioning/section_before_top.pl      |   2 +-
 .../sectioning/section_before_top_no_node.pl       |   2 +-
 .../results/sectioning/section_below_unnumbered.pl |   2 +-
 .../sectioning/section_below_unnumbered_no_top.pl  |   2 +-
 .../sectioning/section_chapter_before_top.pl       |   2 +-
 .../sectioning/section_chapter_before_top_nodes.pl |   2 +-
 .../sectioning/section_in_unnumbered_info.pl       |   2 +-
 .../sectioning/section_in_unnumbered_plaintext.pl  |   2 +-
 .../results/sectioning/section_node_before_part.pl |   2 +-
 .../results/sectioning/sectioning_part_appendix.pl |   2 +-
 .../sectioning/sectioning_part_appendix_no_top.pl  |   2 +-
 tp/t/results/sectioning/sections.pl                |   2 +-
 tp/t/results/sectioning/sections_test.pl           |   2 +-
 .../sectioning/sections_test_no_use_nodes.pl       |   2 +-
 ...ctions_test_no_use_nodes_use_node_directions.pl |   2 +-
 tp/t/results/sectioning/semi_auto.pl               |   2 +-
 .../setfilename_on_top_and_after_node.pl           |   2 +-
 tp/t/results/sectioning/shortcontents.pl           |   2 +-
 tp/t/results/sectioning/space_in_node.pl           |   2 +-
 tp/t/results/sectioning/top_chapter_sections.pl    |   2 +-
 .../sectioning/top_no_argument_and_content.pl      |   2 +-
 .../results/sectioning/top_no_argument_and_node.pl |   2 +-
 .../sectioning/top_no_argument_and_top_node.pl     |   2 +-
 .../sectioning/top_node_no_menu_direction.pl       |   2 +-
 tp/t/results/sectioning/top_node_part_top.pl       |   2 +-
 tp/t/results/sectioning/top_node_up_url.pl         |   2 +-
 tp/t/results/sectioning/top_part_chapter.pl        |   2 +-
 tp/t/results/sectioning/top_without_node_nodes.pl  |   2 +-
 .../sectioning/top_without_node_sections.pl        |   2 +-
 .../transliterated_split_equivalent_nodes.pl       |   2 +-
 tp/t/results/sectioning/two_nodes_at_the_end.pl    |   2 +-
 .../sectioning/two_nodes_between_chapters.pl       |   2 +-
 .../sectioning/two_unnumbered_no_argument.pl       |   2 +-
 tp/t/results/sectioning/unknown_node_in_menu.pl    |   2 +-
 .../sectioning/unnumbered_before_node_top_top.pl   |   2 +-
 tp/t/results/sectioning/unnumbered_before_top.pl   |   2 +-
 .../sectioning/unnumbered_before_top_node.pl       |   2 +-
 tp/t/results/sectioning/unnumbered_no_argument.pl  |   2 +-
 .../unnumbered_top_without_node_nodes.pl           |   2 +-
 .../unnumbered_top_without_node_sections.pl        |   2 +-
 tp/t/results/value/bad_syntax.pl                   |   2 +-
 tp/t/results/value/comment_on_set_line.pl          |   2 +-
 tp/t/results/value/empty_set.pl                    |   2 +-
 tp/t/results/value/empty_value_in_line.pl          |   2 +-
 tp/t/results/value/ignored_value_definition.pl     |   2 +-
 tp/t/results/value/not_only_characters.pl          |   2 +-
 tp/t/results/value/set_flag_command_equivalent.pl  |   2 +-
 tp/t/results/value/set_form_feed.pl                |   2 +-
 tp/t/results/value/set_in_item_missing_line.pl     |   2 +-
 tp/t/results/value/set_on_item_line.pl             |   2 +-
 tp/t/results/value/simple.pl                       |   2 +-
 tp/t/results/value/spaces_before_value.pl          |   2 +-
 tp/t/results/value/value_after_accent.pl           |   2 +-
 tp/t/results/value/value_in_index_commands.pl      |   2 +-
 .../value/value_in_invalid_documentencoding.pl     |   2 +-
 tp/t/results/value/value_in_misc_commands.pl       |   2 +-
 tp/t/results/value/value_in_node.pl                |   2 +-
 tp/t/results/value/value_node_directions.pl        |   2 +-
 tp/t/results/value/value_zero.pl                   |   2 +-
 .../value_and_macro/comma_value_in_macro_arg.pl    |   2 +-
 tp/t/results/value_and_macro/macro_in_value.pl     |   2 +-
 .../results/value_and_macro/value_in_macro_body.pl |   2 +-
 .../value_and_macro/value_in_macro_formal_arg.pl   |   2 +-
 tp/t/results/verb/comments.pl                      |   2 +-
 tp/t/results/verb/end_of_line.pl                   |   2 +-
 tp/t/results/verb/multiline.pl                     |   2 +-
 tp/t/results/verb/nested.pl                        |   2 +-
 tp/t/results/verb/simple.pl                        |   2 +-
 .../verb/verb_and_char_end_of_line_not_closed.pl   |   2 +-
 .../results/verb/verb_at_end_of_line_not_closed.pl |   2 +-
 tp/t/results/verb/verb_not_closed.pl               |   2 +-
 tp/t/results/verb/verb_not_closed_with_char.pl     |   2 +-
 .../brace_commands_spaces_end_of_lines.pl          |   2 +-
 tp/t/results/xml_tests/commands_and_spaces.pl      |   2 +-
 tp/t/results/xml_tests/comments_end_lines.pl       |   2 +-
 .../xml_tests/comments_on_block_command_lines.pl   |   2 +-
 .../xml_tests/comments_on_misc_command_line.pl     |   2 +-
 tp/t/results/xml_tests/image_inline_or_not.pl      |   2 +-
 tp/t/results/xml_tests/lone_bye.pl                 |   2 +-
 tp/t/results/xml_tests/macro_and_args.pl           |   2 +-
 tp/t/results/xml_tests/node_and_bye.pl             |   2 +-
 tp/t/results/xml_tests/node_no_section.pl          |   2 +-
 tp/t/results/xml_tests/raw.pl                      |   2 +-
 tp/t/results/xml_tests/raw_and_comments.pl         |   2 +-
 tp/t/results/xml_tests/spaces_info_lost.pl         |   2 +-
 tp/t/results/xtable/accent_on_table_line.pl        |   2 +-
 tp/t/results/xtable/block_commands_in_table.pl     |   2 +-
 .../xtable/comment_and_itemx_before_item.pl        |   2 +-
 .../results/xtable/definfoenclose_on_table_line.pl |   2 +-
 tp/t/results/xtable/empty_item_itemx.pl            |   2 +-
 tp/t/results/xtable/headitem_in_table.pl           |   2 +-
 .../results/xtable/inter_item_commands_in_table.pl |   2 +-
 .../inter_item_commands_in_table_in_example.pl     |   2 +-
 .../xtable/invalid_command_and_brace_in_table.pl   |   2 +-
 tp/t/results/xtable/itemx_before_item.pl           |   2 +-
 tp/t/results/xtable/lone_end_table.pl              |   2 +-
 tp/t/results/xtable/long_item.pl                   |   2 +-
 .../xtable/no_arg_brace_command_on_table_line.pl   |   2 +-
 tp/t/results/xtable/no_argument_for_table.pl       |   2 +-
 tp/t/results/xtable/table_nested.pl                |   2 +-
 tp/t/results/xtable/text_between_item_itemx.pl     |   2 +-
 tp/t/results/xtable/title_and_itemx_before_item.pl |   2 +-
 1181 files changed, 1253 insertions(+), 1232 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 19d41821d9..e94669163b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2021-12-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/ParserNonXS.pm (parse_texi_text, parse_texi_file)
+       (_close_commands, _setup_document_root_and_before_node_section),
+       tp/Texinfo/XS/parsetexi/Parsetexi.pm
+       (_maybe_ignore_before_setfilename, parse_texi_file),
+       tp/Texinfo/XS/parsetexi/api.c (parse_string),
+       tp/Texinfo/XS/parsetexi/close.c (close_commands),
+       tp/Texinfo/XS/parsetexi/element_types.txt,
+       tp/Texinfo/XS/parsetexi/parser.c
+       (setup_document_root_and_before_node_section, parse_texi_file,
+       begin_paragraph_p),
+       tp/Texinfo/XS/misc.c (xs_abort_empty_line),
+       tp/Texinfo/Convert/Plaintext.pm (_convert):
+       rename text_root type as before_node_section.
+
 2021-12-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/IXIN.pm (output_ixin),
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index ec7ca78d32..81829fcfcb 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -3169,7 +3169,7 @@ sub _convert($$)
       $self->{'format_context'}->[-1]->{'row_counts'} = [];
       $self->{'format_context'}->[-1]->{'row_empty_lines_count'} 
         = $self->{'empty_lines_count'};
-    } elsif ($element->{'type'} eq 'text_root') {
+    } elsif ($element->{'type'} eq 'before_node_section') {
       $self->{'text_before_first_node'} = $result;
     }
   }
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 6e57f0ae8c..8fecd4ef95 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -276,7 +276,7 @@ foreach my $brace_command (keys (%brace_commands)) {
 }
 
 my %type_with_paragraph;
-foreach my $type ('before_item', 'text_root', 'document_root',
+foreach my $type ('before_item', 'before_node_section', 'document_root',
                   'brace_command_context') {
   $type_with_paragraph{$type} = 1;
 }
@@ -874,9 +874,10 @@ sub parse_texi_text($$;$$$$)
   $self = parser() if (!defined($self));
   $self->{'input'} = [{'pending' => $lines_array}];
 
-  my ($document_root, $text_root) = _setup_document_root_and_text_root();
+  my ($document_root, $before_node_section)
+     = _setup_document_root_and_before_node_section();
 
-  my $tree = $self->_parse_texi($document_root, $text_root);
+  my $tree = $self->_parse_texi($document_root, $before_node_section);
 
   $self->_set_global_informations();
 
@@ -945,16 +946,18 @@ sub parse_texi_file($$)
       last;
     }
   }
-  my ($document_root, $text_root) = _setup_document_root_and_text_root();
+  my ($document_root, $before_node_section)
+     = _setup_document_root_and_before_node_section();
   if (@first_lines) {
-    push @{$text_root->{'contents'}}, {'type' => 'preamble_before_beginning',
-                                       'contents' => [], 'parent' => 
$text_root };
+    push @{$before_node_section->{'contents'}},
+                              {'type' => 'preamble_before_beginning',
+                               'contents' => [], 'parent' => 
$before_node_section };
     foreach my $line (@first_lines) {
-      push @{$text_root->{'contents'}->[-1]->{'contents'}},
-                                   { 'text' => $line,
-                                     'type' => 'text_before_beginning',
-                                     'parent' => $text_root->{'contents'}->[-1]
-                                   };
+      push @{$before_node_section->{'contents'}->[-1]->{'contents'}},
+                          { 'text' => $line,
+                            'type' => 'text_before_beginning',
+                            'parent' => 
$before_node_section->{'contents'}->[-1]
+                          };
     }
   }
   my ($directories, $suffix);
@@ -970,22 +973,22 @@ sub parse_texi_file($$)
   $self->{'info'}->{'input_file_name'} = $file_name;
   $self->{'info'}->{'input_directory'} = $directories;
   
-  my $tree = $self->_parse_texi($document_root, $text_root);
+  my $tree = $self->_parse_texi($document_root, $before_node_section);
 
   # Put everything before @setfilename in a special type.  This allows to
   # ignore everything before @setfilename.
   if ($self->{'IGNORE_BEFORE_SETFILENAME'}
       and $self->{'extra'}->{'setfilename'}
-      and $self->{'extra'}->{'setfilename'}->{'parent'} eq $text_root) {
+      and $self->{'extra'}->{'setfilename'}->{'parent'} eq 
$before_node_section) {
     my $before_setfilename = {'type' => 'preamble_before_setfilename',
-                              'parent' => $text_root,
+                              'parent' => $before_node_section,
                               'contents' => []};
-    while ($text_root->{'contents'}->[0] ne $self->{'extra'}->{'setfilename'}) 
{
-      my $content = shift @{$text_root->{'contents'}};
+    while ($before_node_section->{'contents'}->[0] ne 
$self->{'extra'}->{'setfilename'}) {
+      my $content = shift @{$before_node_section->{'contents'}};
       $content->{'parent'} = $before_setfilename;
       push @{$before_setfilename->{'contents'}}, $content;
     }
-    unshift (@{$text_root->{'contents'}}, $before_setfilename)
+    unshift (@{$before_node_section->{'contents'}}, $before_setfilename)
       if (@{$before_setfilename->{'contents'}});
   }
 
@@ -1803,7 +1806,8 @@ sub _close_commands($$$;$$)
          # Stop if at the root
          and $current->{'parent'}
          # Stop if at a type at the root
-         and not ($current->{'type'} and $current->{'type'} eq 'text_root')
+         and not ($current->{'type'}
+                  and $current->{'type'} eq 'before_node_section')
      # Stop if in a root command
      # or in a context_brace_commands and searching for a specific 
      # end block command (with $closed_command set).  
@@ -3666,12 +3670,13 @@ sub _check_valid_nesting {
   }
 }
 
-sub _setup_document_root_and_text_root()
+sub _setup_document_root_and_before_node_section()
 {
-  my $text_root = { 'contents' => [], 'type' => 'text_root' };
-  my $document_root = { 'contents' => [$text_root], 'type' => 'document_root' 
};
-  $text_root->{'parent'} = $document_root;
-  return ($document_root, $text_root);
+  my $before_node_section = { 'contents' => [], 'type' => 
'before_node_section' };
+  my $document_root = { 'contents' => [$before_node_section],
+                        'type' => 'document_root' };
+  $before_node_section->{'parent'} = $document_root;
+  return ($document_root, $before_node_section);
 }
 
 # the main subroutine
@@ -6666,10 +6671,10 @@ C<root_line> is the type of the root tree when parsing 
Texinfo line
 fragments using C<parse_texi_line>.  C<document_root> is the document
 root otherwise.
 
-C<document_root> first content should be C<text_root>, then nodes and
+C<document_root> first content should be C<before_node_section>, then nodes and
 sections @-commands elements, and also C<@bye> element.
 
-=item text_root
+=item before_node_section
 
 Content before nodes and sectioning commands at the beginning of 
C<document_root>.
 
diff --git a/tp/Texinfo/XS/misc.c b/tp/Texinfo/XS/misc.c
index 5f1d84a5b8..1501ef87b3 100644
--- a/tp/Texinfo/XS/misc.c
+++ b/tp/Texinfo/XS/misc.c
@@ -156,7 +156,7 @@ xs_abort_empty_line (HV *self, HV *current, SV 
*additional_spaces_in)
          one of these types. */
       if (current_type
           && strcmp (current_type, "before_item")
-          && strcmp (current_type, "text_root")
+          && strcmp (current_type, "before_node_section")
           && strcmp (current_type, "document_root")
           && strcmp (current_type, "brace_command_context"))
         goto delete_type;
diff --git a/tp/Texinfo/XS/parsetexi/Parsetexi.pm 
b/tp/Texinfo/XS/parsetexi/Parsetexi.pm
index f48d54ad84..448145a5f7 100644
--- a/tp/Texinfo/XS/parsetexi/Parsetexi.pm
+++ b/tp/Texinfo/XS/parsetexi/Parsetexi.pm
@@ -210,27 +210,27 @@ use File::Basename; # for fileparse
 # Put everything before @setfilename in a special type.  This allows
 # ignoring everything before @setfilename.
 sub _maybe_ignore_before_setfilename {
-  my ($self, $text_root) = @_;
+  my ($self, $before_node_section) = @_;
 
   if ($self->{'IGNORE_BEFORE_SETFILENAME'}
       and $self->{'extra'}->{'setfilename'}
-      and $self->{'extra'}->{'setfilename'}->{'parent'} eq $text_root) {
+      and $self->{'extra'}->{'setfilename'}->{'parent'} eq 
$before_node_section) {
     my $before_setfilename = {'type' => 'preamble_before_setfilename',
-      'parent' => $text_root,
+      'parent' => $before_node_section,
       'contents' => []};
-    while (@{$text_root->{'contents'}}
-        and (!$text_root->{'contents'}->[0]->{'cmdname'}
-          or $text_root->{'contents'}->[0]->{'cmdname'} ne 'setfilename')) {
-      my $content = shift @{$text_root->{'contents'}};
+    while (@{$before_node_section->{'contents'}}
+        and (!$before_node_section->{'contents'}->[0]->{'cmdname'}
+          or $before_node_section->{'contents'}->[0]->{'cmdname'} ne 
'setfilename')) {
+      my $content = shift @{$before_node_section->{'contents'}};
       $content->{'parent'} = $before_setfilename;
       push @{$before_setfilename->{'contents'}}, $content;
     }
-    if (!@{$text_root->{'contents'}}) {
+    if (!@{$before_node_section->{'contents'}}) {
       # not found
-      #splice @{$text_root->{'contents'}}, 0, 0, @$before_setfilename;
-      $text_root->{'contents'} = $before_setfilename->{'contents'};
+      #splice @{$before_node_section->{'contents'}}, 0, 0, 
@$before_setfilename;
+      $before_node_section->{'contents'} = $before_setfilename->{'contents'};
     } else {
-      unshift (@{$text_root->{'contents'}}, $before_setfilename)
+      unshift (@{$before_node_section->{'contents'}}, $before_setfilename)
         if (@{$before_setfilename->{'contents'}});
     }
   }
@@ -256,9 +256,9 @@ sub parse_texi_file ($$)
 
   _associate_node_menus ($self, $TREE);
 
-  my $text_root = $TREE->{'contents'}->[0];
+  my $before_node_section = $TREE->{'contents'}->[0];
 
-  _maybe_ignore_before_setfilename($self, $text_root);
+  _maybe_ignore_before_setfilename($self, $before_node_section);
 
   ############################################################
 
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index b4ee6e0e08..4c7549125e 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -185,12 +185,12 @@ parse_string (char *string)
 void
 parse_text (char *string)
 {
-  ELEMENT *text_root = setup_document_root_and_text_root ();
-  ELEMENT *document_root = text_root->parent;
+  ELEMENT *before_node_section = setup_document_root_and_before_node_section 
();
+  ELEMENT *document_root = before_node_section->parent;
 
   reset_parser_except_conf ();
   input_push_text_with_line_nos (strdup (string), 1);
-  Root = parse_texi (document_root, text_root);
+  Root = parse_texi (document_root, before_node_section);
 }
 
 
@@ -301,7 +301,7 @@ element_to_perl_hash (ELEMENT *e)
      created.  Largely by trial and error to match the Perl code.  Some of
      them don't make sense, like @arrow{}, @image, or for accent commands. */
   if (e->contents.number > 0
-      || e->type == ET_text_root
+      || e->type == ET_before_node_section
       || e->type == ET_root_line
       || e->type == ET_bracketed
       || e->type == ET_bracketed_def_content
diff --git a/tp/Texinfo/XS/parsetexi/close.c b/tp/Texinfo/XS/parsetexi/close.c
index 7ae9348c8d..9336b69826 100644
--- a/tp/Texinfo/XS/parsetexi/close.c
+++ b/tp/Texinfo/XS/parsetexi/close.c
@@ -375,7 +375,7 @@ close_commands (ELEMENT *current, enum command_id 
closed_command,
      /* Stop if in a root command. */
          && !(current->cmd && command_flags(current) & CF_root)
      /* Stop if at a type at the root */
-         && !(current->type == ET_text_root))
+         && !(current->type == ET_before_node_section))
     {
       close_command_cleanup (current);
       current = close_current (current, closed_command, interrupting);
diff --git a/tp/Texinfo/XS/parsetexi/element_types.c 
b/tp/Texinfo/XS/parsetexi/element_types.c
index 6f5ed2333e..248f730625 100644
--- a/tp/Texinfo/XS/parsetexi/element_types.c
+++ b/tp/Texinfo/XS/parsetexi/element_types.c
@@ -22,9 +22,9 @@ char *element_type_names[] = {
 "after_description_line",
 "spaces",
 "spaces_inserted",
-"text_root",
 "document_root",
 "root_line",
+"before_node_section",
 "preamble_before_beginning",
 "preamble_before_setfilename",
 "paragraph",
diff --git a/tp/Texinfo/XS/parsetexi/element_types.h 
b/tp/Texinfo/XS/parsetexi/element_types.h
index 5c0830aed9..3ba47eed6c 100644
--- a/tp/Texinfo/XS/parsetexi/element_types.h
+++ b/tp/Texinfo/XS/parsetexi/element_types.h
@@ -25,9 +25,9 @@ ET_space_at_end_menu_node,
 ET_after_description_line,
 ET_spaces,
 ET_spaces_inserted,
-ET_text_root,
 ET_document_root,
 ET_root_line,
+ET_before_node_section,
 ET_preamble_before_beginning,
 ET_preamble_before_setfilename,
 ET_paragraph,
diff --git a/tp/Texinfo/XS/parsetexi/element_types.txt 
b/tp/Texinfo/XS/parsetexi/element_types.txt
index 30555c91ae..f4ad09c9d7 100644
--- a/tp/Texinfo/XS/parsetexi/element_types.txt
+++ b/tp/Texinfo/XS/parsetexi/element_types.txt
@@ -42,9 +42,9 @@ spaces
 spaces_inserted
 
 # Other special types
-text_root
 document_root
 root_line
+before_node_section
 preamble_before_beginning
 preamble_before_setfilename
 paragraph
diff --git a/tp/Texinfo/XS/parsetexi/parser.c b/tp/Texinfo/XS/parsetexi/parser.c
index 81279282f1..8e21ddff15 100644
--- a/tp/Texinfo/XS/parsetexi/parser.c
+++ b/tp/Texinfo/XS/parsetexi/parser.c
@@ -337,12 +337,12 @@ wipe_global_info (void)
 }
 
 ELEMENT *
-setup_document_root_and_text_root ()
+setup_document_root_and_before_node_section ()
 {
-  ELEMENT *text_root = new_element (ET_text_root);
+  ELEMENT *before_node_section = new_element (ET_before_node_section);
   ELEMENT *document_root = new_element (ET_document_root);
-  add_to_element_contents (document_root, text_root);
-  return text_root;
+  add_to_element_contents (document_root, before_node_section);
+  return before_node_section;
 }
 
 
@@ -351,9 +351,9 @@ parse_texi_file (char *filename)
 {
   char *p, *q;
   char *linep, *line = 0;
-  ELEMENT *text_root = setup_document_root_and_text_root ();
+  ELEMENT *before_node_section = setup_document_root_and_before_node_section 
();
   ELEMENT *preamble_before_beginning = 0;
-  ELEMENT *document_root = text_root->parent;
+  ELEMENT *document_root = before_node_section->parent;
   char c;
 
   int status;
@@ -410,9 +410,9 @@ parse_texi_file (char *filename)
     }
 
   if (preamble_before_beginning)
-    add_to_element_contents (text_root, preamble_before_beginning);
+    add_to_element_contents (before_node_section, preamble_before_beginning);
 
-  return parse_texi (document_root, text_root);
+  return parse_texi (document_root, before_node_section);
 }
 
 
@@ -421,7 +421,7 @@ begin_paragraph_p (ELEMENT *current)
 {
   return (current->type == ET_NONE /* "True for @-commands" */
            || current->type == ET_before_item
-           || current->type == ET_text_root
+           || current->type == ET_before_node_section
            || current->type == ET_document_root
            || current->type == ET_brace_command_context)
          && in_paragraph_context (current_context ());
diff --git a/tp/Texinfo/XS/parsetexi/parser.h b/tp/Texinfo/XS/parsetexi/parser.h
index fb309f9747..e6572a5e36 100644
--- a/tp/Texinfo/XS/parsetexi/parser.h
+++ b/tp/Texinfo/XS/parsetexi/parser.h
@@ -191,7 +191,7 @@ void wipe_global_info (void);
 
 extern COUNTER count_remaining_args, count_items, count_cells;
 
-ELEMENT *setup_document_root_and_text_root (void);
+ELEMENT *setup_document_root_and_before_node_section (void);
 
 /* In multitable.c */
 ELEMENT *item_line_parent (ELEMENT *current);
diff --git a/tp/t/accents.t b/tp/t/accents.t
index 36e2d6cc27..d9fdb71c17 100644
--- a/tp/t/accents.t
+++ b/tp/t/accents.t
@@ -20,9 +20,9 @@ ok(1, "modules loading");
 
 sub _find_accent($)
 {
-  my $text_root = shift;
-  my $current = $text_root;
-  while ($current->{'type'} and ($current->{'type'} eq 'text_root'
+  my $root = shift;
+  my $current = $root;
+  while ($current->{'type'} and ($current->{'type'} eq 'before_node_section'
                                  or $current->{'type'} eq 'document_root'
                                  or $current->{'type'} eq 'paragraph')) {
     $current = $current->{'contents'}->[0];
@@ -37,10 +37,10 @@ sub test_accent_stack ($)
   my $name = $test->[1];
   my $reference = $test->[2];
   my $parser = Texinfo::Parser::parser();
-  my $text_root = $parser->parse_texi_text($texi);
-  my $tree = _find_accent($text_root);
+  my $root = $parser->parse_texi_text($texi);
+  my $accent_tree = _find_accent($root);
   my ($contents, $commands_stack) = 
-    Texinfo::Convert::Utils::find_innermost_accent_contents($tree);
+    Texinfo::Convert::Utils::find_innermost_accent_contents($accent_tree);
   my $text = Texinfo::Convert::Text::convert_to_text({'contents' => 
$contents});
   my @stack = map {$_->{'cmdname'}} @$commands_stack;
   if (defined($reference)) {
@@ -86,11 +86,11 @@ sub test_enable_encoding ($)
   my $reference_xml_numeric_entity = $test->[4];
   my $reference_unicode = $test->[5];
   my $parser = Texinfo::Parser::parser();
-  my $text_root = $parser->parse_texi_text($texi);
-  my $tree = _find_accent($text_root);
+  my $root = $parser->parse_texi_text($texi);
+  my $accent_tree = _find_accent($root);
 
   my ($contents, $commands_stack) = 
-    Texinfo::Convert::Utils::find_innermost_accent_contents($tree);
+    Texinfo::Convert::Utils::find_innermost_accent_contents($accent_tree);
   my $text = Texinfo::Convert::Text::convert_to_text({'contents' => 
$contents});
 
   my $result = 
@@ -100,13 +100,13 @@ sub test_enable_encoding ($)
 
   my $html_converter = Texinfo::Convert::HTML->converter();
   my $result_xml = Texinfo::Convert::Converter::xml_accents($html_converter, 
-                                                            $tree);
+                                                            $accent_tree);
   $html_converter->{'conf'}->{'USE_NUMERIC_ENTITY'} = 1;
   my $result_xml_numeric_entity
-      = Texinfo::Convert::Converter::xml_accents($html_converter, $tree);
+      = Texinfo::Convert::Converter::xml_accents($html_converter, 
$accent_tree);
 
   ($contents, $commands_stack) =
-    Texinfo::Convert::Utils::find_innermost_accent_contents($tree);
+    Texinfo::Convert::Utils::find_innermost_accent_contents($accent_tree);
   $text = Texinfo::Convert::Text::convert_to_text({'contents' => $contents},
                                {'enabled_encoding' => 'utf-8'});
   my $result_unicode = 
Texinfo::Convert::Unicode::_format_unicode_accents_stack(
diff --git a/tp/t/results/alias/alias_table_command.pl 
b/tp/t/results/alias/alias_table_command.pl
index caa302241e..974ebc4774 100644
--- a/tp/t/results/alias/alias_table_command.pl
+++ b/tp/t/results/alias/alias_table_command.pl
@@ -158,7 +158,7 @@ $result_trees{'alias_table_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/alias/bad_line.pl b/tp/t/results/alias/bad_line.pl
index 3882c5f034..5311365109 100644
--- a/tp/t/results/alias/bad_line.pl
+++ b/tp/t/results/alias/bad_line.pl
@@ -101,7 +101,7 @@ $result_trees{'bad_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/alias/block_command_alias.pl 
b/tp/t/results/alias/block_command_alias.pl
index bf65596984..69744edef8 100644
--- a/tp/t/results/alias/block_command_alias.pl
+++ b/tp/t/results/alias/block_command_alias.pl
@@ -109,7 +109,7 @@ $result_trees{'block_command_alias'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/alias/simple.pl b/tp/t/results/alias/simple.pl
index 8823c0fbcb..b05d6497c3 100644
--- a/tp/t/results/alias/simple.pl
+++ b/tp/t/results/alias/simple.pl
@@ -188,7 +188,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/empty.pl 
b/tp/t/results/columnfractions/empty.pl
index a0d68e56a0..1a659cb05a 100644
--- a/tp/t/results/columnfractions/empty.pl
+++ b/tp/t/results/columnfractions/empty.pl
@@ -84,7 +84,7 @@ $result_trees{'empty'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/empty_comment.pl 
b/tp/t/results/columnfractions/empty_comment.pl
index cae42eadc7..bc0710770d 100644
--- a/tp/t/results/columnfractions/empty_comment.pl
+++ b/tp/t/results/columnfractions/empty_comment.pl
@@ -101,7 +101,7 @@ $result_trees{'empty_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/good.pl 
b/tp/t/results/columnfractions/good.pl
index 15042a2fe6..34a95ffac0 100644
--- a/tp/t/results/columnfractions/good.pl
+++ b/tp/t/results/columnfractions/good.pl
@@ -95,7 +95,7 @@ $result_trees{'good'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/good_comment.pl 
b/tp/t/results/columnfractions/good_comment.pl
index 4f63001484..444fe8b1a9 100644
--- a/tp/t/results/columnfractions/good_comment.pl
+++ b/tp/t/results/columnfractions/good_comment.pl
@@ -111,7 +111,7 @@ $result_trees{'good_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/good_space_comment.pl 
b/tp/t/results/columnfractions/good_space_comment.pl
index 0235986fa5..e6ae6ff665 100644
--- a/tp/t/results/columnfractions/good_space_comment.pl
+++ b/tp/t/results/columnfractions/good_space_comment.pl
@@ -111,7 +111,7 @@ $result_trees{'good_space_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/invalid.pl 
b/tp/t/results/columnfractions/invalid.pl
index 350b7128bd..335d5424d1 100644
--- a/tp/t/results/columnfractions/invalid.pl
+++ b/tp/t/results/columnfractions/invalid.pl
@@ -89,7 +89,7 @@ $result_trees{'invalid'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/not_fraction.pl 
b/tp/t/results/columnfractions/not_fraction.pl
index e8f7869508..aa75a827d3 100644
--- a/tp/t/results/columnfractions/not_fraction.pl
+++ b/tp/t/results/columnfractions/not_fraction.pl
@@ -89,7 +89,7 @@ $result_trees{'not_fraction'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/out_of_multitable.pl 
b/tp/t/results/columnfractions/out_of_multitable.pl
index a434cc530a..81abdfcc92 100644
--- a/tp/t/results/columnfractions/out_of_multitable.pl
+++ b/tp/t/results/columnfractions/out_of_multitable.pl
@@ -39,7 +39,7 @@ $result_trees{'out_of_multitable'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/something_before_columnfractions.pl 
b/tp/t/results/columnfractions/something_before_columnfractions.pl
index c168a2c61d..58545cbc4b 100644
--- a/tp/t/results/columnfractions/something_before_columnfractions.pl
+++ b/tp/t/results/columnfractions/something_before_columnfractions.pl
@@ -98,7 +98,7 @@ $result_trees{'something_before_columnfractions'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/columnfractions/wrong_command.pl 
b/tp/t/results/columnfractions/wrong_command.pl
index a3436bc960..d68f37e522 100644
--- a/tp/t/results/columnfractions/wrong_command.pl
+++ b/tp/t/results/columnfractions/wrong_command.pl
@@ -107,7 +107,7 @@ $result_trees{'wrong_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/additional_space_in_end_conditional.pl 
b/tp/t/results/conditionals/additional_space_in_end_conditional.pl
index bb4376b0a1..4fcc8e9f48 100644
--- a/tp/t/results/conditionals/additional_space_in_end_conditional.pl
+++ b/tp/t/results/conditionals/additional_space_in_end_conditional.pl
@@ -10,7 +10,7 @@ $result_trees{'additional_space_in_end_conditional'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/conditionals/additional_space_in_end_conditional_expanded.pl 
b/tp/t/results/conditionals/additional_space_in_end_conditional_expanded.pl
index 37af171ceb..bb3b28a321 100644
--- a/tp/t/results/conditionals/additional_space_in_end_conditional_expanded.pl
+++ b/tp/t/results/conditionals/additional_space_in_end_conditional_expanded.pl
@@ -22,7 +22,7 @@ $result_trees{'additional_space_in_end_conditional_expanded'} 
= {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/bad_ifclear_argument.pl 
b/tp/t/results/conditionals/bad_ifclear_argument.pl
index 95680f333e..194157d0c4 100644
--- a/tp/t/results/conditionals/bad_ifclear_argument.pl
+++ b/tp/t/results/conditionals/bad_ifclear_argument.pl
@@ -17,7 +17,7 @@ $result_trees{'bad_ifclear_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/bad_ifset_argument.pl 
b/tp/t/results/conditionals/bad_ifset_argument.pl
index a24859276d..1b486e898f 100644
--- a/tp/t/results/conditionals/bad_ifset_argument.pl
+++ b/tp/t/results/conditionals/bad_ifset_argument.pl
@@ -10,7 +10,7 @@ $result_trees{'bad_ifset_argument'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/command_conditionals.pl 
b/tp/t/results/conditionals/command_conditionals.pl
index e8ec078490..5087ed7ca3 100644
--- a/tp/t/results/conditionals/command_conditionals.pl
+++ b/tp/t/results/conditionals/command_conditionals.pl
@@ -97,7 +97,7 @@ $result_trees{'command_conditionals'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/command_conditionals_user_defined.pl 
b/tp/t/results/conditionals/command_conditionals_user_defined.pl
index 367344f643..bb5218a120 100644
--- a/tp/t/results/conditionals/command_conditionals_user_defined.pl
+++ b/tp/t/results/conditionals/command_conditionals_user_defined.pl
@@ -260,7 +260,7 @@ $result_trees{'command_conditionals_user_defined'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/commands_in_ifset.pl 
b/tp/t/results/conditionals/commands_in_ifset.pl
index 4a44c34d58..3f53dec76d 100644
--- a/tp/t/results/conditionals/commands_in_ifset.pl
+++ b/tp/t/results/conditionals/commands_in_ifset.pl
@@ -23,7 +23,7 @@ $result_trees{'commands_in_ifset'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/comment_on_ifset_line.pl 
b/tp/t/results/conditionals/comment_on_ifset_line.pl
index 67dd42d5f1..2343f1df23 100644
--- a/tp/t/results/conditionals/comment_on_ifset_line.pl
+++ b/tp/t/results/conditionals/comment_on_ifset_line.pl
@@ -77,7 +77,7 @@ $result_trees{'comment_on_ifset_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/conditional_not_closed.pl 
b/tp/t/results/conditionals/conditional_not_closed.pl
index bec0b0986a..75d76beeb8 100644
--- a/tp/t/results/conditionals/conditional_not_closed.pl
+++ b/tp/t/results/conditionals/conditional_not_closed.pl
@@ -10,7 +10,7 @@ $result_trees{'conditional_not_closed'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/consecutive_conditionals.pl 
b/tp/t/results/conditionals/consecutive_conditionals.pl
index 42f09884ff..f056681204 100644
--- a/tp/t/results/conditionals/consecutive_conditionals.pl
+++ b/tp/t/results/conditionals/consecutive_conditionals.pl
@@ -47,7 +47,7 @@ $result_trees{'consecutive_conditionals'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/empty_ifclear.pl 
b/tp/t/results/conditionals/empty_ifclear.pl
index d749626814..3d6e65c48c 100644
--- a/tp/t/results/conditionals/empty_ifclear.pl
+++ b/tp/t/results/conditionals/empty_ifclear.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_ifclear'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/empty_ifset.pl 
b/tp/t/results/conditionals/empty_ifset.pl
index 09ecf32485..e08a9b9f13 100644
--- a/tp/t/results/conditionals/empty_ifset.pl
+++ b/tp/t/results/conditionals/empty_ifset.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_ifset'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/empty_ifset_in_ifset_no_set.pl 
b/tp/t/results/conditionals/empty_ifset_in_ifset_no_set.pl
index 56f76bf90b..1ca3db69d6 100644
--- a/tp/t/results/conditionals/empty_ifset_in_ifset_no_set.pl
+++ b/tp/t/results/conditionals/empty_ifset_in_ifset_no_set.pl
@@ -17,7 +17,7 @@ $result_trees{'empty_ifset_in_ifset_no_set'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/empty_ifset_in_ifset_set.pl 
b/tp/t/results/conditionals/empty_ifset_in_ifset_set.pl
index c50e2d1d11..4d0f0f80d6 100644
--- a/tp/t/results/conditionals/empty_ifset_in_ifset_set.pl
+++ b/tp/t/results/conditionals/empty_ifset_in_ifset_set.pl
@@ -79,7 +79,7 @@ $result_trees{'empty_ifset_in_ifset_set'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/empty_set_in_ifclear.pl 
b/tp/t/results/conditionals/empty_set_in_ifclear.pl
index b906f871e5..8bae540ccd 100644
--- a/tp/t/results/conditionals/empty_set_in_ifclear.pl
+++ b/tp/t/results/conditionals/empty_set_in_ifclear.pl
@@ -41,7 +41,7 @@ $result_trees{'empty_set_in_ifclear'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/empty_set_in_ifset.pl 
b/tp/t/results/conditionals/empty_set_in_ifset.pl
index cd9f79b266..5410ed8725 100644
--- a/tp/t/results/conditionals/empty_set_in_ifset.pl
+++ b/tp/t/results/conditionals/empty_set_in_ifset.pl
@@ -52,7 +52,7 @@ $result_trees{'empty_set_in_ifset'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/end_conditional_not_at_line_begining.pl 
b/tp/t/results/conditionals/end_conditional_not_at_line_begining.pl
index efc9c6a6f8..3d0790044d 100644
--- a/tp/t/results/conditionals/end_conditional_not_at_line_begining.pl
+++ b/tp/t/results/conditionals/end_conditional_not_at_line_begining.pl
@@ -10,7 +10,7 @@ $result_trees{'end_conditional_not_at_line_begining'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/end_ifset_in_format.pl 
b/tp/t/results/conditionals/end_ifset_in_format.pl
index c6cd7e5dea..b1c5e1bafe 100644
--- a/tp/t/results/conditionals/end_ifset_in_format.pl
+++ b/tp/t/results/conditionals/end_ifset_in_format.pl
@@ -183,7 +183,7 @@ $result_trees{'end_ifset_in_format'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/false_format_not_closed.pl 
b/tp/t/results/conditionals/false_format_not_closed.pl
index cd1cab5bb2..593ce1756b 100644
--- a/tp/t/results/conditionals/false_format_not_closed.pl
+++ b/tp/t/results/conditionals/false_format_not_closed.pl
@@ -33,7 +33,7 @@ $result_trees{'false_format_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/ifclear_in_ifset.pl 
b/tp/t/results/conditionals/ifclear_in_ifset.pl
index d105f4bffb..8d1ab1165c 100644
--- a/tp/t/results/conditionals/ifclear_in_ifset.pl
+++ b/tp/t/results/conditionals/ifclear_in_ifset.pl
@@ -35,7 +35,7 @@ $result_trees{'ifclear_in_ifset'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/ifclear_in_ifset_set.pl 
b/tp/t/results/conditionals/ifclear_in_ifset_set.pl
index 87e47a2c15..9cc5dad520 100644
--- a/tp/t/results/conditionals/ifclear_in_ifset_set.pl
+++ b/tp/t/results/conditionals/ifclear_in_ifset_set.pl
@@ -123,7 +123,7 @@ $result_trees{'ifclear_in_ifset_set'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/ifnot_format_conditional.pl 
b/tp/t/results/conditionals/ifnot_format_conditional.pl
index 8d7bafcf8f..5972ff0044 100644
--- a/tp/t/results/conditionals/ifnot_format_conditional.pl
+++ b/tp/t/results/conditionals/ifnot_format_conditional.pl
@@ -38,7 +38,7 @@ $result_trees{'ifnot_format_conditional'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/ifnotinfo_exception.pl 
b/tp/t/results/conditionals/ifnotinfo_exception.pl
index f958227114..4945921c70 100644
--- a/tp/t/results/conditionals/ifnotinfo_exception.pl
+++ b/tp/t/results/conditionals/ifnotinfo_exception.pl
@@ -10,7 +10,7 @@ $result_trees{'ifnotinfo_exception'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/ifset_in_command.pl 
b/tp/t/results/conditionals/ifset_in_command.pl
index 7f08dbad60..fe2ae17a6a 100644
--- a/tp/t/results/conditionals/ifset_in_command.pl
+++ b/tp/t/results/conditionals/ifset_in_command.pl
@@ -56,7 +56,7 @@ $result_trees{'ifset_in_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/ifset_nonalpha.pl 
b/tp/t/results/conditionals/ifset_nonalpha.pl
index 33a246442c..2dd8d2a99e 100644
--- a/tp/t/results/conditionals/ifset_nonalpha.pl
+++ b/tp/t/results/conditionals/ifset_nonalpha.pl
@@ -10,7 +10,7 @@ $result_trees{'ifset_nonalpha'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/ignore_not_closed.pl 
b/tp/t/results/conditionals/ignore_not_closed.pl
index d3dfcdd011..4c519fdc59 100644
--- a/tp/t/results/conditionals/ignore_not_closed.pl
+++ b/tp/t/results/conditionals/ignore_not_closed.pl
@@ -43,7 +43,7 @@ $result_trees{'ignore_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/ignored_in_ifset.pl 
b/tp/t/results/conditionals/ignored_in_ifset.pl
index e7bef8cba7..7ca5a5fb6b 100644
--- a/tp/t/results/conditionals/ignored_in_ifset.pl
+++ b/tp/t/results/conditionals/ignored_in_ifset.pl
@@ -138,7 +138,7 @@ $result_trees{'ignored_in_ifset'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/info_ifinfo_ifnotplaintext.pl 
b/tp/t/results/conditionals/info_ifinfo_ifnotplaintext.pl
index 6067ecb106..67335472bd 100644
--- a/tp/t/results/conditionals/info_ifinfo_ifnotplaintext.pl
+++ b/tp/t/results/conditionals/info_ifinfo_ifnotplaintext.pl
@@ -22,7 +22,7 @@ $result_trees{'info_ifinfo_ifnotplaintext'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/info_ifplaintext.pl 
b/tp/t/results/conditionals/info_ifplaintext.pl
index 21f214db27..17ff19147d 100644
--- a/tp/t/results/conditionals/info_ifplaintext.pl
+++ b/tp/t/results/conditionals/info_ifplaintext.pl
@@ -17,7 +17,7 @@ $result_trees{'info_ifplaintext'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/inlinefmtifelse_nesting.pl 
b/tp/t/results/conditionals/inlinefmtifelse_nesting.pl
index b6b1c30640..39fcc347d6 100644
--- a/tp/t/results/conditionals/inlinefmtifelse_nesting.pl
+++ b/tp/t/results/conditionals/inlinefmtifelse_nesting.pl
@@ -84,7 +84,7 @@ $result_trees{'inlinefmtifelse_nesting'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/inlineiffmtifelse_not_closed.pl 
b/tp/t/results/conditionals/inlineiffmtifelse_not_closed.pl
index c1f9477b60..4a7552bc05 100644
--- a/tp/t/results/conditionals/inlineiffmtifelse_not_closed.pl
+++ b/tp/t/results/conditionals/inlineiffmtifelse_not_closed.pl
@@ -48,7 +48,7 @@ $result_trees{'inlineiffmtifelse_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/conditionals/inlineiffmtifelse_not_closed_three_arg.pl 
b/tp/t/results/conditionals/inlineiffmtifelse_not_closed_three_arg.pl
index f012aa46ad..94913936bd 100644
--- a/tp/t/results/conditionals/inlineiffmtifelse_not_closed_three_arg.pl
+++ b/tp/t/results/conditionals/inlineiffmtifelse_not_closed_three_arg.pl
@@ -62,7 +62,7 @@ $result_trees{'inlineiffmtifelse_not_closed_three_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/inlineiffmtifelse_not_closed_two_arg.pl 
b/tp/t/results/conditionals/inlineiffmtifelse_not_closed_two_arg.pl
index d7ae1ce354..51f7bcbde8 100644
--- a/tp/t/results/conditionals/inlineiffmtifelse_not_closed_two_arg.pl
+++ b/tp/t/results/conditionals/inlineiffmtifelse_not_closed_two_arg.pl
@@ -48,7 +48,7 @@ $result_trees{'inlineiffmtifelse_not_closed_two_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/inlineifset_false_not_closed.pl 
b/tp/t/results/conditionals/inlineifset_false_not_closed.pl
index 4b6a266dbd..2017251abc 100644
--- a/tp/t/results/conditionals/inlineifset_false_not_closed.pl
+++ b/tp/t/results/conditionals/inlineifset_false_not_closed.pl
@@ -47,7 +47,7 @@ $result_trees{'inlineifset_false_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/macro_in_ifset.pl 
b/tp/t/results/conditionals/macro_in_ifset.pl
index c01356e477..39c3f48f72 100644
--- a/tp/t/results/conditionals/macro_in_ifset.pl
+++ b/tp/t/results/conditionals/macro_in_ifset.pl
@@ -79,7 +79,7 @@ $result_trees{'macro_in_ifset'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/macro_in_ifset_set.pl 
b/tp/t/results/conditionals/macro_in_ifset_set.pl
index e25b6e4b4e..cea00a05d2 100644
--- a/tp/t/results/conditionals/macro_in_ifset_set.pl
+++ b/tp/t/results/conditionals/macro_in_ifset_set.pl
@@ -166,7 +166,7 @@ $result_trees{'macro_in_ifset_set'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/many_conditionals.pl 
b/tp/t/results/conditionals/many_conditionals.pl
index a5a143ca03..a0aa384fb0 100644
--- a/tp/t/results/conditionals/many_conditionals.pl
+++ b/tp/t/results/conditionals/many_conditionals.pl
@@ -212,7 +212,7 @@ $result_trees{'many_conditionals'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/nested_ifset_ifclear.pl 
b/tp/t/results/conditionals/nested_ifset_ifclear.pl
index 46d7d937bb..918bd948d1 100644
--- a/tp/t/results/conditionals/nested_ifset_ifclear.pl
+++ b/tp/t/results/conditionals/nested_ifset_ifclear.pl
@@ -312,7 +312,7 @@ $result_trees{'nested_ifset_ifclear'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/nested_ignore.pl 
b/tp/t/results/conditionals/nested_ignore.pl
index 0c2fef7f69..972f866169 100644
--- a/tp/t/results/conditionals/nested_ignore.pl
+++ b/tp/t/results/conditionals/nested_ignore.pl
@@ -152,7 +152,7 @@ $result_trees{'nested_ignore'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/not_set.pl 
b/tp/t/results/conditionals/not_set.pl
index 6c58b69f69..c63cb9c85e 100644
--- a/tp/t/results/conditionals/not_set.pl
+++ b/tp/t/results/conditionals/not_set.pl
@@ -10,7 +10,7 @@ $result_trees{'not_set'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/plaintext_ifinfo.pl 
b/tp/t/results/conditionals/plaintext_ifinfo.pl
index 6bc057e3e4..b7ef377a40 100644
--- a/tp/t/results/conditionals/plaintext_ifinfo.pl
+++ b/tp/t/results/conditionals/plaintext_ifinfo.pl
@@ -28,7 +28,7 @@ $result_trees{'plaintext_ifinfo'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/plaintext_ifinfo_ifnotplaintext.pl 
b/tp/t/results/conditionals/plaintext_ifinfo_ifnotplaintext.pl
index 1ab2f4f121..55fa171819 100644
--- a/tp/t/results/conditionals/plaintext_ifinfo_ifnotplaintext.pl
+++ b/tp/t/results/conditionals/plaintext_ifinfo_ifnotplaintext.pl
@@ -10,7 +10,7 @@ $result_trees{'plaintext_ifinfo_ifnotplaintext'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/superfluous_argument_to_end.pl 
b/tp/t/results/conditionals/superfluous_argument_to_end.pl
index 59f1b08a9c..252770a8e9 100644
--- a/tp/t/results/conditionals/superfluous_argument_to_end.pl
+++ b/tp/t/results/conditionals/superfluous_argument_to_end.pl
@@ -22,7 +22,7 @@ $result_trees{'superfluous_argument_to_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/text_on_conditional_line.pl 
b/tp/t/results/conditionals/text_on_conditional_line.pl
index 6f2303a0ff..1845585ae9 100644
--- a/tp/t/results/conditionals/text_on_conditional_line.pl
+++ b/tp/t/results/conditionals/text_on_conditional_line.pl
@@ -10,7 +10,7 @@ $result_trees{'text_on_conditional_line'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/text_on_conditional_line_expanded.pl 
b/tp/t/results/conditionals/text_on_conditional_line_expanded.pl
index 5247225335..bb3301ceba 100644
--- a/tp/t/results/conditionals/text_on_conditional_line_expanded.pl
+++ b/tp/t/results/conditionals/text_on_conditional_line_expanded.pl
@@ -22,7 +22,7 @@ $result_trees{'text_on_conditional_line_expanded'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/txiinternalvalue.pl 
b/tp/t/results/conditionals/txiinternalvalue.pl
index 20baa6aa10..62f328c379 100644
--- a/tp/t/results/conditionals/txiinternalvalue.pl
+++ b/tp/t/results/conditionals/txiinternalvalue.pl
@@ -22,7 +22,7 @@ $result_trees{'txiinternalvalue'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/conditionals/user_defined_txiinternalvalue.pl 
b/tp/t/results/conditionals/user_defined_txiinternalvalue.pl
index fa39a20d93..174c573985 100644
--- a/tp/t/results/conditionals/user_defined_txiinternalvalue.pl
+++ b/tp/t/results/conditionals/user_defined_txiinternalvalue.pl
@@ -67,7 +67,7 @@ $result_trees{'user_defined_txiinternalvalue'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/accent_with_text.pl 
b/tp/t/results/converters_tests/accent_with_text.pl
index 068ede9614..4ed9c06100 100644
--- a/tp/t/results/converters_tests/accent_with_text.pl
+++ b/tp/t/results/converters_tests/accent_with_text.pl
@@ -192,7 +192,7 @@ $result_trees{'accent_with_text'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/at_commands_in_raw.pl 
b/tp/t/results/converters_tests/at_commands_in_raw.pl
index 2a5ee1001a..962fc3857c 100644
--- a/tp/t/results/converters_tests/at_commands_in_raw.pl
+++ b/tp/t/results/converters_tests/at_commands_in_raw.pl
@@ -10,7 +10,7 @@ $result_trees{'at_commands_in_raw'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/complex_nestings.pl 
b/tp/t/results/converters_tests/complex_nestings.pl
index 49193e11f7..cf0b2e9e24 100644
--- a/tp/t/results/converters_tests/complex_nestings.pl
+++ b/tp/t/results/converters_tests/complex_nestings.pl
@@ -10,7 +10,7 @@ $result_trees{'complex_nestings'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/email_table_command_as_argument.pl 
b/tp/t/results/converters_tests/email_table_command_as_argument.pl
index 67ea13df37..a0daad1c39 100644
--- a/tp/t/results/converters_tests/email_table_command_as_argument.pl
+++ b/tp/t/results/converters_tests/email_table_command_as_argument.pl
@@ -145,7 +145,7 @@ $result_trees{'email_table_command_as_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/empty_accent.pl 
b/tp/t/results/converters_tests/empty_accent.pl
index 0d17c37eff..24f2df8fbb 100644
--- a/tp/t/results/converters_tests/empty_accent.pl
+++ b/tp/t/results/converters_tests/empty_accent.pl
@@ -39,7 +39,7 @@ $result_trees{'empty_accent'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/enumerate_above_ten.pl 
b/tp/t/results/converters_tests/enumerate_above_ten.pl
index 4009be46e8..211abedf51 100644
--- a/tp/t/results/converters_tests/enumerate_above_ten.pl
+++ b/tp/t/results/converters_tests/enumerate_above_ten.pl
@@ -99,7 +99,7 @@ $result_trees{'enumerate_above_ten'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/footnote_no_number.pl 
b/tp/t/results/converters_tests/footnote_no_number.pl
index 9d5764515e..c2b035ab1b 100644
--- a/tp/t/results/converters_tests/footnote_no_number.pl
+++ b/tp/t/results/converters_tests/footnote_no_number.pl
@@ -10,7 +10,7 @@ $result_trees{'footnote_no_number'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/footnote_no_number_separate.pl 
b/tp/t/results/converters_tests/footnote_no_number_separate.pl
index a95e08601f..76d6efd0b3 100644
--- a/tp/t/results/converters_tests/footnote_no_number_separate.pl
+++ b/tp/t/results/converters_tests/footnote_no_number_separate.pl
@@ -10,7 +10,7 @@ $result_trees{'footnote_no_number_separate'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/image_extension.pl 
b/tp/t/results/converters_tests/image_extension.pl
index 39d3c04e21..b6af4034ee 100644
--- a/tp/t/results/converters_tests/image_extension.pl
+++ b/tp/t/results/converters_tests/image_extension.pl
@@ -66,7 +66,7 @@ $result_trees{'image_extension'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/image_formatting.pl 
b/tp/t/results/converters_tests/image_formatting.pl
index 908edd749f..263e451dae 100644
--- a/tp/t/results/converters_tests/image_formatting.pl
+++ b/tp/t/results/converters_tests/image_formatting.pl
@@ -10,7 +10,7 @@ $result_trees{'image_formatting'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/image_with_spaces.pl 
b/tp/t/results/converters_tests/image_with_spaces.pl
index 5bedb3964d..a52b24cded 100644
Binary files a/tp/t/results/converters_tests/image_with_spaces.pl and 
b/tp/t/results/converters_tests/image_with_spaces.pl differ
diff --git a/tp/t/results/converters_tests/index_entry_in_preformatted.pl 
b/tp/t/results/converters_tests/index_entry_in_preformatted.pl
index f7968ea2ab..0aff4c4ff7 100644
--- a/tp/t/results/converters_tests/index_entry_in_preformatted.pl
+++ b/tp/t/results/converters_tests/index_entry_in_preformatted.pl
@@ -10,7 +10,7 @@ $result_trees{'index_entry_in_preformatted'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/inline.pl 
b/tp/t/results/converters_tests/inline.pl
index 1b228b27da..6bff3ff880 100644
--- a/tp/t/results/converters_tests/inline.pl
+++ b/tp/t/results/converters_tests/inline.pl
@@ -711,7 +711,7 @@ $result_trees{'inline'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/inline_expand_tex.pl 
b/tp/t/results/converters_tests/inline_expand_tex.pl
index 85a07929b6..456023c3d9 100644
--- a/tp/t/results/converters_tests/inline_expand_tex.pl
+++ b/tp/t/results/converters_tests/inline_expand_tex.pl
@@ -557,7 +557,7 @@ $result_trees{'inline_expand_tex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/inlinefmtifelse.pl 
b/tp/t/results/converters_tests/inlinefmtifelse.pl
index 5c30901662..271acdc0fa 100644
--- a/tp/t/results/converters_tests/inlinefmtifelse.pl
+++ b/tp/t/results/converters_tests/inlinefmtifelse.pl
@@ -565,7 +565,7 @@ $result_trees{'inlinefmtifelse'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/inlineifsetifclear.pl 
b/tp/t/results/converters_tests/inlineifsetifclear.pl
index f01df87629..712c68ca8a 100644
--- a/tp/t/results/converters_tests/inlineifsetifclear.pl
+++ b/tp/t/results/converters_tests/inlineifsetifclear.pl
@@ -241,7 +241,7 @@ $result_trees{'inlineifsetifclear'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/line_breaks.pl 
b/tp/t/results/converters_tests/line_breaks.pl
index d74af3b7b1..230a923f12 100644
--- a/tp/t/results/converters_tests/line_breaks.pl
+++ b/tp/t/results/converters_tests/line_breaks.pl
@@ -465,7 +465,7 @@ $result_trees{'line_breaks'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/normal_font_in_monospace.pl 
b/tp/t/results/converters_tests/normal_font_in_monospace.pl
index d5330623a4..51f02cedf1 100644
--- a/tp/t/results/converters_tests/normal_font_in_monospace.pl
+++ b/tp/t/results/converters_tests/normal_font_in_monospace.pl
@@ -206,7 +206,7 @@ $result_trees{'normal_font_in_monospace'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/converters_tests/printindex_merged_indices_code_style.pl 
b/tp/t/results/converters_tests/printindex_merged_indices_code_style.pl
index 9dbabf4724..6830248f56 100644
--- a/tp/t/results/converters_tests/printindex_merged_indices_code_style.pl
+++ b/tp/t/results/converters_tests/printindex_merged_indices_code_style.pl
@@ -10,7 +10,7 @@ $result_trees{'printindex_merged_indices_code_style'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/raw_block_commands.pl 
b/tp/t/results/converters_tests/raw_block_commands.pl
index 407fc9cd63..13fd84809e 100644
--- a/tp/t/results/converters_tests/raw_block_commands.pl
+++ b/tp/t/results/converters_tests/raw_block_commands.pl
@@ -475,7 +475,7 @@ $result_trees{'raw_block_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/raw_block_commands_expand_tex.pl 
b/tp/t/results/converters_tests/raw_block_commands_expand_tex.pl
index 132f603fd3..f3602fdab0 100644
--- a/tp/t/results/converters_tests/raw_block_commands_expand_tex.pl
+++ b/tp/t/results/converters_tests/raw_block_commands_expand_tex.pl
@@ -475,7 +475,7 @@ $result_trees{'raw_block_commands_expand_tex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/ref_error_formatting.pl 
b/tp/t/results/converters_tests/ref_error_formatting.pl
index 859a6a0f54..bf9032e2c3 100644
--- a/tp/t/results/converters_tests/ref_error_formatting.pl
+++ b/tp/t/results/converters_tests/ref_error_formatting.pl
@@ -3552,7 +3552,7 @@ $result_trees{'ref_error_formatting'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/ref_in_sectioning.pl 
b/tp/t/results/converters_tests/ref_in_sectioning.pl
index c88ec2c840..7a725f5d19 100644
--- a/tp/t/results/converters_tests/ref_in_sectioning.pl
+++ b/tp/t/results/converters_tests/ref_in_sectioning.pl
@@ -34,7 +34,7 @@ $result_trees{'ref_in_sectioning'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/refs_formatting.pl 
b/tp/t/results/converters_tests/refs_formatting.pl
index f4c9289155..fbd7547012 100644
--- a/tp/t/results/converters_tests/refs_formatting.pl
+++ b/tp/t/results/converters_tests/refs_formatting.pl
@@ -10,7 +10,7 @@ $result_trees{'refs_formatting'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/simplest_no_node_section.pl 
b/tp/t/results/converters_tests/simplest_no_node_section.pl
index 5fc290bd15..b03136464d 100644
--- a/tp/t/results/converters_tests/simplest_no_node_section.pl
+++ b/tp/t/results/converters_tests/simplest_no_node_section.pl
@@ -95,7 +95,7 @@ $result_trees{'simplest_no_node_section'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl 
b/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
index da2b42f691..eab7cd8803 100644
--- a/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
+++ b/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
@@ -17,7 +17,7 @@ $result_trees{'some_at_commands_in_ref_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/sp_in_example.pl 
b/tp/t/results/converters_tests/sp_in_example.pl
index 454a498fc2..dbd63d0b55 100644
--- a/tp/t/results/converters_tests/sp_in_example.pl
+++ b/tp/t/results/converters_tests/sp_in_example.pl
@@ -292,7 +292,7 @@ $result_trees{'sp_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/spaces_in_empty_node_names.pl 
b/tp/t/results/converters_tests/spaces_in_empty_node_names.pl
index 70610d6e35..796194a814 100644
--- a/tp/t/results/converters_tests/spaces_in_empty_node_names.pl
+++ b/tp/t/results/converters_tests/spaces_in_empty_node_names.pl
@@ -10,7 +10,7 @@ $result_trees{'spaces_in_empty_node_names'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/spaces_in_node_names.pl 
b/tp/t/results/converters_tests/spaces_in_node_names.pl
index 38d056e5e1..5402fea745 100644
--- a/tp/t/results/converters_tests/spaces_in_node_names.pl
+++ b/tp/t/results/converters_tests/spaces_in_node_names.pl
@@ -10,7 +10,7 @@ $result_trees{'spaces_in_node_names'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/table_in_display_in_example.pl 
b/tp/t/results/converters_tests/table_in_display_in_example.pl
index 60bf2c3ed6..1c3d3892b8 100644
--- a/tp/t/results/converters_tests/table_in_display_in_example.pl
+++ b/tp/t/results/converters_tests/table_in_display_in_example.pl
@@ -243,7 +243,7 @@ $result_trees{'table_in_display_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/table_in_example_in_display.pl 
b/tp/t/results/converters_tests/table_in_example_in_display.pl
index 5438c28def..ba27bafe2e 100644
--- a/tp/t/results/converters_tests/table_in_example_in_display.pl
+++ b/tp/t/results/converters_tests/table_in_example_in_display.pl
@@ -243,7 +243,7 @@ $result_trees{'table_in_example_in_display'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/test_deftypefnnewline.pl 
b/tp/t/results/converters_tests/test_deftypefnnewline.pl
index 654bcc1527..9d13fb355b 100644
--- a/tp/t/results/converters_tests/test_deftypefnnewline.pl
+++ b/tp/t/results/converters_tests/test_deftypefnnewline.pl
@@ -83,7 +83,7 @@ $result_trees{'test_deftypefnnewline'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/test_sp.pl 
b/tp/t/results/converters_tests/test_sp.pl
index 9a12ba32ef..399b2fb179 100644
--- a/tp/t/results/converters_tests/test_sp.pl
+++ b/tp/t/results/converters_tests/test_sp.pl
@@ -269,7 +269,7 @@ $result_trees{'test_sp'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/things_before_setfilename.pl 
b/tp/t/results/converters_tests/things_before_setfilename.pl
index 8ee1ebe0c8..e29d550c15 100644
--- a/tp/t/results/converters_tests/things_before_setfilename.pl
+++ b/tp/t/results/converters_tests/things_before_setfilename.pl
@@ -905,7 +905,7 @@ $result_trees{'things_before_setfilename'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/converters_tests/things_before_setfilename_no_element.pl 
b/tp/t/results/converters_tests/things_before_setfilename_no_element.pl
index eda2b6bc09..4672c59e14 100644
--- a/tp/t/results/converters_tests/things_before_setfilename_no_element.pl
+++ b/tp/t/results/converters_tests/things_before_setfilename_no_element.pl
@@ -1011,7 +1011,7 @@ $result_trees{'things_before_setfilename_no_element'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/converters_tests/top_in_ref.pl 
b/tp/t/results/converters_tests/top_in_ref.pl
index 3152c8c14a..b727251b16 100644
--- a/tp/t/results/converters_tests/top_in_ref.pl
+++ b/tp/t/results/converters_tests/top_in_ref.pl
@@ -10,7 +10,7 @@ $result_trees{'top_in_ref'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/top_in_ref_keep_top.pl 
b/tp/t/results/converters_tests/top_in_ref_keep_top.pl
index b0f10087e7..2b466af4f6 100644
--- a/tp/t/results/converters_tests/top_in_ref_keep_top.pl
+++ b/tp/t/results/converters_tests/top_in_ref_keep_top.pl
@@ -10,7 +10,7 @@ $result_trees{'top_in_ref_keep_top'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/converters_tests/unknown_value.pl 
b/tp/t/results/converters_tests/unknown_value.pl
index 831f665f24..2168c9c555 100644
--- a/tp/t/results/converters_tests/unknown_value.pl
+++ b/tp/t/results/converters_tests/unknown_value.pl
@@ -17,7 +17,7 @@ $result_trees{'unknown_value'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/accent_and_dash.pl 
b/tp/t/results/coverage/accent_and_dash.pl
index 877b6e8298..579a2ce196 100644
--- a/tp/t/results/coverage/accent_and_dash.pl
+++ b/tp/t/results/coverage/accent_and_dash.pl
@@ -39,7 +39,7 @@ $result_trees{'accent_and_dash'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/accent_no_closed.pl 
b/tp/t/results/coverage/accent_no_closed.pl
index f15aaebfaf..708cf337a4 100644
--- a/tp/t/results/coverage/accent_no_closed.pl
+++ b/tp/t/results/coverage/accent_no_closed.pl
@@ -39,7 +39,7 @@ $result_trees{'accent_no_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/accent_no_closed_comment.pl 
b/tp/t/results/coverage/accent_no_closed_comment.pl
index 41831c2c40..9141fe787b 100644
--- a/tp/t/results/coverage/accent_no_closed_comment.pl
+++ b/tp/t/results/coverage/accent_no_closed_comment.pl
@@ -57,7 +57,7 @@ $result_trees{'accent_no_closed_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/accent_no_closed_newline.pl 
b/tp/t/results/coverage/accent_no_closed_newline.pl
index 3773608594..e3ab80e203 100644
--- a/tp/t/results/coverage/accent_no_closed_newline.pl
+++ b/tp/t/results/coverage/accent_no_closed_newline.pl
@@ -46,7 +46,7 @@ $result_trees{'accent_no_closed_newline'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/accent_no_closed_paragraph.pl 
b/tp/t/results/coverage/accent_no_closed_paragraph.pl
index a6dfe2a57f..ec155ebe75 100644
--- a/tp/t/results/coverage/accent_no_closed_paragraph.pl
+++ b/tp/t/results/coverage/accent_no_closed_paragraph.pl
@@ -57,7 +57,7 @@ $result_trees{'accent_no_closed_paragraph'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/accents_errors.pl 
b/tp/t/results/coverage/accents_errors.pl
index 97f3614059..1206bdde5a 100644
--- a/tp/t/results/coverage/accents_errors.pl
+++ b/tp/t/results/coverage/accents_errors.pl
@@ -170,7 +170,7 @@ $result_trees{'accents_errors'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/arg_in_brace_no_arg_command.pl 
b/tp/t/results/coverage/arg_in_brace_no_arg_command.pl
index 0af5a6ade3..bfeb710fef 100644
--- a/tp/t/results/coverage/arg_in_brace_no_arg_command.pl
+++ b/tp/t/results/coverage/arg_in_brace_no_arg_command.pl
@@ -44,7 +44,7 @@ $result_trees{'arg_in_brace_no_arg_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/at_after_accent_command.pl 
b/tp/t/results/coverage/at_after_accent_command.pl
index 3340b04fd8..74fec6e4dc 100644
--- a/tp/t/results/coverage/at_after_accent_command.pl
+++ b/tp/t/results/coverage/at_after_accent_command.pl
@@ -57,7 +57,7 @@ $result_trees{'at_after_accent_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/block_commands.pl 
b/tp/t/results/coverage/block_commands.pl
index 322d5de9fe..2c1feb3889 100644
--- a/tp/t/results/coverage/block_commands.pl
+++ b/tp/t/results/coverage/block_commands.pl
@@ -325,7 +325,7 @@ $result_trees{'block_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/cartouche.pl 
b/tp/t/results/coverage/cartouche.pl
index 6a01807e13..cdfa4c53ca 100644
--- a/tp/t/results/coverage/cartouche.pl
+++ b/tp/t/results/coverage/cartouche.pl
@@ -71,7 +71,7 @@ $result_trees{'cartouche'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/cartouche_in_example.pl 
b/tp/t/results/coverage/cartouche_in_example.pl
index f098b11fc0..e7e3f2d0c2 100644
--- a/tp/t/results/coverage/cartouche_in_example.pl
+++ b/tp/t/results/coverage/cartouche_in_example.pl
@@ -150,7 +150,7 @@ $result_trees{'cartouche_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/cartouche_in_quotation.pl 
b/tp/t/results/coverage/cartouche_in_quotation.pl
index c6c07fc873..7337059380 100644
--- a/tp/t/results/coverage/cartouche_in_quotation.pl
+++ b/tp/t/results/coverage/cartouche_in_quotation.pl
@@ -150,7 +150,7 @@ $result_trees{'cartouche_in_quotation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/center.pl b/tp/t/results/coverage/center.pl
index bf3fff4e0c..13cb8f770c 100644
--- a/tp/t/results/coverage/center.pl
+++ b/tp/t/results/coverage/center.pl
@@ -73,7 +73,7 @@ $result_trees{'center'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/commands.pl 
b/tp/t/results/coverage/commands.pl
index d7ef811a2b..55b51ee062 100644
--- a/tp/t/results/coverage/commands.pl
+++ b/tp/t/results/coverage/commands.pl
@@ -449,7 +449,7 @@ $result_trees{'commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/commands_in_math.pl 
b/tp/t/results/coverage/commands_in_math.pl
index 50db41a623..83bc9c5bad 100644
--- a/tp/t/results/coverage/commands_in_math.pl
+++ b/tp/t/results/coverage/commands_in_math.pl
@@ -2381,7 +2381,7 @@ $result_trees{'commands_in_math'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/comment_on_cartouche_line.pl 
b/tp/t/results/coverage/comment_on_cartouche_line.pl
index e1f73c3175..dc9f2ea9ae 100644
--- a/tp/t/results/coverage/comment_on_cartouche_line.pl
+++ b/tp/t/results/coverage/comment_on_cartouche_line.pl
@@ -94,7 +94,7 @@ $result_trees{'comment_on_cartouche_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/comment_on_group_line.pl 
b/tp/t/results/coverage/comment_on_group_line.pl
index d7ecdd065b..33859af6ba 100644
--- a/tp/t/results/coverage/comment_on_group_line.pl
+++ b/tp/t/results/coverage/comment_on_group_line.pl
@@ -94,7 +94,7 @@ $result_trees{'comment_on_group_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/def.pl b/tp/t/results/coverage/def.pl
index d12105dc5b..30c0e09f88 100644
--- a/tp/t/results/coverage/def.pl
+++ b/tp/t/results/coverage/def.pl
@@ -1952,7 +1952,7 @@ $result_trees{'def'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/delcomment.pl 
b/tp/t/results/coverage/delcomment.pl
index 10fc237787..4c2b46ee89 100644
--- a/tp/t/results/coverage/delcomment.pl
+++ b/tp/t/results/coverage/delcomment.pl
@@ -129,7 +129,7 @@ $result_trees{'delcomment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage/displaymath.pl 
b/tp/t/results/coverage/displaymath.pl
index bb0b5f025d..2acc9182ae 100644
--- a/tp/t/results/coverage/displaymath.pl
+++ b/tp/t/results/coverage/displaymath.pl
@@ -552,7 +552,7 @@ $result_trees{'displaymath'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/empty_w.pl b/tp/t/results/coverage/empty_w.pl
index 33c4a5559f..45c1b4ddd8 100644
--- a/tp/t/results/coverage/empty_w.pl
+++ b/tp/t/results/coverage/empty_w.pl
@@ -64,7 +64,7 @@ $result_trees{'empty_w'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/exdent_and_commands.pl 
b/tp/t/results/coverage/exdent_and_commands.pl
index 3b2dac45dc..54f870a5f1 100644
--- a/tp/t/results/coverage/exdent_and_commands.pl
+++ b/tp/t/results/coverage/exdent_and_commands.pl
@@ -335,7 +335,7 @@ $result_trees{'exdent_and_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/exdent_and_formats.pl 
b/tp/t/results/coverage/exdent_and_formats.pl
index 12379db137..9a13cf2bfd 100644
--- a/tp/t/results/coverage/exdent_and_formats.pl
+++ b/tp/t/results/coverage/exdent_and_formats.pl
@@ -1493,7 +1493,7 @@ $result_trees{'exdent_and_formats'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/flushleft_flushright.pl 
b/tp/t/results/coverage/flushleft_flushright.pl
index df0fc97400..317f1e3afc 100644
--- a/tp/t/results/coverage/flushleft_flushright.pl
+++ b/tp/t/results/coverage/flushleft_flushright.pl
@@ -205,7 +205,7 @@ $result_trees{'flushleft_flushright'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/flushleft_flushright_in_quotation.pl 
b/tp/t/results/coverage/flushleft_flushright_in_quotation.pl
index f24ef67453..88f67811d6 100644
--- a/tp/t/results/coverage/flushleft_flushright_in_quotation.pl
+++ b/tp/t/results/coverage/flushleft_flushright_in_quotation.pl
@@ -214,7 +214,7 @@ $result_trees{'flushleft_flushright_in_quotation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/flushright_example_nested.pl 
b/tp/t/results/coverage/flushright_example_nested.pl
index b8b2628464..1d5aa51d7f 100644
--- a/tp/t/results/coverage/flushright_example_nested.pl
+++ b/tp/t/results/coverage/flushright_example_nested.pl
@@ -268,7 +268,7 @@ $result_trees{'flushright_example_nested'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/flushright_not_closed.pl 
b/tp/t/results/coverage/flushright_not_closed.pl
index 1fe78310df..3ba880ad24 100644
--- a/tp/t/results/coverage/flushright_not_closed.pl
+++ b/tp/t/results/coverage/flushright_not_closed.pl
@@ -48,7 +48,7 @@ $result_trees{'flushright_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/formats_only_title_comments.pl 
b/tp/t/results/coverage/formats_only_title_comments.pl
index c937fb5111..dc91494b35 100644
--- a/tp/t/results/coverage/formats_only_title_comments.pl
+++ b/tp/t/results/coverage/formats_only_title_comments.pl
@@ -569,7 +569,7 @@ $result_trees{'formats_only_title_comments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/formats_only_titles.pl 
b/tp/t/results/coverage/formats_only_titles.pl
index 0cedd153b5..3c7acb14eb 100644
--- a/tp/t/results/coverage/formats_only_titles.pl
+++ b/tp/t/results/coverage/formats_only_titles.pl
@@ -461,7 +461,7 @@ $result_trees{'formats_only_titles'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/formats_titles.pl 
b/tp/t/results/coverage/formats_titles.pl
index 7764899cf0..977082fff6 100644
--- a/tp/t/results/coverage/formats_titles.pl
+++ b/tp/t/results/coverage/formats_titles.pl
@@ -670,7 +670,7 @@ $result_trees{'formats_titles'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/group_beginning_and_end_on_line.pl 
b/tp/t/results/coverage/group_beginning_and_end_on_line.pl
index c0b66f19e9..8a46299a8a 100644
--- a/tp/t/results/coverage/group_beginning_and_end_on_line.pl
+++ b/tp/t/results/coverage/group_beginning_and_end_on_line.pl
@@ -68,7 +68,7 @@ $result_trees{'group_beginning_and_end_on_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/group_not_closed.pl 
b/tp/t/results/coverage/group_not_closed.pl
index 6f2efa0fed..b9b3c0a523 100644
--- a/tp/t/results/coverage/group_not_closed.pl
+++ b/tp/t/results/coverage/group_not_closed.pl
@@ -48,7 +48,7 @@ $result_trees{'group_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/hyphenation.pl 
b/tp/t/results/coverage/hyphenation.pl
index 3bddcb661a..339d3d3c8a 100644
--- a/tp/t/results/coverage/hyphenation.pl
+++ b/tp/t/results/coverage/hyphenation.pl
@@ -51,7 +51,7 @@ $result_trees{'hyphenation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/indentedblock.pl 
b/tp/t/results/coverage/indentedblock.pl
index 8b6f6b1ead..0b7b8c33e4 100644
--- a/tp/t/results/coverage/indentedblock.pl
+++ b/tp/t/results/coverage/indentedblock.pl
@@ -97,7 +97,7 @@ $result_trees{'indentedblock'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/indicateurl_end_lines.pl 
b/tp/t/results/coverage/indicateurl_end_lines.pl
index 74093eadd6..ddca324c72 100644
--- a/tp/t/results/coverage/indicateurl_end_lines.pl
+++ b/tp/t/results/coverage/indicateurl_end_lines.pl
@@ -101,7 +101,7 @@ $result_trees{'indicateurl_end_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/insertcopying.pl 
b/tp/t/results/coverage/insertcopying.pl
index e6c6ba44d7..c7ef473b20 100644
--- a/tp/t/results/coverage/insertcopying.pl
+++ b/tp/t/results/coverage/insertcopying.pl
@@ -185,7 +185,7 @@ $result_trees{'insertcopying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/invalid_U.pl 
b/tp/t/results/coverage/invalid_U.pl
index 2721091eac..e5356ac111 100644
--- a/tp/t/results/coverage/invalid_U.pl
+++ b/tp/t/results/coverage/invalid_U.pl
@@ -266,7 +266,7 @@ $result_trees{'invalid_U'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/item_container.pl 
b/tp/t/results/coverage/item_container.pl
index 31138b9c66..35929d56a1 100644
--- a/tp/t/results/coverage/item_container.pl
+++ b/tp/t/results/coverage/item_container.pl
@@ -312,7 +312,7 @@ $result_trees{'item_container'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/lettered_accent_and_spaces.pl 
b/tp/t/results/coverage/lettered_accent_and_spaces.pl
index b811c7b23a..23e465e5b7 100644
--- a/tp/t/results/coverage/lettered_accent_and_spaces.pl
+++ b/tp/t/results/coverage/lettered_accent_and_spaces.pl
@@ -47,7 +47,7 @@ $result_trees{'lettered_accent_and_spaces'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/math.pl b/tp/t/results/coverage/math.pl
index 6984c6ad02..bc61682431 100644
--- a/tp/t/results/coverage/math.pl
+++ b/tp/t/results/coverage/math.pl
@@ -462,7 +462,7 @@ $result_trees{'math'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/multitable.pl 
b/tp/t/results/coverage/multitable.pl
index f9d56ba1e2..7a75ebd6a6 100644
--- a/tp/t/results/coverage/multitable.pl
+++ b/tp/t/results/coverage/multitable.pl
@@ -565,7 +565,7 @@ $result_trees{'multitable'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/nested_block_commands.pl 
b/tp/t/results/coverage/nested_block_commands.pl
index 87d177bd67..fe9cf6ae1b 100644
--- a/tp/t/results/coverage/nested_block_commands.pl
+++ b/tp/t/results/coverage/nested_block_commands.pl
@@ -1652,7 +1652,7 @@ $result_trees{'nested_block_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/not_i_j_in_dotless.pl 
b/tp/t/results/coverage/not_i_j_in_dotless.pl
index 64a2e785d7..f90ff68161 100644
--- a/tp/t/results/coverage/not_i_j_in_dotless.pl
+++ b/tp/t/results/coverage/not_i_j_in_dotless.pl
@@ -90,7 +90,7 @@ $result_trees{'not_i_j_in_dotless'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/preformatted.pl 
b/tp/t/results/coverage/preformatted.pl
index 575e49dd71..1364b08406 100644
--- a/tp/t/results/coverage/preformatted.pl
+++ b/tp/t/results/coverage/preformatted.pl
@@ -294,7 +294,7 @@ $result_trees{'preformatted'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/punctuation_in_line_commands.pl 
b/tp/t/results/coverage/punctuation_in_line_commands.pl
index 33564d510d..8aca601b17 100644
--- a/tp/t/results/coverage/punctuation_in_line_commands.pl
+++ b/tp/t/results/coverage/punctuation_in_line_commands.pl
@@ -17,7 +17,7 @@ $result_trees{'punctuation_in_line_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage/quotation_author.pl 
b/tp/t/results/coverage/quotation_author.pl
index 27fb55a337..a455e85efc 100644
--- a/tp/t/results/coverage/quotation_author.pl
+++ b/tp/t/results/coverage/quotation_author.pl
@@ -180,7 +180,7 @@ $result_trees{'quotation_author'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/raggedright.pl 
b/tp/t/results/coverage/raggedright.pl
index e1d8dd5b4b..48b4bf86c4 100644
--- a/tp/t/results/coverage/raggedright.pl
+++ b/tp/t/results/coverage/raggedright.pl
@@ -81,7 +81,7 @@ $result_trees{'raggedright'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/setfilename_in_paragraph.pl 
b/tp/t/results/coverage/setfilename_in_paragraph.pl
index be3d4a31cf..8767e763ab 100644
--- a/tp/t/results/coverage/setfilename_in_paragraph.pl
+++ b/tp/t/results/coverage/setfilename_in_paragraph.pl
@@ -51,7 +51,7 @@ $result_trees{'setfilename_in_paragraph'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/spaces_after_braced_command.pl 
b/tp/t/results/coverage/spaces_after_braced_command.pl
index 83610ebde0..5845ce607a 100644
--- a/tp/t/results/coverage/spaces_after_braced_command.pl
+++ b/tp/t/results/coverage/spaces_after_braced_command.pl
@@ -83,7 +83,7 @@ $result_trees{'spaces_after_braced_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/spaces_no_brace_after_braced_command.pl 
b/tp/t/results/coverage/spaces_no_brace_after_braced_command.pl
index 2a3439a4d3..d01a67c220 100644
--- a/tp/t/results/coverage/spaces_no_brace_after_braced_command.pl
+++ b/tp/t/results/coverage/spaces_no_brace_after_braced_command.pl
@@ -32,7 +32,7 @@ $result_trees{'spaces_no_brace_after_braced_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/symbol_after_block.pl 
b/tp/t/results/coverage/symbol_after_block.pl
index 73bce4fe2c..fe8871f59f 100644
--- a/tp/t/results/coverage/symbol_after_block.pl
+++ b/tp/t/results/coverage/symbol_after_block.pl
@@ -1561,7 +1561,7 @@ $result_trees{'symbol_after_block'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/symbol_after_command.pl 
b/tp/t/results/coverage/symbol_after_command.pl
index f740ac7fc6..3dc4af2ccd 100644
--- a/tp/t/results/coverage/symbol_after_command.pl
+++ b/tp/t/results/coverage/symbol_after_command.pl
@@ -440,7 +440,7 @@ $result_trees{'symbol_after_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/table.pl b/tp/t/results/coverage/table.pl
index 7b5efee081..6961217431 100644
--- a/tp/t/results/coverage/table.pl
+++ b/tp/t/results/coverage/table.pl
@@ -521,7 +521,7 @@ $result_trees{'table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/table_command_comment.pl 
b/tp/t/results/coverage/table_command_comment.pl
index 7d1bc29b44..bb6291f5c9 100644
--- a/tp/t/results/coverage/table_command_comment.pl
+++ b/tp/t/results/coverage/table_command_comment.pl
@@ -132,7 +132,7 @@ $result_trees{'table_command_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/test_errormsg.pl 
b/tp/t/results/coverage/test_errormsg.pl
index be3491c1eb..f94bf601dd 100644
--- a/tp/t/results/coverage/test_errormsg.pl
+++ b/tp/t/results/coverage/test_errormsg.pl
@@ -128,7 +128,7 @@ $result_trees{'test_errormsg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/test_tie.pl 
b/tp/t/results/coverage/test_tie.pl
index ab1f8e75bb..1a15d303ff 100644
--- a/tp/t/results/coverage/test_tie.pl
+++ b/tp/t/results/coverage/test_tie.pl
@@ -43,7 +43,7 @@ $result_trees{'test_tie'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/test_today.pl 
b/tp/t/results/coverage/test_today.pl
index 8a2bc2c34f..b6c7e3b26e 100644
--- a/tp/t/results/coverage/test_today.pl
+++ b/tp/t/results/coverage/test_today.pl
@@ -38,7 +38,7 @@ $result_trees{'test_today'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/titlefont_in_center.pl 
b/tp/t/results/coverage/titlefont_in_center.pl
index 3d16538228..51c0729b15 100644
--- a/tp/t/results/coverage/titlefont_in_center.pl
+++ b/tp/t/results/coverage/titlefont_in_center.pl
@@ -63,7 +63,7 @@ $result_trees{'titlefont_in_center'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/unknown_accents.pl 
b/tp/t/results/coverage/unknown_accents.pl
index a75edc9992..998d43255c 100644
--- a/tp/t/results/coverage/unknown_accents.pl
+++ b/tp/t/results/coverage/unknown_accents.pl
@@ -735,7 +735,7 @@ $result_trees{'unknown_accents'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/unknown_commands.pl 
b/tp/t/results/coverage/unknown_commands.pl
index c183d23ea1..f7c3102703 100644
--- a/tp/t/results/coverage/unknown_commands.pl
+++ b/tp/t/results/coverage/unknown_commands.pl
@@ -27,7 +27,7 @@ $result_trees{'unknown_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage/verbatiminclude.pl 
b/tp/t/results/coverage/verbatiminclude.pl
index 299516d8c7..cf7ca64bc4 100644
--- a/tp/t/results/coverage/verbatiminclude.pl
+++ b/tp/t/results/coverage/verbatiminclude.pl
@@ -47,7 +47,7 @@ $result_trees{'verbatiminclude'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/abbr_acronym.pl 
b/tp/t/results/coverage_braces/abbr_acronym.pl
index 22bf69285f..0a058683b9 100644
--- a/tp/t/results/coverage_braces/abbr_acronym.pl
+++ b/tp/t/results/coverage_braces/abbr_acronym.pl
@@ -381,7 +381,7 @@ $result_trees{'abbr_acronym'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/anchor_not_closed.pl 
b/tp/t/results/coverage_braces/anchor_not_closed.pl
index 41374c0fa0..ada36f9334 100644
--- a/tp/t/results/coverage_braces/anchor_not_closed.pl
+++ b/tp/t/results/coverage_braces/anchor_not_closed.pl
@@ -40,7 +40,7 @@ $result_trees{'anchor_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/brace_opened_no_command.pl 
b/tp/t/results/coverage_braces/brace_opened_no_command.pl
index 284701a136..0e1a084f50 100644
--- a/tp/t/results/coverage_braces/brace_opened_no_command.pl
+++ b/tp/t/results/coverage_braces/brace_opened_no_command.pl
@@ -62,7 +62,7 @@ $result_trees{'brace_opened_no_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage_braces/caption_not_closed.pl 
b/tp/t/results/coverage_braces/caption_not_closed.pl
index 3955b25ea6..8163af8873 100644
--- a/tp/t/results/coverage_braces/caption_not_closed.pl
+++ b/tp/t/results/coverage_braces/caption_not_closed.pl
@@ -167,7 +167,7 @@ $result_trees{'caption_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage_braces/code_not_closed.pl 
b/tp/t/results/coverage_braces/code_not_closed.pl
index f592ed2eee..55b7dae6cf 100644
--- a/tp/t/results/coverage_braces/code_not_closed.pl
+++ b/tp/t/results/coverage_braces/code_not_closed.pl
@@ -39,7 +39,7 @@ $result_trees{'code_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/email_possibilities.pl 
b/tp/t/results/coverage_braces/email_possibilities.pl
index 7cbb53eec5..0b47b757c7 100644
--- a/tp/t/results/coverage_braces/email_possibilities.pl
+++ b/tp/t/results/coverage_braces/email_possibilities.pl
@@ -113,7 +113,7 @@ $result_trees{'email_possibilities'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/empty_commands.pl 
b/tp/t/results/coverage_braces/empty_commands.pl
index d492c868ac..9cfe2b1772 100644
--- a/tp/t/results/coverage_braces/empty_commands.pl
+++ b/tp/t/results/coverage_braces/empty_commands.pl
@@ -216,7 +216,7 @@ $result_trees{'empty_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/empty_images.pl 
b/tp/t/results/coverage_braces/empty_images.pl
index ea136aa84a..26f748cddf 100644
--- a/tp/t/results/coverage_braces/empty_images.pl
+++ b/tp/t/results/coverage_braces/empty_images.pl
@@ -209,7 +209,7 @@ $result_trees{'empty_images'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/empty_line_in_anchor.pl 
b/tp/t/results/coverage_braces/empty_line_in_anchor.pl
index f7799a0595..cf672afa88 100644
--- a/tp/t/results/coverage_braces/empty_line_in_anchor.pl
+++ b/tp/t/results/coverage_braces/empty_line_in_anchor.pl
@@ -51,7 +51,7 @@ $result_trees{'empty_line_in_anchor'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/empty_line_in_math.pl 
b/tp/t/results/coverage_braces/empty_line_in_math.pl
index 3a42b83525..d57115e636 100644
--- a/tp/t/results/coverage_braces/empty_line_in_math.pl
+++ b/tp/t/results/coverage_braces/empty_line_in_math.pl
@@ -50,7 +50,7 @@ $result_trees{'empty_line_in_math'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/empty_ref.pl 
b/tp/t/results/coverage_braces/empty_ref.pl
index c0ad5a1f82..9c6041d160 100644
--- a/tp/t/results/coverage_braces/empty_ref.pl
+++ b/tp/t/results/coverage_braces/empty_ref.pl
@@ -147,7 +147,7 @@ $result_trees{'empty_ref'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/empty_second_email_argument.pl 
b/tp/t/results/coverage_braces/empty_second_email_argument.pl
index cde15d5e74..ab1b8c97b2 100644
--- a/tp/t/results/coverage_braces/empty_second_email_argument.pl
+++ b/tp/t/results/coverage_braces/empty_second_email_argument.pl
@@ -58,7 +58,7 @@ $result_trees{'empty_second_email_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/end_line_in_anchor.pl 
b/tp/t/results/coverage_braces/end_line_in_anchor.pl
index 1b84bbfd93..9bdc227240 100644
--- a/tp/t/results/coverage_braces/end_line_in_anchor.pl
+++ b/tp/t/results/coverage_braces/end_line_in_anchor.pl
@@ -51,7 +51,7 @@ $result_trees{'end_line_in_anchor'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/footnote.pl 
b/tp/t/results/coverage_braces/footnote.pl
index 18a7bdb08d..a32adc9e59 100644
--- a/tp/t/results/coverage_braces/footnote.pl
+++ b/tp/t/results/coverage_braces/footnote.pl
@@ -92,7 +92,7 @@ $result_trees{'footnote'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/footnote_ending_on_empty_line.pl 
b/tp/t/results/coverage_braces/footnote_ending_on_empty_line.pl
index b8153d9f44..42c8ebd5f7 100644
--- a/tp/t/results/coverage_braces/footnote_ending_on_empty_line.pl
+++ b/tp/t/results/coverage_braces/footnote_ending_on_empty_line.pl
@@ -59,7 +59,7 @@ $result_trees{'footnote_ending_on_empty_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/footnote_in_command_not_closed.pl 
b/tp/t/results/coverage_braces/footnote_in_command_not_closed.pl
index cfe517b317..bf96e264eb 100644
--- a/tp/t/results/coverage_braces/footnote_in_command_not_closed.pl
+++ b/tp/t/results/coverage_braces/footnote_in_command_not_closed.pl
@@ -71,7 +71,7 @@ $result_trees{'footnote_in_command_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/footnote_no_node.pl 
b/tp/t/results/coverage_braces/footnote_no_node.pl
index ec3b92dcf7..2782e2c1ff 100644
--- a/tp/t/results/coverage_braces/footnote_no_node.pl
+++ b/tp/t/results/coverage_braces/footnote_no_node.pl
@@ -10,7 +10,7 @@ $result_trees{'footnote_no_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage_braces/footnote_not_closed.pl 
b/tp/t/results/coverage_braces/footnote_not_closed.pl
index 825b402658..fbb203d217 100644
--- a/tp/t/results/coverage_braces/footnote_not_closed.pl
+++ b/tp/t/results/coverage_braces/footnote_not_closed.pl
@@ -70,7 +70,7 @@ $result_trees{'footnote_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/form_feed_in_brace_commands.pl 
b/tp/t/results/coverage_braces/form_feed_in_brace_commands.pl
index 5e82a5edd7..9a01d5bb1a 100644
--- a/tp/t/results/coverage_braces/form_feed_in_brace_commands.pl
+++ b/tp/t/results/coverage_braces/form_feed_in_brace_commands.pl
@@ -226,7 +226,7 @@ $result_trees{'form_feed_in_brace_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/format_on_first_footnote_line.pl 
b/tp/t/results/coverage_braces/format_on_first_footnote_line.pl
index 549b258bed..3409502718 100644
--- a/tp/t/results/coverage_braces/format_on_first_footnote_line.pl
+++ b/tp/t/results/coverage_braces/format_on_first_footnote_line.pl
@@ -217,7 +217,7 @@ $result_trees{'format_on_first_footnote_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/heading_in_footnote.pl 
b/tp/t/results/coverage_braces/heading_in_footnote.pl
index 422f8ea4f4..5e705dc312 100644
--- a/tp/t/results/coverage_braces/heading_in_footnote.pl
+++ b/tp/t/results/coverage_braces/heading_in_footnote.pl
@@ -139,7 +139,7 @@ $result_trees{'heading_in_footnote'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/inforef_too_much_args.pl 
b/tp/t/results/coverage_braces/inforef_too_much_args.pl
index f0695c7baa..5d7047aafe 100644
--- a/tp/t/results/coverage_braces/inforef_too_much_args.pl
+++ b/tp/t/results/coverage_braces/inforef_too_much_args.pl
@@ -10,7 +10,7 @@ $result_trees{'inforef_too_much_args'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage_braces/kbd.pl 
b/tp/t/results/coverage_braces/kbd.pl
index be13a5cd8e..83ad446d6a 100644
--- a/tp/t/results/coverage_braces/kbd.pl
+++ b/tp/t/results/coverage_braces/kbd.pl
@@ -422,7 +422,7 @@ $result_trees{'kbd'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/math_bracketed_inside_not_closed.pl 
b/tp/t/results/coverage_braces/math_bracketed_inside_not_closed.pl
index a8752a7e2e..1841a63207 100644
--- a/tp/t/results/coverage_braces/math_bracketed_inside_not_closed.pl
+++ b/tp/t/results/coverage_braces/math_bracketed_inside_not_closed.pl
@@ -69,7 +69,7 @@ $result_trees{'math_bracketed_inside_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/math_bracketed_not_closed.pl 
b/tp/t/results/coverage_braces/math_bracketed_not_closed.pl
index bf66ac120b..5658222411 100644
--- a/tp/t/results/coverage_braces/math_bracketed_not_closed.pl
+++ b/tp/t/results/coverage_braces/math_bracketed_not_closed.pl
@@ -69,7 +69,7 @@ $result_trees{'math_bracketed_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/coverage_braces/math_bracketed_not_closed_next_line.pl 
b/tp/t/results/coverage_braces/math_bracketed_not_closed_next_line.pl
index c8e14504e5..6620940def 100644
--- a/tp/t/results/coverage_braces/math_bracketed_not_closed_next_line.pl
+++ b/tp/t/results/coverage_braces/math_bracketed_not_closed_next_line.pl
@@ -61,7 +61,7 @@ $result_trees{'math_bracketed_not_closed_next_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/math_not_closed.pl 
b/tp/t/results/coverage_braces/math_not_closed.pl
index e1af32633a..236e5395ab 100644
--- a/tp/t/results/coverage_braces/math_not_closed.pl
+++ b/tp/t/results/coverage_braces/math_not_closed.pl
@@ -39,7 +39,7 @@ $result_trees{'math_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/nested.pl 
b/tp/t/results/coverage_braces/nested.pl
index 7da41595b4..532185c01b 100644
--- a/tp/t/results/coverage_braces/nested.pl
+++ b/tp/t/results/coverage_braces/nested.pl
@@ -69,7 +69,7 @@ $result_trees{'nested'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/nested_args.pl 
b/tp/t/results/coverage_braces/nested_args.pl
index 84dc15d719..41a3171f95 100644
--- a/tp/t/results/coverage_braces/nested_args.pl
+++ b/tp/t/results/coverage_braces/nested_args.pl
@@ -184,7 +184,7 @@ $result_trees{'nested_args'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/nested_in_sc.pl 
b/tp/t/results/coverage_braces/nested_in_sc.pl
index a017920ce4..e57494b96b 100644
--- a/tp/t/results/coverage_braces/nested_in_sc.pl
+++ b/tp/t/results/coverage_braces/nested_in_sc.pl
@@ -267,7 +267,7 @@ $result_trees{'nested_in_sc'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/no_brace.pl 
b/tp/t/results/coverage_braces/no_brace.pl
index 58ec1617af..4e9b7ec3fd 100644
--- a/tp/t/results/coverage_braces/no_brace.pl
+++ b/tp/t/results/coverage_braces/no_brace.pl
@@ -59,7 +59,7 @@ $result_trees{'no_brace'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/no_brace_space_end_line.pl 
b/tp/t/results/coverage_braces/no_brace_space_end_line.pl
index 41e53d825a..8f819dbf6d 100644
--- a/tp/t/results/coverage_braces/no_brace_space_end_line.pl
+++ b/tp/t/results/coverage_braces/no_brace_space_end_line.pl
@@ -85,7 +85,7 @@ $result_trees{'no_brace_space_end_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/recursive_acronym.pl 
b/tp/t/results/coverage_braces/recursive_acronym.pl
index 23c8412cd7..6f7ea8cfd1 100644
--- a/tp/t/results/coverage_braces/recursive_acronym.pl
+++ b/tp/t/results/coverage_braces/recursive_acronym.pl
@@ -82,7 +82,7 @@ $result_trees{'recursive_acronym'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/ref_empty_node.pl 
b/tp/t/results/coverage_braces/ref_empty_node.pl
index 9526e7cb9e..07f1d780c7 100644
--- a/tp/t/results/coverage_braces/ref_empty_node.pl
+++ b/tp/t/results/coverage_braces/ref_empty_node.pl
@@ -230,7 +230,7 @@ $result_trees{'ref_empty_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/ref_in_style_command.pl 
b/tp/t/results/coverage_braces/ref_in_style_command.pl
index d2a0e3239d..22d2e45bd8 100644
--- a/tp/t/results/coverage_braces/ref_in_style_command.pl
+++ b/tp/t/results/coverage_braces/ref_in_style_command.pl
@@ -83,7 +83,7 @@ $result_trees{'ref_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/simple.pl 
b/tp/t/results/coverage_braces/simple.pl
index eefc0ff23c..92c3acd05d 100644
--- a/tp/t/results/coverage_braces/simple.pl
+++ b/tp/t/results/coverage_braces/simple.pl
@@ -43,7 +43,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/space_command_in_image.pl 
b/tp/t/results/coverage_braces/space_command_in_image.pl
index fe940a9965..c59dbdda9d 100644
--- a/tp/t/results/coverage_braces/space_command_in_image.pl
+++ b/tp/t/results/coverage_braces/space_command_in_image.pl
@@ -105,7 +105,7 @@ $result_trees{'space_command_in_image'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/space_in_anchor.pl 
b/tp/t/results/coverage_braces/space_in_anchor.pl
index 6fa39f9fc1..42b101b844 100644
--- a/tp/t/results/coverage_braces/space_in_anchor.pl
+++ b/tp/t/results/coverage_braces/space_in_anchor.pl
@@ -54,7 +54,7 @@ $result_trees{'space_in_anchor'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/space_in_footnote.pl 
b/tp/t/results/coverage_braces/space_in_footnote.pl
index e43bd4fde2..3c49ca5719 100644
--- a/tp/t/results/coverage_braces/space_in_footnote.pl
+++ b/tp/t/results/coverage_braces/space_in_footnote.pl
@@ -52,7 +52,7 @@ $result_trees{'space_in_footnote'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/space_in_image.pl 
b/tp/t/results/coverage_braces/space_in_image.pl
index 636b3d7006..e6f73238d8 100644
--- a/tp/t/results/coverage_braces/space_in_image.pl
+++ b/tp/t/results/coverage_braces/space_in_image.pl
@@ -132,7 +132,7 @@ $result_trees{'space_in_image'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/test_image.pl 
b/tp/t/results/coverage_braces/test_image.pl
index 5357ebd9cd..385fe1e9ed 100644
--- a/tp/t/results/coverage_braces/test_image.pl
+++ b/tp/t/results/coverage_braces/test_image.pl
@@ -656,7 +656,7 @@ $result_trees{'test_image'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage_braces/test_w.pl 
b/tp/t/results/coverage_braces/test_w.pl
index dbd1c1c792..3600973fe6 100644
--- a/tp/t/results/coverage_braces/test_w.pl
+++ b/tp/t/results/coverage_braces/test_w.pl
@@ -732,7 +732,7 @@ $result_trees{'test_w'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/too_much_args.pl 
b/tp/t/results/coverage_braces/too_much_args.pl
index 26acf2dbed..b700c84ba0 100644
--- a/tp/t/results/coverage_braces/too_much_args.pl
+++ b/tp/t/results/coverage_braces/too_much_args.pl
@@ -52,7 +52,7 @@ $result_trees{'too_much_args'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/two_footnotes_in_nodes.pl 
b/tp/t/results/coverage_braces/two_footnotes_in_nodes.pl
index e0b07d895b..02bf913fa7 100644
--- a/tp/t/results/coverage_braces/two_footnotes_in_nodes.pl
+++ b/tp/t/results/coverage_braces/two_footnotes_in_nodes.pl
@@ -10,7 +10,7 @@ $result_trees{'two_footnotes_in_nodes'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage_braces/two_footnotes_in_nodes_separate.pl 
b/tp/t/results/coverage_braces/two_footnotes_in_nodes_separate.pl
index 88ee5c6fb4..405790e344 100644
--- a/tp/t/results/coverage_braces/two_footnotes_in_nodes_separate.pl
+++ b/tp/t/results/coverage_braces/two_footnotes_in_nodes_separate.pl
@@ -42,7 +42,7 @@ $result_trees{'two_footnotes_in_nodes_separate'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage_braces/unknown_command_with_braces.pl 
b/tp/t/results/coverage_braces/unknown_command_with_braces.pl
index 22e86efa76..f93711f369 100644
--- a/tp/t/results/coverage_braces/unknown_command_with_braces.pl
+++ b/tp/t/results/coverage_braces/unknown_command_with_braces.pl
@@ -107,7 +107,7 @@ $result_trees{'unknown_command_with_braces'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/unmatched_brace.pl 
b/tp/t/results/coverage_braces/unmatched_brace.pl
index 79f41ae94e..b542e8a4af 100644
--- a/tp/t/results/coverage_braces/unmatched_brace.pl
+++ b/tp/t/results/coverage_braces/unmatched_brace.pl
@@ -77,7 +77,7 @@ $result_trees{'unmatched_brace'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/uref_in_ref.pl 
b/tp/t/results/coverage_braces/uref_in_ref.pl
index 07d6d8dede..8a13afa326 100644
--- a/tp/t/results/coverage_braces/uref_in_ref.pl
+++ b/tp/t/results/coverage_braces/uref_in_ref.pl
@@ -246,7 +246,7 @@ $result_trees{'uref_in_ref'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/uref_url.pl 
b/tp/t/results/coverage_braces/uref_url.pl
index f932789d39..d9d9f49307 100644
--- a/tp/t/results/coverage_braces/uref_url.pl
+++ b/tp/t/results/coverage_braces/uref_url.pl
@@ -365,7 +365,7 @@ $result_trees{'uref_url'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/uref_with_commands_characters.pl 
b/tp/t/results/coverage_braces/uref_with_commands_characters.pl
index 5fbbc3b617..3329914bf2 100644
--- a/tp/t/results/coverage_braces/uref_with_commands_characters.pl
+++ b/tp/t/results/coverage_braces/uref_with_commands_characters.pl
@@ -142,7 +142,7 @@ $result_trees{'uref_with_commands_characters'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/coverage_braces/verb_in_xref.pl 
b/tp/t/results/coverage_braces/verb_in_xref.pl
index 54a8f1166a..71998c807f 100644
--- a/tp/t/results/coverage_braces/verb_in_xref.pl
+++ b/tp/t/results/coverage_braces/verb_in_xref.pl
@@ -10,7 +10,7 @@ $result_trees{'verb_in_xref'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/coverage_braces/w_end_sentence.pl 
b/tp/t/results/coverage_braces/w_end_sentence.pl
index 6c692eccd9..6818cf5ba9 100644
--- a/tp/t/results/coverage_braces/w_end_sentence.pl
+++ b/tp/t/results/coverage_braces/w_end_sentence.pl
@@ -43,7 +43,7 @@ $result_trees{'w_end_sentence'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/all_commands.pl b/tp/t/results/def/all_commands.pl
index ce49def694..e9064ad49c 100644
--- a/tp/t/results/def/all_commands.pl
+++ b/tp/t/results/def/all_commands.pl
@@ -4483,7 +4483,7 @@ $result_trees{'all_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/all_commands_delimiters.pl 
b/tp/t/results/def/all_commands_delimiters.pl
index f501953ccf..3ca8490455 100644
--- a/tp/t/results/def/all_commands_delimiters.pl
+++ b/tp/t/results/def/all_commands_delimiters.pl
@@ -13380,7 +13380,7 @@ $result_trees{'all_commands_delimiters'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/all_commands_delimiters_printindex.pl 
b/tp/t/results/def/all_commands_delimiters_printindex.pl
index 39d3b3559a..ad9bd6ae46 100644
--- a/tp/t/results/def/all_commands_delimiters_printindex.pl
+++ b/tp/t/results/def/all_commands_delimiters_printindex.pl
@@ -10,7 +10,7 @@ $result_trees{'all_commands_delimiters_printindex'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/def/all_commands_printindex.pl 
b/tp/t/results/def/all_commands_printindex.pl
index 15e6bca6b2..d5e0312acc 100644
--- a/tp/t/results/def/all_commands_printindex.pl
+++ b/tp/t/results/def/all_commands_printindex.pl
@@ -10,7 +10,7 @@ $result_trees{'all_commands_printindex'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/def/all_empty_def.pl 
b/tp/t/results/def/all_empty_def.pl
index 211fd0e965..06121f730f 100644
--- a/tp/t/results/def/all_empty_def.pl
+++ b/tp/t/results/def/all_empty_def.pl
@@ -725,7 +725,7 @@ $result_trees{'all_empty_def'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/ampchar.pl b/tp/t/results/def/ampchar.pl
index a1631d90d3..f9f8c3f7b7 100644
--- a/tp/t/results/def/ampchar.pl
+++ b/tp/t/results/def/ampchar.pl
@@ -277,7 +277,7 @@ $result_trees{'ampchar'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/code_in_def.pl b/tp/t/results/def/code_in_def.pl
index c4d546bd4d..e8e142c665 100644
--- a/tp/t/results/def/code_in_def.pl
+++ b/tp/t/results/def/code_in_def.pl
@@ -254,7 +254,7 @@ $result_trees{'code_in_def'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/def_defx_mismatch.pl 
b/tp/t/results/def/def_defx_mismatch.pl
index b1909ba501..61592f63d2 100644
--- a/tp/t/results/def/def_defx_mismatch.pl
+++ b/tp/t/results/def/def_defx_mismatch.pl
@@ -405,7 +405,7 @@ $result_trees{'def_defx_mismatch'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/defx_after_comment.pl 
b/tp/t/results/def/defx_after_comment.pl
index de05951650..5704f28172 100644
--- a/tp/t/results/def/defx_after_comment.pl
+++ b/tp/t/results/def/defx_after_comment.pl
@@ -294,7 +294,7 @@ $result_trees{'defx_after_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/defx_after_comment_in_example.pl 
b/tp/t/results/def/defx_after_comment_in_example.pl
index 882e5cb4ff..7fbd1b13f8 100644
--- a/tp/t/results/def/defx_after_comment_in_example.pl
+++ b/tp/t/results/def/defx_after_comment_in_example.pl
@@ -357,7 +357,7 @@ $result_trees{'defx_after_comment_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/defx_after_empty_line.pl 
b/tp/t/results/def/defx_after_empty_line.pl
index 0bcb8daf0d..f0a14aa7c6 100644
--- a/tp/t/results/def/defx_after_empty_line.pl
+++ b/tp/t/results/def/defx_after_empty_line.pl
@@ -282,7 +282,7 @@ $result_trees{'defx_after_empty_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/defx_after_empty_line_in_example.pl 
b/tp/t/results/def/defx_after_empty_line_in_example.pl
index f55eb66bdc..e93175d01a 100644
--- a/tp/t/results/def/defx_after_empty_line_in_example.pl
+++ b/tp/t/results/def/defx_after_empty_line_in_example.pl
@@ -387,7 +387,7 @@ $result_trees{'defx_after_empty_line_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/defx_after_paragraph_end.pl 
b/tp/t/results/def/defx_after_paragraph_end.pl
index 952f47f3ab..d072c89e80 100644
--- a/tp/t/results/def/defx_after_paragraph_end.pl
+++ b/tp/t/results/def/defx_after_paragraph_end.pl
@@ -294,7 +294,7 @@ $result_trees{'defx_after_paragraph_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/defx_after_preformatted_with_text.pl 
b/tp/t/results/def/defx_after_preformatted_with_text.pl
index 57871a5697..035dc706e0 100644
--- a/tp/t/results/def/defx_after_preformatted_with_text.pl
+++ b/tp/t/results/def/defx_after_preformatted_with_text.pl
@@ -351,7 +351,7 @@ $result_trees{'defx_after_preformatted_with_text'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/defx_after_text.pl 
b/tp/t/results/def/defx_after_text.pl
index 5e369f03e8..06220b9b29 100644
--- a/tp/t/results/def/defx_after_text.pl
+++ b/tp/t/results/def/defx_after_text.pl
@@ -288,7 +288,7 @@ $result_trees{'defx_after_text'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/defx_in_example.pl 
b/tp/t/results/def/defx_in_example.pl
index bed2ac8a50..e1afae3642 100644
--- a/tp/t/results/def/defx_in_example.pl
+++ b/tp/t/results/def/defx_in_example.pl
@@ -327,7 +327,7 @@ $result_trees{'defx_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/double_command.pl 
b/tp/t/results/def/double_command.pl
index 67a3a71bc5..43a2287b97 100644
--- a/tp/t/results/def/double_command.pl
+++ b/tp/t/results/def/double_command.pl
@@ -680,7 +680,7 @@ $result_trees{'double_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/empty_def_arguments.pl 
b/tp/t/results/def/empty_def_arguments.pl
index 881f4b77c7..1f41e9c702 100644
--- a/tp/t/results/def/empty_def_arguments.pl
+++ b/tp/t/results/def/empty_def_arguments.pl
@@ -647,7 +647,7 @@ $result_trees{'empty_def_arguments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/empty_def_command.pl 
b/tp/t/results/def/empty_def_command.pl
index 5c8eef8c6e..e529816945 100644
--- a/tp/t/results/def/empty_def_command.pl
+++ b/tp/t/results/def/empty_def_command.pl
@@ -352,7 +352,7 @@ $result_trees{'empty_def_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/empty_deftype.pl 
b/tp/t/results/def/empty_deftype.pl
index d5c1ee0910..64d42f55ff 100644
--- a/tp/t/results/def/empty_deftype.pl
+++ b/tp/t/results/def/empty_deftype.pl
@@ -917,7 +917,7 @@ $result_trees{'empty_deftype'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/empty_deftypeop_name.pl 
b/tp/t/results/def/empty_deftypeop_name.pl
index e026d42e98..902d91c984 100644
--- a/tp/t/results/def/empty_deftypeop_name.pl
+++ b/tp/t/results/def/empty_deftypeop_name.pl
@@ -217,7 +217,7 @@ $result_trees{'empty_deftypeop_name'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/end_of_line_end_file.pl 
b/tp/t/results/def/end_of_line_end_file.pl
index aec2ecc7a6..80aa85c2b0 100644
--- a/tp/t/results/def/end_of_line_end_file.pl
+++ b/tp/t/results/def/end_of_line_end_file.pl
@@ -50,7 +50,7 @@ $result_trees{'end_of_line_end_file'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/end_of_line_protect_at_end.pl 
b/tp/t/results/def/end_of_line_protect_at_end.pl
index 4fa35d6146..bd1946b128 100644
--- a/tp/t/results/def/end_of_line_protect_at_end.pl
+++ b/tp/t/results/def/end_of_line_protect_at_end.pl
@@ -116,7 +116,7 @@ $result_trees{'end_of_line_protect_at_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/end_of_lines_protected.pl 
b/tp/t/results/def/end_of_lines_protected.pl
index aa52879244..d58cdb97f5 100644
--- a/tp/t/results/def/end_of_lines_protected.pl
+++ b/tp/t/results/def/end_of_lines_protected.pl
@@ -286,7 +286,7 @@ $result_trees{'end_of_lines_protected'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/end_of_lines_protected_in_footnote.pl 
b/tp/t/results/def/end_of_lines_protected_in_footnote.pl
index b01f95e3f4..076a2553d8 100644
--- a/tp/t/results/def/end_of_lines_protected_in_footnote.pl
+++ b/tp/t/results/def/end_of_lines_protected_in_footnote.pl
@@ -334,7 +334,7 @@ $result_trees{'end_of_lines_protected_in_footnote'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/inter_item_commands_in_def.pl 
b/tp/t/results/def/inter_item_commands_in_def.pl
index 1121c537fb..502b54e49a 100644
--- a/tp/t/results/def/inter_item_commands_in_def.pl
+++ b/tp/t/results/def/inter_item_commands_in_def.pl
@@ -552,7 +552,7 @@ $result_trees{'inter_item_commands_in_def'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/inter_item_commands_in_def_in_example.pl 
b/tp/t/results/def/inter_item_commands_in_def_in_example.pl
index bdf66e670e..a1696949a9 100644
--- a/tp/t/results/def/inter_item_commands_in_def_in_example.pl
+++ b/tp/t/results/def/inter_item_commands_in_def_in_example.pl
@@ -617,7 +617,7 @@ $result_trees{'inter_item_commands_in_def_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/leading_space_in_def_arg.pl 
b/tp/t/results/def/leading_space_in_def_arg.pl
index 61cafa22e6..81291ac403 100644
--- a/tp/t/results/def/leading_space_in_def_arg.pl
+++ b/tp/t/results/def/leading_space_in_def_arg.pl
@@ -154,7 +154,7 @@ $result_trees{'leading_space_in_def_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/no_category_or_no_name.pl 
b/tp/t/results/def/no_category_or_no_name.pl
index 299a102b88..b747ec55fc 100644
--- a/tp/t/results/def/no_category_or_no_name.pl
+++ b/tp/t/results/def/no_category_or_no_name.pl
@@ -463,7 +463,7 @@ $result_trees{'no_category_or_no_name'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/not_closed.pl b/tp/t/results/def/not_closed.pl
index c2be52b59d..11b5f6e3ef 100644
--- a/tp/t/results/def/not_closed.pl
+++ b/tp/t/results/def/not_closed.pl
@@ -326,7 +326,7 @@ $result_trees{'not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/protected_brace.pl 
b/tp/t/results/def/protected_brace.pl
index 5d75ed7be7..d80fd308e5 100644
--- a/tp/t/results/def/protected_brace.pl
+++ b/tp/t/results/def/protected_brace.pl
@@ -127,7 +127,7 @@ $result_trees{'protected_brace'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/ref_in_def.pl b/tp/t/results/def/ref_in_def.pl
index b44ee03928..ed6e7e10ae 100644
--- a/tp/t/results/def/ref_in_def.pl
+++ b/tp/t/results/def/ref_in_def.pl
@@ -17,7 +17,7 @@ $result_trees{'ref_in_def'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/def/space_in_def_for_index.pl 
b/tp/t/results/def/space_in_def_for_index.pl
index a0f70a2bea..d9e1db662f 100644
--- a/tp/t/results/def/space_in_def_for_index.pl
+++ b/tp/t/results/def/space_in_def_for_index.pl
@@ -10,7 +10,7 @@ $result_trees{'space_in_def_for_index'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/def/wrong_braces_simple.pl 
b/tp/t/results/def/wrong_braces_simple.pl
index 3494baf05d..5c58bc2529 100644
--- a/tp/t/results/def/wrong_braces_simple.pl
+++ b/tp/t/results/def/wrong_braces_simple.pl
@@ -1410,7 +1410,7 @@ $result_trees{'wrong_braces_simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/def/wrong_braces_with_end_of_lines.pl 
b/tp/t/results/def/wrong_braces_with_end_of_lines.pl
index a076f40278..043080e685 100644
--- a/tp/t/results/def/wrong_braces_with_end_of_lines.pl
+++ b/tp/t/results/def/wrong_braces_with_end_of_lines.pl
@@ -379,7 +379,7 @@ $result_trees{'wrong_braces_with_end_of_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl 
b/tp/t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl
index adbbafa0a7..088469b09d 100644
--- 
a/tp/t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl
+++ 
b/tp/t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl
@@ -142,7 +142,7 @@ 
$result_trees{'empty_quotation_with_arg_followed_by_quotation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/docbook_tests/multiple_documentlanguage.pl 
b/tp/t/results/docbook_tests/multiple_documentlanguage.pl
index 8932023fca..e1ec83c270 100644
--- a/tp/t/results/docbook_tests/multiple_documentlanguage.pl
+++ b/tp/t/results/docbook_tests/multiple_documentlanguage.pl
@@ -46,7 +46,7 @@ $result_trees{'multiple_documentlanguage'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/docbook_tests/special_docbook_unnumbered.pl 
b/tp/t/results/docbook_tests/special_docbook_unnumbered.pl
index 4ea83cdc43..6c097bb8fb 100644
--- a/tp/t/results/docbook_tests/special_docbook_unnumbered.pl
+++ b/tp/t/results/docbook_tests/special_docbook_unnumbered.pl
@@ -10,7 +10,7 @@ $result_trees{'special_docbook_unnumbered'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/anchor_in_caption.pl 
b/tp/t/results/float/anchor_in_caption.pl
index a239ee9c40..fd022fe1db 100644
--- a/tp/t/results/float/anchor_in_caption.pl
+++ b/tp/t/results/float/anchor_in_caption.pl
@@ -10,7 +10,7 @@ $result_trees{'anchor_in_caption'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/cindex_in_caption.pl 
b/tp/t/results/float/cindex_in_caption.pl
index 58e19b1bd9..a45ff9c185 100644
--- a/tp/t/results/float/cindex_in_caption.pl
+++ b/tp/t/results/float/cindex_in_caption.pl
@@ -10,7 +10,7 @@ $result_trees{'cindex_in_caption'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/comment_space_comand_in_float.pl 
b/tp/t/results/float/comment_space_comand_in_float.pl
index 0f7213f184..245ba6faf4 100644
--- a/tp/t/results/float/comment_space_comand_in_float.pl
+++ b/tp/t/results/float/comment_space_comand_in_float.pl
@@ -10,7 +10,7 @@ $result_trees{'comment_space_comand_in_float'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/complex_float.pl 
b/tp/t/results/float/complex_float.pl
index 4dcac96623..bfc96a70a8 100644
--- a/tp/t/results/float/complex_float.pl
+++ b/tp/t/results/float/complex_float.pl
@@ -10,7 +10,7 @@ $result_trees{'complex_float'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/empty_listoffloats.pl 
b/tp/t/results/float/empty_listoffloats.pl
index c1d9a3eac2..4005c23bdd 100644
--- a/tp/t/results/float/empty_listoffloats.pl
+++ b/tp/t/results/float/empty_listoffloats.pl
@@ -36,7 +36,7 @@ $result_trees{'empty_listoffloats'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/float/empty_listoffloats_with_floats.pl 
b/tp/t/results/float/empty_listoffloats_with_floats.pl
index f05591cb2b..a3918d792b 100644
--- a/tp/t/results/float/empty_listoffloats_with_floats.pl
+++ b/tp/t/results/float/empty_listoffloats_with_floats.pl
@@ -446,7 +446,7 @@ $result_trees{'empty_listoffloats_with_floats'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/float/float_copying.pl 
b/tp/t/results/float/float_copying.pl
index b4a980c4de..2d42d808f3 100644
--- a/tp/t/results/float/float_copying.pl
+++ b/tp/t/results/float/float_copying.pl
@@ -612,7 +612,7 @@ $result_trees{'float_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/float_with_at_commands.pl 
b/tp/t/results/float/float_with_at_commands.pl
index aa912b1faf..9c9b78c60f 100644
--- a/tp/t/results/float/float_with_at_commands.pl
+++ b/tp/t/results/float/float_with_at_commands.pl
@@ -416,7 +416,7 @@ $result_trees{'float_with_at_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/float/footnote_in_caption.pl 
b/tp/t/results/float/footnote_in_caption.pl
index 37425a9af3..5d6f89b8a2 100644
--- a/tp/t/results/float/footnote_in_caption.pl
+++ b/tp/t/results/float/footnote_in_caption.pl
@@ -10,7 +10,7 @@ $result_trees{'footnote_in_caption'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/footnote_in_caption_and_error.pl 
b/tp/t/results/float/footnote_in_caption_and_error.pl
index e75f1594de..b981273050 100644
--- a/tp/t/results/float/footnote_in_caption_and_error.pl
+++ b/tp/t/results/float/footnote_in_caption_and_error.pl
@@ -10,7 +10,7 @@ $result_trees{'footnote_in_caption_and_error'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/listoffloats_with_commands.pl 
b/tp/t/results/float/listoffloats_with_commands.pl
index a4a4d71498..549c950657 100644
--- a/tp/t/results/float/listoffloats_with_commands.pl
+++ b/tp/t/results/float/listoffloats_with_commands.pl
@@ -101,7 +101,7 @@ $result_trees{'listoffloats_with_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/float/numbering_captions_listoffloats.pl 
b/tp/t/results/float/numbering_captions_listoffloats.pl
index 52bb626d4d..34315b043f 100644
--- a/tp/t/results/float/numbering_captions_listoffloats.pl
+++ b/tp/t/results/float/numbering_captions_listoffloats.pl
@@ -10,7 +10,7 @@ $result_trees{'numbering_captions_listoffloats'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/float/ref_to_float.pl 
b/tp/t/results/float/ref_to_float.pl
index 5b17c79d12..cd870cd0b4 100644
--- a/tp/t/results/float/ref_to_float.pl
+++ b/tp/t/results/float/ref_to_float.pl
@@ -293,7 +293,7 @@ $result_trees{'ref_to_float'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/float/simple.pl b/tp/t/results/float/simple.pl
index 1038a11a90..fc26325e9b 100644
--- a/tp/t/results/float/simple.pl
+++ b/tp/t/results/float/simple.pl
@@ -144,7 +144,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/formats_encodings/accent.pl 
b/tp/t/results/formats_encodings/accent.pl
index 1bb5d06c7f..6633609d0e 100644
--- a/tp/t/results/formats_encodings/accent.pl
+++ b/tp/t/results/formats_encodings/accent.pl
@@ -10,7 +10,7 @@ $result_trees{'accent'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/accent_enable_encoding.pl 
b/tp/t/results/formats_encodings/accent_enable_encoding.pl
index b21559cc11..4fb04e8a0d 100644
--- a/tp/t/results/formats_encodings/accent_enable_encoding.pl
+++ b/tp/t/results/formats_encodings/accent_enable_encoding.pl
@@ -10,7 +10,7 @@ $result_trees{'accent_enable_encoding'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/accentenc.pl 
b/tp/t/results/formats_encodings/accentenc.pl
index 588c177f00..d23c1cedee 100644
--- a/tp/t/results/formats_encodings/accentenc.pl
+++ b/tp/t/results/formats_encodings/accentenc.pl
@@ -48,7 +48,7 @@ $result_trees{'accentenc'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/accentenc_enable_encoding.pl 
b/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
index f883b4c570..4df5d8b492 100644
--- a/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
+++ b/tp/t/results/formats_encodings/accentenc_enable_encoding.pl
@@ -48,7 +48,7 @@ $result_trees{'accentenc_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/at_commands_in_refs.pl 
b/tp/t/results/formats_encodings/at_commands_in_refs.pl
index d758e8ce02..4d1dcdc0e0 100644
--- a/tp/t/results/formats_encodings/at_commands_in_refs.pl
+++ b/tp/t/results/formats_encodings/at_commands_in_refs.pl
@@ -10,7 +10,7 @@ $result_trees{'at_commands_in_refs'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/at_commands_in_refs_latin1.pl 
b/tp/t/results/formats_encodings/at_commands_in_refs_latin1.pl
index 8d52e216f2..fa6094fb50 100644
--- a/tp/t/results/formats_encodings/at_commands_in_refs_latin1.pl
+++ b/tp/t/results/formats_encodings/at_commands_in_refs_latin1.pl
@@ -77,7 +77,7 @@ $result_trees{'at_commands_in_refs_latin1'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/at_commands_in_refs_utf8.pl 
b/tp/t/results/formats_encodings/at_commands_in_refs_utf8.pl
index ddb47ccc82..92876a4465 100644
--- a/tp/t/results/formats_encodings/at_commands_in_refs_utf8.pl
+++ b/tp/t/results/formats_encodings/at_commands_in_refs_utf8.pl
@@ -77,7 +77,7 @@ $result_trees{'at_commands_in_refs_utf8'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/char_latin1_latin1_in_refs.pl 
b/tp/t/results/formats_encodings/char_latin1_latin1_in_refs.pl
index e48e5e41a9..59961de3c4 100644
--- a/tp/t/results/formats_encodings/char_latin1_latin1_in_refs.pl
+++ b/tp/t/results/formats_encodings/char_latin1_latin1_in_refs.pl
@@ -107,7 +107,7 @@ $result_trees{'char_latin1_latin1_in_refs'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/char_latin1_utf8_in_refs.pl 
b/tp/t/results/formats_encodings/char_latin1_utf8_in_refs.pl
index 039969e5dd..581a9b59b4 100644
--- a/tp/t/results/formats_encodings/char_latin1_utf8_in_refs.pl
+++ b/tp/t/results/formats_encodings/char_latin1_utf8_in_refs.pl
@@ -107,7 +107,7 @@ $result_trees{'char_latin1_utf8_in_refs'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/char_latin2_latin2_in_refs.pl 
b/tp/t/results/formats_encodings/char_latin2_latin2_in_refs.pl
index 65bcb4d3c9..4fe83bfe15 100644
--- a/tp/t/results/formats_encodings/char_latin2_latin2_in_refs.pl
+++ b/tp/t/results/formats_encodings/char_latin2_latin2_in_refs.pl
@@ -101,7 +101,7 @@ $result_trees{'char_latin2_latin2_in_refs'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/formats_encodings/documentencoding_utf8_and_insertions.pl 
b/tp/t/results/formats_encodings/documentencoding_utf8_and_insertions.pl
index 1b9ba0d0c9..d4b3e0c10b 100644
--- a/tp/t/results/formats_encodings/documentencoding_utf8_and_insertions.pl
+++ b/tp/t/results/formats_encodings/documentencoding_utf8_and_insertions.pl
@@ -233,7 +233,7 @@ $result_trees{'documentencoding_utf8_and_insertions'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/formats_encodings/japanese_shift_jis.pl 
b/tp/t/results/formats_encodings/japanese_shift_jis.pl
index 48ad76a8f6..f219e82f0c 100644
--- a/tp/t/results/formats_encodings/japanese_shift_jis.pl
+++ b/tp/t/results/formats_encodings/japanese_shift_jis.pl
@@ -158,7 +158,7 @@ $result_trees{'japanese_shift_jis'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/formats_encodings/no_documentencoding_and_insertions.pl 
b/tp/t/results/formats_encodings/no_documentencoding_and_insertions.pl
index a6ce5ed1cb..adc0854016 100644
--- a/tp/t/results/formats_encodings/no_documentencoding_and_insertions.pl
+++ b/tp/t/results/formats_encodings/no_documentencoding_and_insertions.pl
@@ -202,7 +202,7 @@ $result_trees{'no_documentencoding_and_insertions'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/formats_encodings/sample_utf8.pl 
b/tp/t/results/formats_encodings/sample_utf8.pl
index f8fb02331b..e0f22b51f9 100644
--- a/tp/t/results/formats_encodings/sample_utf8.pl
+++ b/tp/t/results/formats_encodings/sample_utf8.pl
@@ -437,7 +437,7 @@ $result_trees{'sample_utf8'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/weird_accents.pl 
b/tp/t/results/formats_encodings/weird_accents.pl
index cf90eb74d6..72dfa0fca2 100644
--- a/tp/t/results/formats_encodings/weird_accents.pl
+++ b/tp/t/results/formats_encodings/weird_accents.pl
@@ -48,7 +48,7 @@ $result_trees{'weird_accents'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formats_encodings/weird_accents_disable_encoding.pl 
b/tp/t/results/formats_encodings/weird_accents_disable_encoding.pl
index 77a84037a0..99ef849113 100644
--- a/tp/t/results/formats_encodings/weird_accents_disable_encoding.pl
+++ b/tp/t/results/formats_encodings/weird_accents_disable_encoding.pl
@@ -48,7 +48,7 @@ $result_trees{'weird_accents_disable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/cond.pl b/tp/t/results/formatting/cond.pl
index d1bdeae742..0fa40c5b38 100644
--- a/tp/t/results/formatting/cond.pl
+++ b/tp/t/results/formatting/cond.pl
@@ -64,7 +64,7 @@ $result_trees{'cond'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/cond_ifhtml_ifinfo_iftex.pl 
b/tp/t/results/formatting/cond_ifhtml_ifinfo_iftex.pl
index 078fed6102..0501299c09 100644
--- a/tp/t/results/formatting/cond_ifhtml_ifinfo_iftex.pl
+++ b/tp/t/results/formatting/cond_ifhtml_ifinfo_iftex.pl
@@ -64,7 +64,7 @@ $result_trees{'cond_ifhtml_ifinfo_iftex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/cond_info.pl 
b/tp/t/results/formatting/cond_info.pl
index 9d4987bc4f..678191f398 100644
--- a/tp/t/results/formatting/cond_info.pl
+++ b/tp/t/results/formatting/cond_info.pl
@@ -64,7 +64,7 @@ $result_trees{'cond_info'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/cond_info_ifhtml_ifinfo_iftex.pl 
b/tp/t/results/formatting/cond_info_ifhtml_ifinfo_iftex.pl
index 9ea5fa6066..9b97a44dff 100644
--- a/tp/t/results/formatting/cond_info_ifhtml_ifinfo_iftex.pl
+++ b/tp/t/results/formatting/cond_info_ifhtml_ifinfo_iftex.pl
@@ -64,7 +64,7 @@ $result_trees{'cond_info_ifhtml_ifinfo_iftex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/cond_info_no-ifhtml_no-ifinfo_no-iftex.pl 
b/tp/t/results/formatting/cond_info_no-ifhtml_no-ifinfo_no-iftex.pl
index a0b92cf3f3..5967dae623 100644
--- a/tp/t/results/formatting/cond_info_no-ifhtml_no-ifinfo_no-iftex.pl
+++ b/tp/t/results/formatting/cond_info_no-ifhtml_no-ifinfo_no-iftex.pl
@@ -64,7 +64,7 @@ $result_trees{'cond_info_no-ifhtml_no-ifinfo_no-iftex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/cond_no-ifhtml_no-ifinfo_no-iftex.pl 
b/tp/t/results/formatting/cond_no-ifhtml_no-ifinfo_no-iftex.pl
index 6d9d337543..0ab7da837b 100644
--- a/tp/t/results/formatting/cond_no-ifhtml_no-ifinfo_no-iftex.pl
+++ b/tp/t/results/formatting/cond_no-ifhtml_no-ifinfo_no-iftex.pl
@@ -64,7 +64,7 @@ $result_trees{'cond_no-ifhtml_no-ifinfo_no-iftex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/cond_xml.pl 
b/tp/t/results/formatting/cond_xml.pl
index 0bcc03efa5..e5a6a5a247 100644
--- a/tp/t/results/formatting/cond_xml.pl
+++ b/tp/t/results/formatting/cond_xml.pl
@@ -64,7 +64,7 @@ $result_trees{'cond_xml'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/defcondx_Dbar.pl 
b/tp/t/results/formatting/defcondx_Dbar.pl
index 5719f59cb2..7787e4f707 100644
--- a/tp/t/results/formatting/defcondx_Dbar.pl
+++ b/tp/t/results/formatting/defcondx_Dbar.pl
@@ -298,7 +298,7 @@ $result_trees{'defcondx_Dbar'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/defcondx_Ubar.pl 
b/tp/t/results/formatting/defcondx_Ubar.pl
index 3af3d2e3e5..00d6e3efc8 100644
--- a/tp/t/results/formatting/defcondx_Ubar.pl
+++ b/tp/t/results/formatting/defcondx_Ubar.pl
@@ -250,7 +250,7 @@ $result_trees{'defcondx_Ubar'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/direntry_dircategory_info_split.pl 
b/tp/t/results/formatting/direntry_dircategory_info_split.pl
index d3a78aa553..18c72eb7ab 100644
--- a/tp/t/results/formatting/direntry_dircategory_info_split.pl
+++ b/tp/t/results/formatting/direntry_dircategory_info_split.pl
@@ -473,7 +473,7 @@ $result_trees{'direntry_dircategory_info_split'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/documentlanguage_set_option.pl 
b/tp/t/results/formatting/documentlanguage_set_option.pl
index 6b675eeaf6..f54c033b64 100644
--- a/tp/t/results/formatting/documentlanguage_set_option.pl
+++ b/tp/t/results/formatting/documentlanguage_set_option.pl
@@ -147,7 +147,7 @@ $result_trees{'documentlanguage_set_option'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/documentlanguage_set_option_info.pl 
b/tp/t/results/formatting/documentlanguage_set_option_info.pl
index 01235cd992..52fbce7528 100644
--- a/tp/t/results/formatting/documentlanguage_set_option_info.pl
+++ b/tp/t/results/formatting/documentlanguage_set_option_info.pl
@@ -147,7 +147,7 @@ $result_trees{'documentlanguage_set_option_info'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/documentlanguage_set_unknown.pl 
b/tp/t/results/formatting/documentlanguage_set_unknown.pl
index c4186d2388..6f438e9f3c 100644
--- a/tp/t/results/formatting/documentlanguage_set_unknown.pl
+++ b/tp/t/results/formatting/documentlanguage_set_unknown.pl
@@ -147,7 +147,7 @@ $result_trees{'documentlanguage_set_unknown'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/empty.pl b/tp/t/results/formatting/empty.pl
index cae5a52b3e..39d7c79c14 100644
--- a/tp/t/results/formatting/empty.pl
+++ b/tp/t/results/formatting/empty.pl
@@ -10,7 +10,7 @@ $result_trees{'empty'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/formatting/float_copying.pl 
b/tp/t/results/formatting/float_copying.pl
index 820c523a34..f953adb33b 100644
--- a/tp/t/results/formatting/float_copying.pl
+++ b/tp/t/results/formatting/float_copying.pl
@@ -671,7 +671,7 @@ $result_trees{'float_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/one_line.pl 
b/tp/t/results/formatting/one_line.pl
index a67a36e78f..04c93abeb4 100644
--- a/tp/t/results/formatting/one_line.pl
+++ b/tp/t/results/formatting/one_line.pl
@@ -22,7 +22,7 @@ $result_trees{'one_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/formatting/one_line_no_content.pl 
b/tp/t/results/formatting/one_line_no_content.pl
index afec15edf6..ee6dec29b0 100644
--- a/tp/t/results/formatting/one_line_no_content.pl
+++ b/tp/t/results/formatting/one_line_no_content.pl
@@ -23,7 +23,7 @@ $result_trees{'one_line_no_content'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/formatting/simplest_test_date_in_header.pl 
b/tp/t/results/formatting/simplest_test_date_in_header.pl
index 948d011dd5..f02223e2bb 100644
--- a/tp/t/results/formatting/simplest_test_date_in_header.pl
+++ b/tp/t/results/formatting/simplest_test_date_in_header.pl
@@ -70,7 +70,7 @@ $result_trees{'simplest_test_date_in_header'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/simplest_test_prefix.pl 
b/tp/t/results/formatting/simplest_test_prefix.pl
index 5b7b00586f..cc81058f63 100644
--- a/tp/t/results/formatting/simplest_test_prefix.pl
+++ b/tp/t/results/formatting/simplest_test_prefix.pl
@@ -70,7 +70,7 @@ $result_trees{'simplest_test_prefix'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/simplest_test_prefix_info.pl 
b/tp/t/results/formatting/simplest_test_prefix_info.pl
index 9fd21b22c9..7764f0aee4 100644
--- a/tp/t/results/formatting/simplest_test_prefix_info.pl
+++ b/tp/t/results/formatting/simplest_test_prefix_info.pl
@@ -70,7 +70,7 @@ $result_trees{'simplest_test_prefix_info'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/split_for_format_not_split.pl 
b/tp/t/results/formatting/split_for_format_not_split.pl
index 02e0a2bf00..5ff5ec2297 100644
--- a/tp/t/results/formatting/split_for_format_not_split.pl
+++ b/tp/t/results/formatting/split_for_format_not_split.pl
@@ -70,7 +70,7 @@ $result_trees{'split_for_format_not_split'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/split_nocopying.pl 
b/tp/t/results/formatting/split_nocopying.pl
index 3297c67738..bc7e796fb0 100644
--- a/tp/t/results/formatting/split_nocopying.pl
+++ b/tp/t/results/formatting/split_nocopying.pl
@@ -64,7 +64,7 @@ $result_trees{'split_nocopying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/split_nocopying_split.pl 
b/tp/t/results/formatting/split_nocopying_split.pl
index 49e8a1e424..f488c11e40 100644
--- a/tp/t/results/formatting/split_nocopying_split.pl
+++ b/tp/t/results/formatting/split_nocopying_split.pl
@@ -64,7 +64,7 @@ $result_trees{'split_nocopying_split'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/texi_bib_example.pl 
b/tp/t/results/formatting/texi_bib_example.pl
index f43f3bfc3d..c4fbef2a3d 100644
--- a/tp/t/results/formatting/texi_bib_example.pl
+++ b/tp/t/results/formatting/texi_bib_example.pl
@@ -3742,7 +3742,7 @@ $result_trees{'texi_bib_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/texi_cond.pl 
b/tp/t/results/formatting/texi_cond.pl
index 7f5249ec63..721311b880 100644
--- a/tp/t/results/formatting/texi_cond.pl
+++ b/tp/t/results/formatting/texi_cond.pl
@@ -64,7 +64,7 @@ $result_trees{'texi_cond'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/formatting/texi_glossary.pl 
b/tp/t/results/formatting/texi_glossary.pl
index f03690d422..dbae8a11c4 100644
--- a/tp/t/results/formatting/texi_glossary.pl
+++ b/tp/t/results/formatting/texi_glossary.pl
@@ -341,7 +341,7 @@ $result_trees{'texi_glossary'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/heading/heading_in_copying.pl 
b/tp/t/results/heading/heading_in_copying.pl
index d238cd3ebd..2bd66d17c8 100644
--- a/tp/t/results/heading/heading_in_copying.pl
+++ b/tp/t/results/heading/heading_in_copying.pl
@@ -241,7 +241,7 @@ $result_trees{'heading_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/heading/heading_in_example.pl 
b/tp/t/results/heading/heading_in_example.pl
index f2999c8abc..e9fca1e419 100644
--- a/tp/t/results/heading/heading_in_example.pl
+++ b/tp/t/results/heading/heading_in_example.pl
@@ -123,7 +123,7 @@ $result_trees{'heading_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/heading/heading_in_quotation.pl 
b/tp/t/results/heading/heading_in_quotation.pl
index 3444e28eed..77fe42a145 100644
--- a/tp/t/results/heading/heading_in_quotation.pl
+++ b/tp/t/results/heading/heading_in_quotation.pl
@@ -135,7 +135,7 @@ $result_trees{'heading_in_quotation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/character_number_leading_toc_stoc.pl 
b/tp/t/results/html_tests/character_number_leading_toc_stoc.pl
index d1daba9dcd..883a59873c 100644
--- a/tp/t/results/html_tests/character_number_leading_toc_stoc.pl
+++ b/tp/t/results/html_tests/character_number_leading_toc_stoc.pl
@@ -10,7 +10,7 @@ $result_trees{'character_number_leading_toc_stoc'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/check_htmlxref.pl 
b/tp/t/results/html_tests/check_htmlxref.pl
index d02cbad534..76efa8e12a 100644
--- a/tp/t/results/html_tests/check_htmlxref.pl
+++ b/tp/t/results/html_tests/check_htmlxref.pl
@@ -17,7 +17,7 @@ $result_trees{'check_htmlxref'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/commands_in_abbr.pl 
b/tp/t/results/html_tests/commands_in_abbr.pl
index 96f7e20910..1ad1ab7e2e 100644
--- a/tp/t/results/html_tests/commands_in_abbr.pl
+++ b/tp/t/results/html_tests/commands_in_abbr.pl
@@ -206,7 +206,7 @@ $result_trees{'commands_in_abbr'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/commands_in_alt.pl 
b/tp/t/results/html_tests/commands_in_alt.pl
index f28b2cff74..6e0e4de095 100644
--- a/tp/t/results/html_tests/commands_in_alt.pl
+++ b/tp/t/results/html_tests/commands_in_alt.pl
@@ -220,7 +220,7 @@ $result_trees{'commands_in_alt'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/commands_in_email.pl 
b/tp/t/results/html_tests/commands_in_email.pl
index 692154d552..c1f5624966 100644
--- a/tp/t/results/html_tests/commands_in_email.pl
+++ b/tp/t/results/html_tests/commands_in_email.pl
@@ -82,7 +82,7 @@ $result_trees{'commands_in_email'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl 
b/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
index 3bcffaf8d3..20c486634f 100644
--- a/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
+++ b/tp/t/results/html_tests/deftypefnnewline_for_copying_after.pl
@@ -324,7 +324,7 @@ $result_trees{'deftypefnnewline_for_copying_after'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl 
b/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
index a668533110..083891dbbf 100644
--- a/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
+++ b/tp/t/results/html_tests/deftypefnnewline_for_copying_before.pl
@@ -284,7 +284,7 @@ $result_trees{'deftypefnnewline_for_copying_before'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/documentdescription.pl 
b/tp/t/results/html_tests/documentdescription.pl
index 46e64749f1..e7a0f85d8e 100644
--- a/tp/t/results/html_tests/documentdescription.pl
+++ b/tp/t/results/html_tests/documentdescription.pl
@@ -292,7 +292,7 @@ $result_trees{'documentdescription'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl 
b/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl
index ea76ba9ddd..8a776ee21b 100644
--- a/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl
+++ b/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename.pl
@@ -59,7 +59,7 @@ $result_trees{'empty_lines_at_beginning_no_setfilename'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename_no_element.pl 
b/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename_no_element.pl
index 690aab87fe..38f66986c2 100644
--- 
a/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename_no_element.pl
+++ 
b/tp/t/results/html_tests/empty_lines_at_beginning_no_setfilename_no_element.pl
@@ -86,7 +86,7 @@ 
$result_trees{'empty_lines_at_beginning_no_setfilename_no_element'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/example_at_commands_arguments.pl 
b/tp/t/results/html_tests/example_at_commands_arguments.pl
index cc8ea5f728..20d3cbd0ee 100644
--- a/tp/t/results/html_tests/example_at_commands_arguments.pl
+++ b/tp/t/results/html_tests/example_at_commands_arguments.pl
@@ -247,7 +247,7 @@ $result_trees{'example_at_commands_arguments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/example_class.pl 
b/tp/t/results/html_tests/example_class.pl
index bde6a60a95..210e921adc 100644
--- a/tp/t/results/html_tests/example_class.pl
+++ b/tp/t/results/html_tests/example_class.pl
@@ -170,7 +170,7 @@ $result_trees{'example_class'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/example_empty_arguments.pl 
b/tp/t/results/html_tests/example_empty_arguments.pl
index cf2b0a01ec..bc5078200f 100644
--- a/tp/t/results/html_tests/example_empty_arguments.pl
+++ b/tp/t/results/html_tests/example_empty_arguments.pl
@@ -343,7 +343,7 @@ $result_trees{'example_empty_arguments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/example_multi_class.pl 
b/tp/t/results/html_tests/example_multi_class.pl
index 838789ca31..d74ac12b4d 100644
--- a/tp/t/results/html_tests/example_multi_class.pl
+++ b/tp/t/results/html_tests/example_multi_class.pl
@@ -248,7 +248,7 @@ $result_trees{'example_multi_class'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/footnotestyle_separate_late.pl 
b/tp/t/results/html_tests/footnotestyle_separate_late.pl
index 760ddeed4c..b1f447c87a 100644
--- a/tp/t/results/html_tests/footnotestyle_separate_late.pl
+++ b/tp/t/results/html_tests/footnotestyle_separate_late.pl
@@ -47,7 +47,7 @@ $result_trees{'footnotestyle_separate_late'} = [
           }
         ],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/html_tests/html_in_copying.pl 
b/tp/t/results/html_tests/html_in_copying.pl
index 68c7605a03..922062c7e6 100644
--- a/tp/t/results/html_tests/html_in_copying.pl
+++ b/tp/t/results/html_tests/html_in_copying.pl
@@ -157,7 +157,7 @@ $result_trees{'html_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/image_link_prefix.pl 
b/tp/t/results/html_tests/image_link_prefix.pl
index 9b4dc05017..7a454bed49 100644
--- a/tp/t/results/html_tests/image_link_prefix.pl
+++ b/tp/t/results/html_tests/image_link_prefix.pl
@@ -36,7 +36,7 @@ $result_trees{'image_link_prefix'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/index_and_node_same_name.pl 
b/tp/t/results/html_tests/index_and_node_same_name.pl
index 07e0489d6d..fc24ed4430 100644
--- a/tp/t/results/html_tests/index_and_node_same_name.pl
+++ b/tp/t/results/html_tests/index_and_node_same_name.pl
@@ -10,7 +10,7 @@ $result_trees{'index_and_node_same_name'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/index_below.pl 
b/tp/t/results/html_tests/index_below.pl
index 6daa2e3714..50982d12e8 100644
--- a/tp/t/results/html_tests/index_below.pl
+++ b/tp/t/results/html_tests/index_below.pl
@@ -11,7 +11,7 @@ $result_trees{'index_below'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/html_tests/no_use_iso.pl 
b/tp/t/results/html_tests/no_use_iso.pl
index 3b393de4c2..a6c4c6462f 100644
--- a/tp/t/results/html_tests/no_use_iso.pl
+++ b/tp/t/results/html_tests/no_use_iso.pl
@@ -47,7 +47,7 @@ $result_trees{'no_use_iso'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/raw_html.pl 
b/tp/t/results/html_tests/raw_html.pl
index f1dee88a96..53a51ec84e 100644
--- a/tp/t/results/html_tests/raw_html.pl
+++ b/tp/t/results/html_tests/raw_html.pl
@@ -75,7 +75,7 @@ $result_trees{'raw_html'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/redirection_same_labels.pl 
b/tp/t/results/html_tests/redirection_same_labels.pl
index e228f251cf..875cf69a2f 100644
--- a/tp/t/results/html_tests/redirection_same_labels.pl
+++ b/tp/t/results/html_tests/redirection_same_labels.pl
@@ -47,7 +47,7 @@ $result_trees{'redirection_same_labels'} = [
           }
         ],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/html_tests/ref_in_preformatted.pl 
b/tp/t/results/html_tests/ref_in_preformatted.pl
index 29272972f8..4ab8653093 100644
--- a/tp/t/results/html_tests/ref_in_preformatted.pl
+++ b/tp/t/results/html_tests/ref_in_preformatted.pl
@@ -10,7 +10,7 @@ $result_trees{'ref_in_preformatted'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/shortcontents_no_top.pl 
b/tp/t/results/html_tests/shortcontents_no_top.pl
index 1611f8dc16..f4c41865d0 100644
--- a/tp/t/results/html_tests/shortcontents_no_top.pl
+++ b/tp/t/results/html_tests/shortcontents_no_top.pl
@@ -10,7 +10,7 @@ $result_trees{'shortcontents_no_top'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/simple_menu.pl 
b/tp/t/results/html_tests/simple_menu.pl
index d6485c3ed5..e1d1f3e0a8 100644
--- a/tp/t/results/html_tests/simple_menu.pl
+++ b/tp/t/results/html_tests/simple_menu.pl
@@ -17,7 +17,7 @@ $result_trees{'simple_menu'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/test_accents_sc_default.pl 
b/tp/t/results/html_tests/test_accents_sc_default.pl
index 29f9321edd..566e02434d 100644
--- a/tp/t/results/html_tests/test_accents_sc_default.pl
+++ b/tp/t/results/html_tests/test_accents_sc_default.pl
@@ -983,7 +983,7 @@ $result_trees{'test_accents_sc_default'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/test_accents_sc_default_latin1.pl 
b/tp/t/results/html_tests/test_accents_sc_default_latin1.pl
index 971ecf2f33..837532d2e1 100644
--- a/tp/t/results/html_tests/test_accents_sc_default_latin1.pl
+++ b/tp/t/results/html_tests/test_accents_sc_default_latin1.pl
@@ -983,7 +983,7 @@ $result_trees{'test_accents_sc_default_latin1'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/test_accents_sc_default_usascii.pl 
b/tp/t/results/html_tests/test_accents_sc_default_usascii.pl
index e7b6654fb3..b9ec6d919f 100644
--- a/tp/t/results/html_tests/test_accents_sc_default_usascii.pl
+++ b/tp/t/results/html_tests/test_accents_sc_default_usascii.pl
@@ -983,7 +983,7 @@ $result_trees{'test_accents_sc_default_usascii'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/test_accents_sc_enable_encoding.pl 
b/tp/t/results/html_tests/test_accents_sc_enable_encoding.pl
index d6ba8eb647..718175c96c 100644
--- a/tp/t/results/html_tests/test_accents_sc_enable_encoding.pl
+++ b/tp/t/results/html_tests/test_accents_sc_enable_encoding.pl
@@ -983,7 +983,7 @@ $result_trees{'test_accents_sc_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/test_accents_sc_enable_encoding_latin1.pl 
b/tp/t/results/html_tests/test_accents_sc_enable_encoding_latin1.pl
index a279781b10..d933017829 100644
--- a/tp/t/results/html_tests/test_accents_sc_enable_encoding_latin1.pl
+++ b/tp/t/results/html_tests/test_accents_sc_enable_encoding_latin1.pl
@@ -983,7 +983,7 @@ $result_trees{'test_accents_sc_enable_encoding_latin1'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/test_accents_sc_enable_encoding_usascii.pl 
b/tp/t/results/html_tests/test_accents_sc_enable_encoding_usascii.pl
index c8737e82f2..02cd3dfae4 100644
--- a/tp/t/results/html_tests/test_accents_sc_enable_encoding_usascii.pl
+++ b/tp/t/results/html_tests/test_accents_sc_enable_encoding_usascii.pl
@@ -983,7 +983,7 @@ $result_trees{'test_accents_sc_enable_encoding_usascii'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/test_accents_sc_use_numeric_entity.pl 
b/tp/t/results/html_tests/test_accents_sc_use_numeric_entity.pl
index fe63e47126..eee518a8b7 100644
--- a/tp/t/results/html_tests/test_accents_sc_use_numeric_entity.pl
+++ b/tp/t/results/html_tests/test_accents_sc_use_numeric_entity.pl
@@ -983,7 +983,7 @@ $result_trees{'test_accents_sc_use_numeric_entity'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/test_xrefautomaticsectiontitle.pl 
b/tp/t/results/html_tests/test_xrefautomaticsectiontitle.pl
index 5e8653fe01..6a9b3167ea 100644
--- a/tp/t/results/html_tests/test_xrefautomaticsectiontitle.pl
+++ b/tp/t/results/html_tests/test_xrefautomaticsectiontitle.pl
@@ -10,7 +10,7 @@ $result_trees{'test_xrefautomaticsectiontitle'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/html_tests/test_xrefautomaticsectiontitle_off_first.pl 
b/tp/t/results/html_tests/test_xrefautomaticsectiontitle_off_first.pl
index a040d609a2..af4c33473f 100644
--- a/tp/t/results/html_tests/test_xrefautomaticsectiontitle_off_first.pl
+++ b/tp/t/results/html_tests/test_xrefautomaticsectiontitle_off_first.pl
@@ -54,7 +54,7 @@ $result_trees{'test_xrefautomaticsectiontitle_off_first'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/tex_expanded_in_copying.pl 
b/tp/t/results/html_tests/tex_expanded_in_copying.pl
index ec4a73890c..1954d19409 100644
--- a/tp/t/results/html_tests/tex_expanded_in_copying.pl
+++ b/tp/t/results/html_tests/tex_expanded_in_copying.pl
@@ -128,7 +128,7 @@ $result_trees{'tex_expanded_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/html_tests/text_before_top_and_contents_after_title.pl 
b/tp/t/results/html_tests/text_before_top_and_contents_after_title.pl
index a75b2b9ec3..9556e5b158 100644
--- a/tp/t/results/html_tests/text_before_top_and_contents_after_title.pl
+++ b/tp/t/results/html_tests/text_before_top_and_contents_after_title.pl
@@ -34,7 +34,7 @@ $result_trees{'text_before_top_and_contents_after_title'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/html_tests/text_before_top_and_summarycontents_after_title.pl 
b/tp/t/results/html_tests/text_before_top_and_summarycontents_after_title.pl
index 90cf774942..7a3bed6a22 100644
--- a/tp/t/results/html_tests/text_before_top_and_summarycontents_after_title.pl
+++ b/tp/t/results/html_tests/text_before_top_and_summarycontents_after_title.pl
@@ -34,7 +34,7 @@ 
$result_trees{'text_before_top_and_summarycontents_after_title'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/titles.pl 
b/tp/t/results/html_tests/titles.pl
index debacb7d29..5d2ca163b1 100644
--- a/tp/t/results/html_tests/titles.pl
+++ b/tp/t/results/html_tests/titles.pl
@@ -126,7 +126,7 @@ $result_trees{'titles'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/html_tests/utf8_default.pl 
b/tp/t/results/html_tests/utf8_default.pl
index 96dfe21eda..140311dbcd 100644
--- a/tp/t/results/html_tests/utf8_default.pl
+++ b/tp/t/results/html_tests/utf8_default.pl
@@ -84,7 +84,7 @@ $result_trees{'utf8_default'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/utf8_enable_encoding.pl 
b/tp/t/results/html_tests/utf8_enable_encoding.pl
index c605e7eaf9..aea1d3267d 100644
--- a/tp/t/results/html_tests/utf8_enable_encoding.pl
+++ b/tp/t/results/html_tests/utf8_enable_encoding.pl
@@ -84,7 +84,7 @@ $result_trees{'utf8_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/utf8_enable_encoding_no_use_iso.pl 
b/tp/t/results/html_tests/utf8_enable_encoding_no_use_iso.pl
index 23ff2ca856..693d069a4e 100644
--- a/tp/t/results/html_tests/utf8_enable_encoding_no_use_iso.pl
+++ b/tp/t/results/html_tests/utf8_enable_encoding_no_use_iso.pl
@@ -84,7 +84,7 @@ $result_trees{'utf8_enable_encoding_no_use_iso'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/utf8_enable_encoding_use_numeric_entity.pl 
b/tp/t/results/html_tests/utf8_enable_encoding_use_numeric_entity.pl
index ac6b4a9e83..209b8072ee 100644
--- a/tp/t/results/html_tests/utf8_enable_encoding_use_numeric_entity.pl
+++ b/tp/t/results/html_tests/utf8_enable_encoding_use_numeric_entity.pl
@@ -84,7 +84,7 @@ $result_trees{'utf8_enable_encoding_use_numeric_entity'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/utf8_use_numeric_entity.pl 
b/tp/t/results/html_tests/utf8_use_numeric_entity.pl
index 66e076ffc9..9bd6adb430 100644
--- a/tp/t/results/html_tests/utf8_use_numeric_entity.pl
+++ b/tp/t/results/html_tests/utf8_use_numeric_entity.pl
@@ -84,7 +84,7 @@ $result_trees{'utf8_use_numeric_entity'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/verbatim_in_multitable_in_example.pl 
b/tp/t/results/html_tests/verbatim_in_multitable_in_example.pl
index 03552be3b0..9ac54648b9 100644
--- a/tp/t/results/html_tests/verbatim_in_multitable_in_example.pl
+++ b/tp/t/results/html_tests/verbatim_in_multitable_in_example.pl
@@ -335,7 +335,7 @@ $result_trees{'verbatim_in_multitable_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/html_tests/xml_protected_in_verb.pl 
b/tp/t/results/html_tests/xml_protected_in_verb.pl
index 757c7a80e3..3fc6421c5a 100644
--- a/tp/t/results/html_tests/xml_protected_in_verb.pl
+++ b/tp/t/results/html_tests/xml_protected_in_verb.pl
@@ -122,7 +122,7 @@ $result_trees{'xml_protected_in_verb'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/htmlxref/htmlxref.pl 
b/tp/t/results/htmlxref/htmlxref.pl
index b9cc37d7cf..4048c40efe 100644
--- a/tp/t/results/htmlxref/htmlxref.pl
+++ b/tp/t/results/htmlxref/htmlxref.pl
@@ -64,7 +64,7 @@ $result_trees{'htmlxref'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/htmlxref/htmlxref_nodes.pl 
b/tp/t/results/htmlxref/htmlxref_nodes.pl
index 0e0fd74f68..d91dc0e913 100644
--- a/tp/t/results/htmlxref/htmlxref_nodes.pl
+++ b/tp/t/results/htmlxref/htmlxref_nodes.pl
@@ -64,7 +64,7 @@ $result_trees{'htmlxref_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/htmlxref/htmlxref_only_mono.pl 
b/tp/t/results/htmlxref/htmlxref_only_mono.pl
index fe7ab5d869..c2d68fbcf0 100644
--- a/tp/t/results/htmlxref/htmlxref_only_mono.pl
+++ b/tp/t/results/htmlxref/htmlxref_only_mono.pl
@@ -64,7 +64,7 @@ $result_trees{'htmlxref_only_mono'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/htmlxref/htmlxref_only_mono_nodes.pl 
b/tp/t/results/htmlxref/htmlxref_only_mono_nodes.pl
index 5fc22bb05e..28e88ae50c 100644
--- a/tp/t/results/htmlxref/htmlxref_only_mono_nodes.pl
+++ b/tp/t/results/htmlxref/htmlxref_only_mono_nodes.pl
@@ -64,7 +64,7 @@ $result_trees{'htmlxref_only_mono_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/htmlxref/htmlxref_only_split.pl 
b/tp/t/results/htmlxref/htmlxref_only_split.pl
index e3009a7764..46bd9cb820 100644
--- a/tp/t/results/htmlxref/htmlxref_only_split.pl
+++ b/tp/t/results/htmlxref/htmlxref_only_split.pl
@@ -64,7 +64,7 @@ $result_trees{'htmlxref_only_split'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/htmlxref/htmlxref_only_split_nodes.pl 
b/tp/t/results/htmlxref/htmlxref_only_split_nodes.pl
index 521a6640a6..18cfd0e3e6 100644
--- a/tp/t/results/htmlxref/htmlxref_only_split_nodes.pl
+++ b/tp/t/results/htmlxref/htmlxref_only_split_nodes.pl
@@ -64,7 +64,7 @@ $result_trees{'htmlxref_only_split_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/include/cpp_lines.pl 
b/tp/t/results/include/cpp_lines.pl
index 8c30eb2cad..628dcaa426 100644
--- a/tp/t/results/include/cpp_lines.pl
+++ b/tp/t/results/include/cpp_lines.pl
@@ -109,7 +109,7 @@ $result_trees{'cpp_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/include/double_include.pl 
b/tp/t/results/include/double_include.pl
index 30dd2ffeca..b6d73af896 100644
--- a/tp/t/results/include/double_include.pl
+++ b/tp/t/results/include/double_include.pl
@@ -33,7 +33,7 @@ $result_trees{'double_include'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/include_at_end_line.pl 
b/tp/t/results/include/include_at_end_line.pl
index 32d32dc808..6f62f5e6bb 100644
--- a/tp/t/results/include/include_at_end_line.pl
+++ b/tp/t/results/include/include_at_end_line.pl
@@ -57,7 +57,7 @@ $result_trees{'include_at_end_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/include_comment.pl 
b/tp/t/results/include/include_comment.pl
index 3178ad87ed..1d9c002a43 100644
--- a/tp/t/results/include/include_comment.pl
+++ b/tp/t/results/include/include_comment.pl
@@ -22,7 +22,7 @@ $result_trees{'include_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/include_setfilename_on_setfilename_line.pl 
b/tp/t/results/include/include_setfilename_on_setfilename_line.pl
index ce02e866d0..d566ed1288 100644
--- a/tp/t/results/include/include_setfilename_on_setfilename_line.pl
+++ b/tp/t/results/include/include_setfilename_on_setfilename_line.pl
@@ -90,7 +90,7 @@ $result_trees{'include_setfilename_on_setfilename_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/include_space.pl 
b/tp/t/results/include/include_space.pl
index 12d32211b2..34b2c87782 100644
--- a/tp/t/results/include/include_space.pl
+++ b/tp/t/results/include/include_space.pl
@@ -22,7 +22,7 @@ $result_trees{'include_space'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/include_space_comment.pl 
b/tp/t/results/include/include_space_comment.pl
index 2b64d242a9..f6e6d01205 100644
--- a/tp/t/results/include/include_space_comment.pl
+++ b/tp/t/results/include/include_space_comment.pl
@@ -22,7 +22,7 @@ $result_trees{'include_space_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/include_with_setfilename.pl 
b/tp/t/results/include/include_with_setfilename.pl
index 463bca67f1..b118c3abbb 100644
--- a/tp/t/results/include/include_with_setfilename.pl
+++ b/tp/t/results/include/include_with_setfilename.pl
@@ -57,7 +57,7 @@ $result_trees{'include_with_setfilename'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/macro_and_commands_in_early_commands.pl 
b/tp/t/results/include/macro_and_commands_in_early_commands.pl
index a3f67de982..4258c6f396 100644
--- a/tp/t/results/include/macro_and_commands_in_early_commands.pl
+++ b/tp/t/results/include/macro_and_commands_in_early_commands.pl
@@ -234,7 +234,7 @@ $result_trees{'macro_and_commands_in_early_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/include/macro_definition_in_include.pl 
b/tp/t/results/include/macro_definition_in_include.pl
index 187b9cd084..7fb83561ed 100644
--- a/tp/t/results/include/macro_definition_in_include.pl
+++ b/tp/t/results/include/macro_definition_in_include.pl
@@ -72,7 +72,7 @@ $result_trees{'macro_definition_in_include'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/macro_in_early_commands.pl 
b/tp/t/results/include/macro_in_early_commands.pl
index 3f3973d9f0..3cbfd5e072 100644
--- a/tp/t/results/include/macro_in_early_commands.pl
+++ b/tp/t/results/include/macro_in_early_commands.pl
@@ -313,7 +313,7 @@ $result_trees{'macro_in_early_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/include/no_eol_in_included_file.pl 
b/tp/t/results/include/no_eol_in_included_file.pl
index ddd5be4f60..b9f53aedf7 100644
--- a/tp/t/results/include/no_eol_in_included_file.pl
+++ b/tp/t/results/include/no_eol_in_included_file.pl
@@ -32,7 +32,7 @@ $result_trees{'no_eol_in_included_file'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/simple.pl b/tp/t/results/include/simple.pl
index 59f696b6b4..3ab3a36524 100644
--- a/tp/t/results/include/simple.pl
+++ b/tp/t/results/include/simple.pl
@@ -22,7 +22,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/simple_no_eol.pl 
b/tp/t/results/include/simple_no_eol.pl
index 0f62741c42..c743121254 100644
--- a/tp/t/results/include/simple_no_eol.pl
+++ b/tp/t/results/include/simple_no_eol.pl
@@ -22,7 +22,7 @@ $result_trees{'simple_no_eol'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/value_expansion_in_include.pl 
b/tp/t/results/include/value_expansion_in_include.pl
index 647928bffc..f58b82691a 100644
--- a/tp/t/results/include/value_expansion_in_include.pl
+++ b/tp/t/results/include/value_expansion_in_include.pl
@@ -143,7 +143,7 @@ $result_trees{'value_expansion_in_include'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/include/verbatiminclude_and_encoding.pl 
b/tp/t/results/include/verbatiminclude_and_encoding.pl
index 1daa270f16..96ff92b782 100644
--- a/tp/t/results/include/verbatiminclude_and_encoding.pl
+++ b/tp/t/results/include/verbatiminclude_and_encoding.pl
@@ -78,7 +78,7 @@ $result_trees{'verbatiminclude_and_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/include/verbatiminclude_and_encoding_latin1.pl 
b/tp/t/results/include/verbatiminclude_and_encoding_latin1.pl
index da9d28e6c5..dc96c6d9f7 100644
--- a/tp/t/results/include/verbatiminclude_and_encoding_latin1.pl
+++ b/tp/t/results/include/verbatiminclude_and_encoding_latin1.pl
@@ -78,7 +78,7 @@ $result_trees{'verbatiminclude_and_encoding_latin1'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/indices/complex_recursive_synindex.pl 
b/tp/t/results/indices/complex_recursive_synindex.pl
index bd9b94f968..8503ec75d5 100644
--- a/tp/t/results/indices/complex_recursive_synindex.pl
+++ b/tp/t/results/indices/complex_recursive_synindex.pl
@@ -10,7 +10,7 @@ $result_trees{'complex_recursive_synindex'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/def_existing_index.pl 
b/tp/t/results/indices/def_existing_index.pl
index 986e0049bb..8687724131 100644
--- a/tp/t/results/indices/def_existing_index.pl
+++ b/tp/t/results/indices/def_existing_index.pl
@@ -39,7 +39,7 @@ $result_trees{'def_existing_index'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/indices/def_syn_indices.pl 
b/tp/t/results/indices/def_syn_indices.pl
index 139c7240f6..bc8a4a3e84 100644
--- a/tp/t/results/indices/def_syn_indices.pl
+++ b/tp/t/results/indices/def_syn_indices.pl
@@ -84,7 +84,7 @@ $result_trees{'def_syn_indices'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/indices/default_cp_index_and_one_letter_syncodeindex.pl 
b/tp/t/results/indices/default_cp_index_and_one_letter_syncodeindex.pl
index 66dc2e6a6c..cac197ef32 100644
--- a/tp/t/results/indices/default_cp_index_and_one_letter_syncodeindex.pl
+++ b/tp/t/results/indices/default_cp_index_and_one_letter_syncodeindex.pl
@@ -10,7 +10,7 @@ $result_trees{'default_cp_index_and_one_letter_syncodeindex'} 
= {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/double_index_entry.pl 
b/tp/t/results/indices/double_index_entry.pl
index 70907138f5..7a6c252baf 100644
--- a/tp/t/results/indices/double_index_entry.pl
+++ b/tp/t/results/indices/double_index_entry.pl
@@ -10,7 +10,7 @@ $result_trees{'double_index_entry'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/double_seeentry_seealso.pl 
b/tp/t/results/indices/double_seeentry_seealso.pl
index 320dbeaa60..102f5b7eee 100644
--- a/tp/t/results/indices/double_seeentry_seealso.pl
+++ b/tp/t/results/indices/double_seeentry_seealso.pl
@@ -46,7 +46,7 @@ $result_trees{'double_seeentry_seealso'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/double_syncodeindex.pl 
b/tp/t/results/indices/double_syncodeindex.pl
index 09b3f1e3fe..61f251dbc6 100644
--- a/tp/t/results/indices/double_syncodeindex.pl
+++ b/tp/t/results/indices/double_syncodeindex.pl
@@ -81,7 +81,7 @@ $result_trees{'double_syncodeindex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/empty_cindex_entry.pl 
b/tp/t/results/indices/empty_cindex_entry.pl
index 093c69bcb3..5473e001de 100644
--- a/tp/t/results/indices/empty_cindex_entry.pl
+++ b/tp/t/results/indices/empty_cindex_entry.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_cindex_entry'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/empty_index_entry.pl 
b/tp/t/results/indices/empty_index_entry.pl
index e352f503d3..7c86740658 100644
--- a/tp/t/results/indices/empty_index_entry.pl
+++ b/tp/t/results/indices/empty_index_entry.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_index_entry'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/empty_string_index_entry.pl 
b/tp/t/results/indices/empty_string_index_entry.pl
index b8cf76b26b..345c9751a6 100644
--- a/tp/t/results/indices/empty_string_index_entry.pl
+++ b/tp/t/results/indices/empty_string_index_entry.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_string_index_entry'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/encoding_index_ascii.pl 
b/tp/t/results/indices/encoding_index_ascii.pl
index 3a16154286..8ecadf6d7e 100644
--- a/tp/t/results/indices/encoding_index_ascii.pl
+++ b/tp/t/results/indices/encoding_index_ascii.pl
@@ -83,7 +83,7 @@ $result_trees{'encoding_index_ascii'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/encoding_index_ascii_enable_encoding.pl 
b/tp/t/results/indices/encoding_index_ascii_enable_encoding.pl
index 9f55233ec6..15e262b92b 100644
--- a/tp/t/results/indices/encoding_index_ascii_enable_encoding.pl
+++ b/tp/t/results/indices/encoding_index_ascii_enable_encoding.pl
@@ -83,7 +83,7 @@ $result_trees{'encoding_index_ascii_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/encoding_index_latin1.pl 
b/tp/t/results/indices/encoding_index_latin1.pl
index 88d1d9629e..51c12ceaab 100644
--- a/tp/t/results/indices/encoding_index_latin1.pl
+++ b/tp/t/results/indices/encoding_index_latin1.pl
@@ -95,7 +95,7 @@ $result_trees{'encoding_index_latin1'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/encoding_index_latin1_enable_encoding.pl 
b/tp/t/results/indices/encoding_index_latin1_enable_encoding.pl
index de84ba5c94..4c357f7dbf 100644
--- a/tp/t/results/indices/encoding_index_latin1_enable_encoding.pl
+++ b/tp/t/results/indices/encoding_index_latin1_enable_encoding.pl
@@ -95,7 +95,7 @@ $result_trees{'encoding_index_latin1_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/encoding_index_utf8.pl 
b/tp/t/results/indices/encoding_index_utf8.pl
index 9b6ae947d7..d3cf9627fb 100644
--- a/tp/t/results/indices/encoding_index_utf8.pl
+++ b/tp/t/results/indices/encoding_index_utf8.pl
@@ -95,7 +95,7 @@ $result_trees{'encoding_index_utf8'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/encoding_index_utf8_enable_encoding.pl 
b/tp/t/results/indices/encoding_index_utf8_enable_encoding.pl
index c5b82c90bb..2caab3e39e 100644
--- a/tp/t/results/indices/encoding_index_utf8_enable_encoding.pl
+++ b/tp/t/results/indices/encoding_index_utf8_enable_encoding.pl
@@ -95,7 +95,7 @@ $result_trees{'encoding_index_utf8_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/explicit_sort_key.pl 
b/tp/t/results/indices/explicit_sort_key.pl
index b441c8efae..d4260637bb 100644
--- a/tp/t/results/indices/explicit_sort_key.pl
+++ b/tp/t/results/indices/explicit_sort_key.pl
@@ -10,7 +10,7 @@ $result_trees{'explicit_sort_key'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/ftable_vtable.pl 
b/tp/t/results/indices/ftable_vtable.pl
index 8366874502..8e9779bd15 100644
--- a/tp/t/results/indices/ftable_vtable.pl
+++ b/tp/t/results/indices/ftable_vtable.pl
@@ -17,7 +17,7 @@ $result_trees{'ftable_vtable'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/image_lines_count.pl 
b/tp/t/results/indices/image_lines_count.pl
index 91e6b3d84d..e085a779b6 100644
--- a/tp/t/results/indices/image_lines_count.pl
+++ b/tp/t/results/indices/image_lines_count.pl
@@ -10,7 +10,7 @@ $result_trees{'image_lines_count'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/image_text_lines_count.pl 
b/tp/t/results/indices/image_text_lines_count.pl
index 621cfda855..d4dd52d273 100644
--- a/tp/t/results/indices/image_text_lines_count.pl
+++ b/tp/t/results/indices/image_text_lines_count.pl
@@ -10,7 +10,7 @@ $result_trees{'image_text_lines_count'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/index_entries_locations.pl 
b/tp/t/results/indices/index_entries_locations.pl
index 3d8ee6bc78..ec0741808a 100644
--- a/tp/t/results/indices/index_entries_locations.pl
+++ b/tp/t/results/indices/index_entries_locations.pl
@@ -17,7 +17,7 @@ $result_trees{'index_entries_locations'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/index_entry_before_first_node.pl 
b/tp/t/results/indices/index_entry_before_first_node.pl
index 8791d833c6..6481b94242 100644
Binary files a/tp/t/results/indices/index_entry_before_first_node.pl and 
b/tp/t/results/indices/index_entry_before_first_node.pl differ
diff --git a/tp/t/results/indices/index_entry_before_node.pl 
b/tp/t/results/indices/index_entry_before_node.pl
index d9d197b1e2..b2e90852b0 100644
--- a/tp/t/results/indices/index_entry_before_node.pl
+++ b/tp/t/results/indices/index_entry_before_node.pl
@@ -10,7 +10,7 @@ $result_trees{'index_entry_before_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/index_entry_in_footnote.pl 
b/tp/t/results/indices/index_entry_in_footnote.pl
index ab588f2143..59cd056117 100644
--- a/tp/t/results/indices/index_entry_in_footnote.pl
+++ b/tp/t/results/indices/index_entry_in_footnote.pl
@@ -10,7 +10,7 @@ $result_trees{'index_entry_in_footnote'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/index_entry_in_footnote_different_node_end.pl 
b/tp/t/results/indices/index_entry_in_footnote_different_node_end.pl
index 726837b34e..2d3e880d0b 100644
--- a/tp/t/results/indices/index_entry_in_footnote_different_node_end.pl
+++ b/tp/t/results/indices/index_entry_in_footnote_different_node_end.pl
@@ -10,7 +10,7 @@ $result_trees{'index_entry_in_footnote_different_node_end'} = 
{
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/index_entry_in_footnote_separate.pl 
b/tp/t/results/indices/index_entry_in_footnote_separate.pl
index b189978522..e64f8b604e 100644
--- a/tp/t/results/indices/index_entry_in_footnote_separate.pl
+++ b/tp/t/results/indices/index_entry_in_footnote_separate.pl
@@ -42,7 +42,7 @@ $result_trees{'index_entry_in_footnote_separate'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/print_merged_index.pl 
b/tp/t/results/indices/print_merged_index.pl
index 5aac0ee2a4..527e98079b 100644
--- a/tp/t/results/indices/print_merged_index.pl
+++ b/tp/t/results/indices/print_merged_index.pl
@@ -43,7 +43,7 @@ $result_trees{'print_merged_index'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/printindex_before_document.pl 
b/tp/t/results/indices/printindex_before_document.pl
index 30ea3cc843..e5e4f182d2 100644
--- a/tp/t/results/indices/printindex_before_document.pl
+++ b/tp/t/results/indices/printindex_before_document.pl
@@ -48,7 +48,7 @@ $result_trees{'printindex_before_document'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/indices/printindex_index_entry_in_copying.pl 
b/tp/t/results/indices/printindex_index_entry_in_copying.pl
index 54e6d637af..3f2d2d6c03 100644
--- a/tp/t/results/indices/printindex_index_entry_in_copying.pl
+++ b/tp/t/results/indices/printindex_index_entry_in_copying.pl
@@ -583,7 +583,7 @@ $result_trees{'printindex_index_entry_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/indices/printindex_index_entry_in_copying_in_footnote.pl 
b/tp/t/results/indices/printindex_index_entry_in_copying_in_footnote.pl
index 2c0312f846..27951f7085 100644
--- a/tp/t/results/indices/printindex_index_entry_in_copying_in_footnote.pl
+++ b/tp/t/results/indices/printindex_index_entry_in_copying_in_footnote.pl
@@ -214,7 +214,7 @@ 
$result_trees{'printindex_index_entry_in_copying_in_footnote'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/indices/printindex_index_entry_in_copying_no_insertcopying.pl 
b/tp/t/results/indices/printindex_index_entry_in_copying_no_insertcopying.pl
index a6017177e3..90af2ec03b 100644
--- a/tp/t/results/indices/printindex_index_entry_in_copying_no_insertcopying.pl
+++ b/tp/t/results/indices/printindex_index_entry_in_copying_no_insertcopying.pl
@@ -583,7 +583,7 @@ 
$result_trees{'printindex_index_entry_in_copying_no_insertcopying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/printindex_with_space_before.pl 
b/tp/t/results/indices/printindex_with_space_before.pl
index 3cfb8a8ccc..cc1a42e50b 100644
Binary files a/tp/t/results/indices/printindex_with_space_before.pl and 
b/tp/t/results/indices/printindex_with_space_before.pl differ
diff --git a/tp/t/results/indices/recursive_synindex.pl 
b/tp/t/results/indices/recursive_synindex.pl
index c8047462cd..3c11979107 100644
--- a/tp/t/results/indices/recursive_synindex.pl
+++ b/tp/t/results/indices/recursive_synindex.pl
@@ -129,7 +129,7 @@ $result_trees{'recursive_synindex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/indices/same_index_entry_merged_indices.pl 
b/tp/t/results/indices/same_index_entry_merged_indices.pl
index e74f11f14d..00a8cf7b49 100644
--- a/tp/t/results/indices/same_index_entry_merged_indices.pl
+++ b/tp/t/results/indices/same_index_entry_merged_indices.pl
@@ -49,7 +49,7 @@ $result_trees{'same_index_entry_merged_indices'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/seealso_duplicate.pl 
b/tp/t/results/indices/seealso_duplicate.pl
index 48676ac076..e32ad11723 100644
--- a/tp/t/results/indices/seealso_duplicate.pl
+++ b/tp/t/results/indices/seealso_duplicate.pl
@@ -10,7 +10,7 @@ $result_trees{'seealso_duplicate'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/seeentry.pl b/tp/t/results/indices/seeentry.pl
index 3440271436..ebb4714ce3 100644
--- a/tp/t/results/indices/seeentry.pl
+++ b/tp/t/results/indices/seeentry.pl
@@ -46,7 +46,7 @@ $result_trees{'seeentry'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/subentries.pl 
b/tp/t/results/indices/subentries.pl
index f1e7b69b5b..52c1fe8e1d 100644
--- a/tp/t/results/indices/subentries.pl
+++ b/tp/t/results/indices/subentries.pl
@@ -46,7 +46,7 @@ $result_trees{'subentries'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/subentry_and_sortas.pl 
b/tp/t/results/indices/subentry_and_sortas.pl
index 8b99a6311a..73c605adf0 100644
--- a/tp/t/results/indices/subentry_and_sortas.pl
+++ b/tp/t/results/indices/subentry_and_sortas.pl
@@ -46,7 +46,7 @@ $result_trees{'subentry_and_sortas'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/syncode_index_print_both.pl 
b/tp/t/results/indices/syncode_index_print_both.pl
index 4d7fdbbb7f..8e8a246d25 100644
--- a/tp/t/results/indices/syncode_index_print_both.pl
+++ b/tp/t/results/indices/syncode_index_print_both.pl
@@ -84,7 +84,7 @@ $result_trees{'syncode_index_print_both'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/syncodeindex_to_plain.pl 
b/tp/t/results/indices/syncodeindex_to_plain.pl
index 971013fcb0..fcf500f7c2 100644
--- a/tp/t/results/indices/syncodeindex_to_plain.pl
+++ b/tp/t/results/indices/syncodeindex_to_plain.pl
@@ -49,7 +49,7 @@ $result_trees{'syncodeindex_to_plain'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/transparent_sort_chars.pl 
b/tp/t/results/indices/transparent_sort_chars.pl
index e44798b098..ac59fc0fc8 100644
--- a/tp/t/results/indices/transparent_sort_chars.pl
+++ b/tp/t/results/indices/transparent_sort_chars.pl
@@ -41,7 +41,7 @@ $result_trees{'transparent_sort_chars'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/unknown_index_entry.pl 
b/tp/t/results/indices/unknown_index_entry.pl
index d78d5829a4..db7da64fed 100644
--- a/tp/t/results/indices/unknown_index_entry.pl
+++ b/tp/t/results/indices/unknown_index_entry.pl
@@ -22,7 +22,7 @@ $result_trees{'unknown_index_entry'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/indices/unknown_printindex.pl 
b/tp/t/results/indices/unknown_printindex.pl
index 0ec435b8e8..e1e31ba422 100644
--- a/tp/t/results/indices/unknown_printindex.pl
+++ b/tp/t/results/indices/unknown_printindex.pl
@@ -35,7 +35,7 @@ $result_trees{'unknown_printindex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/indices/unknown_synindex.pl 
b/tp/t/results/indices/unknown_synindex.pl
index afeb623d21..7a8aa2488b 100644
--- a/tp/t/results/indices/unknown_synindex.pl
+++ b/tp/t/results/indices/unknown_synindex.pl
@@ -35,7 +35,7 @@ $result_trees{'unknown_synindex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/indices/unknown_then_known_index_entry.pl 
b/tp/t/results/indices/unknown_then_known_index_entry.pl
index eaecc96955..994815ad46 100644
--- a/tp/t/results/indices/unknown_then_known_index_entry.pl
+++ b/tp/t/results/indices/unknown_then_known_index_entry.pl
@@ -93,7 +93,7 @@ $result_trees{'unknown_then_known_index_entry'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/indices/w_lines_count.pl 
b/tp/t/results/indices/w_lines_count.pl
index 9c746f2436..fd65b861ab 100644
--- a/tp/t/results/indices/w_lines_count.pl
+++ b/tp/t/results/indices/w_lines_count.pl
@@ -10,7 +10,7 @@ $result_trees{'w_lines_count'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/indices/wrong_synindex.pl 
b/tp/t/results/indices/wrong_synindex.pl
index 5c5c357039..7f7b293bad 100644
--- a/tp/t/results/indices/wrong_synindex.pl
+++ b/tp/t/results/indices/wrong_synindex.pl
@@ -66,7 +66,7 @@ $result_trees{'wrong_synindex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/info_tests/anchor_and_spaces.pl 
b/tp/t/results/info_tests/anchor_and_spaces.pl
index 30cba2e21c..f3b7b945f7 100644
--- a/tp/t/results/info_tests/anchor_and_spaces.pl
+++ b/tp/t/results/info_tests/anchor_and_spaces.pl
@@ -10,7 +10,7 @@ $result_trees{'anchor_and_spaces'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/anchor_in_command.pl 
b/tp/t/results/info_tests/anchor_in_command.pl
index 381a59710e..6207f5423e 100644
--- a/tp/t/results/info_tests/anchor_in_command.pl
+++ b/tp/t/results/info_tests/anchor_in_command.pl
@@ -10,7 +10,7 @@ $result_trees{'anchor_in_command'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/before_node_and_section.pl 
b/tp/t/results/info_tests/before_node_and_section.pl
index 131576838a..c73d72461e 100644
--- a/tp/t/results/info_tests/before_node_and_section.pl
+++ b/tp/t/results/info_tests/before_node_and_section.pl
@@ -338,7 +338,7 @@ $result_trees{'before_node_and_section'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {},
     {
diff --git a/tp/t/results/info_tests/center_flush.pl 
b/tp/t/results/info_tests/center_flush.pl
index 0217513b23..5f30b959b7 100644
--- a/tp/t/results/info_tests/center_flush.pl
+++ b/tp/t/results/info_tests/center_flush.pl
@@ -433,7 +433,7 @@ $result_trees{'center_flush'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/info_tests/colon_in_index_entry.pl 
b/tp/t/results/info_tests/colon_in_index_entry.pl
index 15d5b085f4..8b28c4bc16 100644
--- a/tp/t/results/info_tests/colon_in_index_entry.pl
+++ b/tp/t/results/info_tests/colon_in_index_entry.pl
@@ -10,7 +10,7 @@ $result_trees{'colon_in_index_entry'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/def_in_copying.pl 
b/tp/t/results/info_tests/def_in_copying.pl
index 853b10d9c5..4ce7572b91 100644
--- a/tp/t/results/info_tests/def_in_copying.pl
+++ b/tp/t/results/info_tests/def_in_copying.pl
@@ -74,7 +74,7 @@ $result_trees{'def_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/direntry_dircategory_and_commands.pl 
b/tp/t/results/info_tests/direntry_dircategory_and_commands.pl
index f7233d67d2..8d35aca732 100644
--- a/tp/t/results/info_tests/direntry_dircategory_and_commands.pl
+++ b/tp/t/results/info_tests/direntry_dircategory_and_commands.pl
@@ -414,7 +414,7 @@ $result_trees{'direntry_dircategory_and_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/encoding_us_ascii.pl 
b/tp/t/results/info_tests/encoding_us_ascii.pl
index 6cbe2937ab..7730a2846a 100644
--- a/tp/t/results/info_tests/encoding_us_ascii.pl
+++ b/tp/t/results/info_tests/encoding_us_ascii.pl
@@ -54,7 +54,7 @@ $result_trees{'encoding_us_ascii'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/error_in_footnote.pl 
b/tp/t/results/info_tests/error_in_footnote.pl
index 513952d035..e9bfa36734 100644
--- a/tp/t/results/info_tests/error_in_footnote.pl
+++ b/tp/t/results/info_tests/error_in_footnote.pl
@@ -17,7 +17,7 @@ $result_trees{'error_in_footnote'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/file_only_png.pl 
b/tp/t/results/info_tests/file_only_png.pl
index 1d386f7794..53d0c473ee 100644
Binary files a/tp/t/results/info_tests/file_only_png.pl and 
b/tp/t/results/info_tests/file_only_png.pl differ
diff --git a/tp/t/results/info_tests/float_long_captions.pl 
b/tp/t/results/info_tests/float_long_captions.pl
index 63c7a6ecf8..1de35183d5 100644
--- a/tp/t/results/info_tests/float_long_captions.pl
+++ b/tp/t/results/info_tests/float_long_captions.pl
@@ -10,7 +10,7 @@ $result_trees{'float_long_captions'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/image_and_punctuation.pl 
b/tp/t/results/info_tests/image_and_punctuation.pl
index b190504545..fe233a0496 100644
--- a/tp/t/results/info_tests/image_and_punctuation.pl
+++ b/tp/t/results/info_tests/image_and_punctuation.pl
@@ -10,7 +10,7 @@ $result_trees{'image_and_punctuation'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/image_and_spaces_formatting.pl 
b/tp/t/results/info_tests/image_and_spaces_formatting.pl
index d2f08733b5..9a9d4ace99 100644
--- a/tp/t/results/info_tests/image_and_spaces_formatting.pl
+++ b/tp/t/results/info_tests/image_and_spaces_formatting.pl
@@ -10,7 +10,7 @@ $result_trees{'image_and_spaces_formatting'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/image_extension.pl 
b/tp/t/results/info_tests/image_extension.pl
index 3b08e298ce..f11a730027 100644
--- a/tp/t/results/info_tests/image_extension.pl
+++ b/tp/t/results/info_tests/image_extension.pl
@@ -10,7 +10,7 @@ $result_trees{'image_extension'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/image_in_paragraph.pl 
b/tp/t/results/info_tests/image_in_paragraph.pl
index 181948be84..1300470b54 100644
Binary files a/tp/t/results/info_tests/image_in_paragraph.pl and 
b/tp/t/results/info_tests/image_in_paragraph.pl differ
diff --git a/tp/t/results/info_tests/image_not_found.pl 
b/tp/t/results/info_tests/image_not_found.pl
index aef9115121..2d8ae8807f 100644
--- a/tp/t/results/info_tests/image_not_found.pl
+++ b/tp/t/results/info_tests/image_not_found.pl
@@ -10,7 +10,7 @@ $result_trees{'image_not_found'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/image_quotes.pl 
b/tp/t/results/info_tests/image_quotes.pl
index 28e96df74d..5fb4dae2de 100644
Binary files a/tp/t/results/info_tests/image_quotes.pl and 
b/tp/t/results/info_tests/image_quotes.pl differ
diff --git a/tp/t/results/info_tests/image_text_encoded.pl 
b/tp/t/results/info_tests/image_text_encoded.pl
index 4c9ef54fae..25eebb1556 100644
--- a/tp/t/results/info_tests/image_text_encoded.pl
+++ b/tp/t/results/info_tests/image_text_encoded.pl
@@ -78,7 +78,7 @@ $result_trees{'image_text_encoded'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/info_tests/index_entry_at_end_node.pl 
b/tp/t/results/info_tests/index_entry_at_end_node.pl
index cf3d8ca849..468ffeb2f2 100644
--- a/tp/t/results/info_tests/index_entry_at_end_node.pl
+++ b/tp/t/results/info_tests/index_entry_at_end_node.pl
@@ -10,7 +10,7 @@ $result_trees{'index_entry_at_end_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/invalid_node_name_no_warning.pl 
b/tp/t/results/info_tests/invalid_node_name_no_warning.pl
index 9737d4494f..67d7f6602d 100644
--- a/tp/t/results/info_tests/invalid_node_name_no_warning.pl
+++ b/tp/t/results/info_tests/invalid_node_name_no_warning.pl
@@ -17,7 +17,7 @@ $result_trees{'invalid_node_name_no_warning'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/invalid_node_name_warning.pl 
b/tp/t/results/info_tests/invalid_node_name_warning.pl
index 3f47bae66c..3305ae7228 100644
--- a/tp/t/results/info_tests/invalid_node_name_warning.pl
+++ b/tp/t/results/info_tests/invalid_node_name_warning.pl
@@ -17,7 +17,7 @@ $result_trees{'invalid_node_name_warning'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/known_encoding.pl 
b/tp/t/results/info_tests/known_encoding.pl
index 3442e7309d..3f5eb5c2a7 100644
--- a/tp/t/results/info_tests/known_encoding.pl
+++ b/tp/t/results/info_tests/known_encoding.pl
@@ -54,7 +54,7 @@ $result_trees{'known_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/multiline_image_and_align.pl 
b/tp/t/results/info_tests/multiline_image_and_align.pl
index deaf736c19..c0f9e38a62 100644
--- a/tp/t/results/info_tests/multiline_image_and_align.pl
+++ b/tp/t/results/info_tests/multiline_image_and_align.pl
@@ -1193,7 +1193,7 @@ $result_trees{'multiline_image_and_align'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/info_tests/multitable_anchor_and_index_entry.pl 
b/tp/t/results/info_tests/multitable_anchor_and_index_entry.pl
index e3d92dc3d8..74d755245c 100644
--- a/tp/t/results/info_tests/multitable_anchor_and_index_entry.pl
+++ b/tp/t/results/info_tests/multitable_anchor_and_index_entry.pl
@@ -10,7 +10,7 @@ $result_trees{'multitable_anchor_and_index_entry'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/nested_footnotes_separate.pl 
b/tp/t/results/info_tests/nested_footnotes_separate.pl
index 4b8e95ae0e..6606e89175 100644
--- a/tp/t/results/info_tests/nested_footnotes_separate.pl
+++ b/tp/t/results/info_tests/nested_footnotes_separate.pl
@@ -42,7 +42,7 @@ $result_trees{'nested_footnotes_separate'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/nested_multitable_anchor_index.pl 
b/tp/t/results/info_tests/nested_multitable_anchor_index.pl
index 08af9ecfe1..cd503fbfed 100644
--- a/tp/t/results/info_tests/nested_multitable_anchor_index.pl
+++ b/tp/t/results/info_tests/nested_multitable_anchor_index.pl
@@ -10,7 +10,7 @@ $result_trees{'nested_multitable_anchor_index'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/no_node_but_top.pl 
b/tp/t/results/info_tests/no_node_but_top.pl
index 14c6d0ac95..3a0cd5f26b 100644
--- a/tp/t/results/info_tests/no_node_but_top.pl
+++ b/tp/t/results/info_tests/no_node_but_top.pl
@@ -10,7 +10,7 @@ $result_trees{'no_node_but_top'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/no_nodes.pl 
b/tp/t/results/info_tests/no_nodes.pl
index 5132edfd0a..94aebf6184 100644
--- a/tp/t/results/info_tests/no_nodes.pl
+++ b/tp/t/results/info_tests/no_nodes.pl
@@ -21,7 +21,7 @@ $result_trees{'no_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/info_tests/no_top_node.pl 
b/tp/t/results/info_tests/no_top_node.pl
index cf14086ce4..a4993cf068 100644
--- a/tp/t/results/info_tests/no_top_node.pl
+++ b/tp/t/results/info_tests/no_top_node.pl
@@ -10,7 +10,7 @@ $result_trees{'no_top_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/note_in_strong.pl 
b/tp/t/results/info_tests/note_in_strong.pl
index c10afef945..9a5f504ba4 100644
--- a/tp/t/results/info_tests/note_in_strong.pl
+++ b/tp/t/results/info_tests/note_in_strong.pl
@@ -10,7 +10,7 @@ $result_trees{'note_in_strong'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/note_in_strong_end_of_line.pl 
b/tp/t/results/info_tests/note_in_strong_end_of_line.pl
index a387e80c48..940e34930c 100644
--- a/tp/t/results/info_tests/note_in_strong_end_of_line.pl
+++ b/tp/t/results/info_tests/note_in_strong_end_of_line.pl
@@ -10,7 +10,7 @@ $result_trees{'note_in_strong_end_of_line'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/novalidate_empty_refs.pl 
b/tp/t/results/info_tests/novalidate_empty_refs.pl
index c8da11d505..0d10462935 100644
--- a/tp/t/results/info_tests/novalidate_empty_refs.pl
+++ b/tp/t/results/info_tests/novalidate_empty_refs.pl
@@ -40,7 +40,7 @@ $result_trees{'novalidate_empty_refs'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/only_documentencoding.pl 
b/tp/t/results/info_tests/only_documentencoding.pl
index bff8a7201d..29cd37f028 100644
--- a/tp/t/results/info_tests/only_documentencoding.pl
+++ b/tp/t/results/info_tests/only_documentencoding.pl
@@ -38,7 +38,7 @@ $result_trees{'only_documentencoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/info_tests/paragraphindent_and_preamble.pl 
b/tp/t/results/info_tests/paragraphindent_and_preamble.pl
index b80366c374..05a24c342b 100644
--- a/tp/t/results/info_tests/paragraphindent_and_preamble.pl
+++ b/tp/t/results/info_tests/paragraphindent_and_preamble.pl
@@ -98,7 +98,7 @@ $result_trees{'paragraphindent_and_preamble'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/paragraphindent_asis_first.pl 
b/tp/t/results/info_tests/paragraphindent_asis_first.pl
index 9d80b3c26b..bd0c5f8da9 100644
--- a/tp/t/results/info_tests/paragraphindent_asis_first.pl
+++ b/tp/t/results/info_tests/paragraphindent_asis_first.pl
@@ -86,7 +86,7 @@ $result_trees{'paragraphindent_asis_first'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/info_tests/paragraphindent_none_first.pl 
b/tp/t/results/info_tests/paragraphindent_none_first.pl
index dd9ee75665..83b972bd7e 100644
--- a/tp/t/results/info_tests/paragraphindent_none_first.pl
+++ b/tp/t/results/info_tests/paragraphindent_none_first.pl
@@ -114,7 +114,7 @@ $result_trees{'paragraphindent_none_first'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/info_tests/pxref_test.pl 
b/tp/t/results/info_tests/pxref_test.pl
index 1bb7e8db49..ec211efa7f 100644
--- a/tp/t/results/info_tests/pxref_test.pl
+++ b/tp/t/results/info_tests/pxref_test.pl
@@ -10,7 +10,7 @@ $result_trees{'pxref_test'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/ref_tests.pl 
b/tp/t/results/info_tests/ref_tests.pl
index 8b89b7739c..537b5a854c 100644
--- a/tp/t/results/info_tests/ref_tests.pl
+++ b/tp/t/results/info_tests/ref_tests.pl
@@ -17,7 +17,7 @@ $result_trees{'ref_tests'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/space_at_menu_end.pl 
b/tp/t/results/info_tests/space_at_menu_end.pl
index e6ed259a04..b724ddaa0d 100644
--- a/tp/t/results/info_tests/space_at_menu_end.pl
+++ b/tp/t/results/info_tests/space_at_menu_end.pl
@@ -10,7 +10,7 @@ $result_trees{'space_at_menu_end'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/space_in_menu.pl 
b/tp/t/results/info_tests/space_in_menu.pl
index 1f911b9e85..595009f326 100644
--- a/tp/t/results/info_tests/space_in_menu.pl
+++ b/tp/t/results/info_tests/space_in_menu.pl
@@ -10,7 +10,7 @@ $result_trees{'space_in_menu'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/space_in_setfilename.pl 
b/tp/t/results/info_tests/space_in_setfilename.pl
index 5ce605ea36..929f8ba7ab 100644
--- a/tp/t/results/info_tests/space_in_setfilename.pl
+++ b/tp/t/results/info_tests/space_in_setfilename.pl
@@ -76,7 +76,7 @@ $result_trees{'space_in_setfilename'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/split_no_copying.pl 
b/tp/t/results/info_tests/split_no_copying.pl
index f8f36f64f3..376c79630a 100644
--- a/tp/t/results/info_tests/split_no_copying.pl
+++ b/tp/t/results/info_tests/split_no_copying.pl
@@ -57,7 +57,7 @@ $result_trees{'split_no_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/split_test_before_first_node.pl 
b/tp/t/results/info_tests/split_test_before_first_node.pl
index 051e2ec53f..b40c607d22 100644
--- a/tp/t/results/info_tests/split_test_before_first_node.pl
+++ b/tp/t/results/info_tests/split_test_before_first_node.pl
@@ -63,7 +63,7 @@ $result_trees{'split_test_before_first_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/info_tests/split_test_before_first_node_no_empty_line.pl 
b/tp/t/results/info_tests/split_test_before_first_node_no_empty_line.pl
index ad3435ed86..9905a47fc0 100644
--- a/tp/t/results/info_tests/split_test_before_first_node_no_empty_line.pl
+++ b/tp/t/results/info_tests/split_test_before_first_node_no_empty_line.pl
@@ -57,7 +57,7 @@ $result_trees{'split_test_before_first_node_no_empty_line'} = 
{
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/test_index.pl 
b/tp/t/results/info_tests/test_index.pl
index e61a29ec36..3e7bb0954c 100644
--- a/tp/t/results/info_tests/test_index.pl
+++ b/tp/t/results/info_tests/test_index.pl
@@ -10,7 +10,7 @@ $result_trees{'test_index'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/text_before_node.pl 
b/tp/t/results/info_tests/text_before_node.pl
index c555b3a38d..6480770821 100644
--- a/tp/t/results/info_tests/text_before_node.pl
+++ b/tp/t/results/info_tests/text_before_node.pl
@@ -10,7 +10,7 @@ $result_trees{'text_before_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/top_node_normalization.pl 
b/tp/t/results/info_tests/top_node_normalization.pl
index 17638410cf..30aff0dbdf 100644
--- a/tp/t/results/info_tests/top_node_normalization.pl
+++ b/tp/t/results/info_tests/top_node_normalization.pl
@@ -10,7 +10,7 @@ $result_trees{'top_node_normalization'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/unknown_encoding.pl 
b/tp/t/results/info_tests/unknown_encoding.pl
index 17c4d3dcaa..a7e6f0f235 100644
--- a/tp/t/results/info_tests/unknown_encoding.pl
+++ b/tp/t/results/info_tests/unknown_encoding.pl
@@ -52,7 +52,7 @@ $result_trees{'unknown_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/info_tests/xref_test.pl 
b/tp/t/results/info_tests/xref_test.pl
index b701a321eb..70ab5ad37a 100644
--- a/tp/t/results/info_tests/xref_test.pl
+++ b/tp/t/results/info_tests/xref_test.pl
@@ -17,7 +17,7 @@ $result_trees{'xref_test'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/init_files_tests/macro_defined_txiinternalvalue_in_translation.pl
 
b/tp/t/results/init_files_tests/macro_defined_txiinternalvalue_in_translation.pl
index 8bc44a4d4b..20cffe6926 100644
--- 
a/tp/t/results/init_files_tests/macro_defined_txiinternalvalue_in_translation.pl
+++ 
b/tp/t/results/init_files_tests/macro_defined_txiinternalvalue_in_translation.pl
@@ -85,7 +85,7 @@ 
$result_trees{'macro_defined_txiinternalvalue_in_translation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/init_files_tests/modified_translation.pl 
b/tp/t/results/init_files_tests/modified_translation.pl
index ef3ffb83c8..c9994f1d30 100644
--- a/tp/t/results/init_files_tests/modified_translation.pl
+++ b/tp/t/results/init_files_tests/modified_translation.pl
@@ -191,7 +191,7 @@ $result_trees{'modified_translation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/init_files_tests/redefined_need.pl 
b/tp/t/results/init_files_tests/redefined_need.pl
index e3c7fb722a..30d1edcb99 100644
--- a/tp/t/results/init_files_tests/redefined_need.pl
+++ b/tp/t/results/init_files_tests/redefined_need.pl
@@ -42,7 +42,7 @@ $result_trees{'redefined_need'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/accents.pl 
b/tp/t/results/invalid_nestings/accents.pl
index abcab7a3b8..5f66b3a6e1 100644
--- a/tp/t/results/invalid_nestings/accents.pl
+++ b/tp/t/results/invalid_nestings/accents.pl
@@ -200,7 +200,7 @@ $result_trees{'accents'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/bad_style_nesting.pl 
b/tp/t/results/invalid_nestings/bad_style_nesting.pl
index 7f1a27f828..08f59b3fdc 100644
--- a/tp/t/results/invalid_nestings/bad_style_nesting.pl
+++ b/tp/t/results/invalid_nestings/bad_style_nesting.pl
@@ -104,7 +104,7 @@ $result_trees{'bad_style_nesting'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/bad_tab_nesting.pl 
b/tp/t/results/invalid_nestings/bad_tab_nesting.pl
index 2ebd17e21b..3c95905133 100644
--- a/tp/t/results/invalid_nestings/bad_tab_nesting.pl
+++ b/tp/t/results/invalid_nestings/bad_tab_nesting.pl
@@ -191,7 +191,7 @@ $result_trees{'bad_tab_nesting'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/block_not_matching.pl 
b/tp/t/results/invalid_nestings/block_not_matching.pl
index d4198001c2..9cafae46fe 100644
--- a/tp/t/results/invalid_nestings/block_not_matching.pl
+++ b/tp/t/results/invalid_nestings/block_not_matching.pl
@@ -546,7 +546,7 @@ $result_trees{'block_not_matching'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/cartouche_in_style_command.pl 
b/tp/t/results/invalid_nestings/cartouche_in_style_command.pl
index f71e82721e..80d5aa9810 100644
--- a/tp/t/results/invalid_nestings/cartouche_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/cartouche_in_style_command.pl
@@ -109,7 +109,7 @@ $result_trees{'cartouche_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/center.pl 
b/tp/t/results/invalid_nestings/center.pl
index c6991ba2a6..ab56ce1217 100644
--- a/tp/t/results/invalid_nestings/center.pl
+++ b/tp/t/results/invalid_nestings/center.pl
@@ -1386,7 +1386,7 @@ $result_trees{'center'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/def_in_style_command.pl 
b/tp/t/results/invalid_nestings/def_in_style_command.pl
index a78ac54865..6e5d4e367d 100644
--- a/tp/t/results/invalid_nestings/def_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/def_in_style_command.pl
@@ -194,7 +194,7 @@ $result_trees{'def_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/invalid_nestings/def_not_closed_in_menu_description.pl 
b/tp/t/results/invalid_nestings/def_not_closed_in_menu_description.pl
index 54947911d3..d91186d806 100644
--- a/tp/t/results/invalid_nestings/def_not_closed_in_menu_description.pl
+++ b/tp/t/results/invalid_nestings/def_not_closed_in_menu_description.pl
@@ -250,7 +250,7 @@ $result_trees{'def_not_closed_in_menu_description'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/enumerate_in_style_command.pl 
b/tp/t/results/invalid_nestings/enumerate_in_style_command.pl
index b2d2605e94..0ae94618be 100644
--- a/tp/t/results/invalid_nestings/enumerate_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/enumerate_in_style_command.pl
@@ -128,7 +128,7 @@ $result_trees{'enumerate_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/example_in_style_command.pl 
b/tp/t/results/invalid_nestings/example_in_style_command.pl
index 322b4616f0..5e0371770a 100644
--- a/tp/t/results/invalid_nestings/example_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/example_in_style_command.pl
@@ -104,7 +104,7 @@ $result_trees{'example_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/float_in_style_command.pl 
b/tp/t/results/invalid_nestings/float_in_style_command.pl
index 653b4617fc..66474a44fd 100644
--- a/tp/t/results/invalid_nestings/float_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/float_in_style_command.pl
@@ -171,7 +171,7 @@ $result_trees{'float_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/flushright_in_style_command.pl 
b/tp/t/results/invalid_nestings/flushright_in_style_command.pl
index 22af68b093..10fe7f9577 100644
--- a/tp/t/results/invalid_nestings/flushright_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/flushright_in_style_command.pl
@@ -104,7 +104,7 @@ $result_trees{'flushright_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/footnote_in_ref.pl 
b/tp/t/results/invalid_nestings/footnote_in_ref.pl
index b7d991e10c..3bd187de70 100644
--- a/tp/t/results/invalid_nestings/footnote_in_ref.pl
+++ b/tp/t/results/invalid_nestings/footnote_in_ref.pl
@@ -10,7 +10,7 @@ $result_trees{'footnote_in_ref'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/formats_not_closed_in_example.pl 
b/tp/t/results/invalid_nestings/formats_not_closed_in_example.pl
index caee3498f9..906ab35482 100644
--- a/tp/t/results/invalid_nestings/formats_not_closed_in_example.pl
+++ b/tp/t/results/invalid_nestings/formats_not_closed_in_example.pl
@@ -281,7 +281,7 @@ $result_trees{'formats_not_closed_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/ignore_in_xref.pl 
b/tp/t/results/invalid_nestings/ignore_in_xref.pl
index 406220b5e3..a9c52695e4 100644
--- a/tp/t/results/invalid_nestings/ignore_in_xref.pl
+++ b/tp/t/results/invalid_nestings/ignore_in_xref.pl
@@ -10,7 +10,7 @@ $result_trees{'ignore_in_xref'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/ignored_text.pl 
b/tp/t/results/invalid_nestings/ignored_text.pl
index 028e17d123..44d6286f78 100644
--- a/tp/t/results/invalid_nestings/ignored_text.pl
+++ b/tp/t/results/invalid_nestings/ignored_text.pl
@@ -10,7 +10,7 @@ $result_trees{'ignored_text'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/in_errormsg.pl 
b/tp/t/results/invalid_nestings/in_errormsg.pl
index 613524fb9d..d3541debb9 100644
--- a/tp/t/results/invalid_nestings/in_errormsg.pl
+++ b/tp/t/results/invalid_nestings/in_errormsg.pl
@@ -284,7 +284,7 @@ $result_trees{'in_errormsg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/in_table.pl 
b/tp/t/results/invalid_nestings/in_table.pl
index d2bd6fb1a5..5328b39fad 100644
--- a/tp/t/results/invalid_nestings/in_table.pl
+++ b/tp/t/results/invalid_nestings/in_table.pl
@@ -17,7 +17,7 @@ $result_trees{'in_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/item_in_ref.pl 
b/tp/t/results/invalid_nestings/item_in_ref.pl
index 8c9da1bedf..aac4b66a85 100644
--- a/tp/t/results/invalid_nestings/item_in_ref.pl
+++ b/tp/t/results/invalid_nestings/item_in_ref.pl
@@ -230,7 +230,7 @@ $result_trees{'item_in_ref'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/item_tab_outside_of_table_lists.pl 
b/tp/t/results/invalid_nestings/item_tab_outside_of_table_lists.pl
index 191e7ff47b..a832dc8112 100644
--- a/tp/t/results/invalid_nestings/item_tab_outside_of_table_lists.pl
+++ b/tp/t/results/invalid_nestings/item_tab_outside_of_table_lists.pl
@@ -76,7 +76,7 @@ $result_trees{'item_tab_outside_of_table_lists'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/invalid_nestings/itemx_in_itemize_enumerate_in_table.pl 
b/tp/t/results/invalid_nestings/itemx_in_itemize_enumerate_in_table.pl
index 5ee141f57e..e5fdcc6da1 100644
--- a/tp/t/results/invalid_nestings/itemx_in_itemize_enumerate_in_table.pl
+++ b/tp/t/results/invalid_nestings/itemx_in_itemize_enumerate_in_table.pl
@@ -339,7 +339,7 @@ $result_trees{'itemx_in_itemize_enumerate_in_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/menu_in_style_command.pl 
b/tp/t/results/invalid_nestings/menu_in_style_command.pl
index 9d096fa237..683d08c60d 100644
--- a/tp/t/results/invalid_nestings/menu_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/menu_in_style_command.pl
@@ -10,7 +10,7 @@ $result_trees{'menu_in_style_command'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/multitable_in_style_command.pl 
b/tp/t/results/invalid_nestings/multitable_in_style_command.pl
index e48c1f48b8..42cc1e21d4 100644
--- a/tp/t/results/invalid_nestings/multitable_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/multitable_in_style_command.pl
@@ -207,7 +207,7 @@ $result_trees{'multitable_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/multitable_item_in_index.pl 
b/tp/t/results/invalid_nestings/multitable_item_in_index.pl
index fb3878e104..4a9fadf567 100644
--- a/tp/t/results/invalid_nestings/multitable_item_in_index.pl
+++ b/tp/t/results/invalid_nestings/multitable_item_in_index.pl
@@ -158,7 +158,7 @@ $result_trees{'multitable_item_in_index'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/node_in_copying.pl 
b/tp/t/results/invalid_nestings/node_in_copying.pl
index 88c1a7173a..10ee55c6f8 100644
--- a/tp/t/results/invalid_nestings/node_in_copying.pl
+++ b/tp/t/results/invalid_nestings/node_in_copying.pl
@@ -31,7 +31,7 @@ $result_trees{'node_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/node_in_copying_not_closed.pl 
b/tp/t/results/invalid_nestings/node_in_copying_not_closed.pl
index afbcaec3d9..a05871c0f0 100644
--- a/tp/t/results/invalid_nestings/node_in_copying_not_closed.pl
+++ b/tp/t/results/invalid_nestings/node_in_copying_not_closed.pl
@@ -60,7 +60,7 @@ $result_trees{'node_in_copying_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/node_on_index_entry_line.pl 
b/tp/t/results/invalid_nestings/node_on_index_entry_line.pl
index d33e1b0789..bfaf82b7a8 100644
--- a/tp/t/results/invalid_nestings/node_on_index_entry_line.pl
+++ b/tp/t/results/invalid_nestings/node_on_index_entry_line.pl
@@ -41,7 +41,7 @@ $result_trees{'node_on_index_entry_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/on_block_command_line.pl 
b/tp/t/results/invalid_nestings/on_block_command_line.pl
index 9325691a8a..79112e8b89 100644
--- a/tp/t/results/invalid_nestings/on_block_command_line.pl
+++ b/tp/t/results/invalid_nestings/on_block_command_line.pl
@@ -384,7 +384,7 @@ $result_trees{'on_block_command_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/on_def_line.pl 
b/tp/t/results/invalid_nestings/on_def_line.pl
index 9be4f2a2e0..39b4e5103f 100644
--- a/tp/t/results/invalid_nestings/on_def_line.pl
+++ b/tp/t/results/invalid_nestings/on_def_line.pl
@@ -440,7 +440,7 @@ $result_trees{'on_def_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/on_index_entry_line.pl 
b/tp/t/results/invalid_nestings/on_index_entry_line.pl
index 421ed7caf8..5ad02ed551 100644
--- a/tp/t/results/invalid_nestings/on_index_entry_line.pl
+++ b/tp/t/results/invalid_nestings/on_index_entry_line.pl
@@ -174,7 +174,7 @@ $result_trees{'on_index_entry_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/on_itemize_line.pl 
b/tp/t/results/invalid_nestings/on_itemize_line.pl
index 1afcabf933..403e0391f3 100644
--- a/tp/t/results/invalid_nestings/on_itemize_line.pl
+++ b/tp/t/results/invalid_nestings/on_itemize_line.pl
@@ -297,7 +297,7 @@ $result_trees{'on_itemize_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/on_node_line.pl 
b/tp/t/results/invalid_nestings/on_node_line.pl
index ca8e6ec4ca..670e1d39fe 100644
--- a/tp/t/results/invalid_nestings/on_node_line.pl
+++ b/tp/t/results/invalid_nestings/on_node_line.pl
@@ -10,7 +10,7 @@ $result_trees{'on_node_line'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/on_section_line.pl 
b/tp/t/results/invalid_nestings/on_section_line.pl
index 21d2b25dcc..091de0f854 100644
--- a/tp/t/results/invalid_nestings/on_section_line.pl
+++ b/tp/t/results/invalid_nestings/on_section_line.pl
@@ -10,7 +10,7 @@ $result_trees{'on_section_line'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/on_subheading_line.pl 
b/tp/t/results/invalid_nestings/on_subheading_line.pl
index f2ae3e84e1..4d611beded 100644
--- a/tp/t/results/invalid_nestings/on_subheading_line.pl
+++ b/tp/t/results/invalid_nestings/on_subheading_line.pl
@@ -167,7 +167,7 @@ $result_trees{'on_subheading_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/quotation_in_ref.pl 
b/tp/t/results/invalid_nestings/quotation_in_ref.pl
index ba265d9b2b..2f9cef11e0 100644
--- a/tp/t/results/invalid_nestings/quotation_in_ref.pl
+++ b/tp/t/results/invalid_nestings/quotation_in_ref.pl
@@ -10,7 +10,7 @@ $result_trees{'quotation_in_ref'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/quotation_in_style_command.pl 
b/tp/t/results/invalid_nestings/quotation_in_style_command.pl
index f27b3940a4..aa9ec61c42 100644
--- a/tp/t/results/invalid_nestings/quotation_in_style_command.pl
+++ b/tp/t/results/invalid_nestings/quotation_in_style_command.pl
@@ -104,7 +104,7 @@ $result_trees{'quotation_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/raw_block_on_line.pl 
b/tp/t/results/invalid_nestings/raw_block_on_line.pl
index 7fb309ffeb..c0e28dd767 100644
--- a/tp/t/results/invalid_nestings/raw_block_on_line.pl
+++ b/tp/t/results/invalid_nestings/raw_block_on_line.pl
@@ -55,7 +55,7 @@ $result_trees{'raw_block_on_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/recursive_copying.pl 
b/tp/t/results/invalid_nestings/recursive_copying.pl
index 9b81f71d4a..847f33ff69 100644
--- a/tp/t/results/invalid_nestings/recursive_copying.pl
+++ b/tp/t/results/invalid_nestings/recursive_copying.pl
@@ -110,7 +110,7 @@ $result_trees{'recursive_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/ref_in_anchor.pl 
b/tp/t/results/invalid_nestings/ref_in_anchor.pl
index 7da362e923..18b7f24eed 100644
--- a/tp/t/results/invalid_nestings/ref_in_anchor.pl
+++ b/tp/t/results/invalid_nestings/ref_in_anchor.pl
@@ -10,7 +10,7 @@ $result_trees{'ref_in_anchor'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/ref_in_ref.pl 
b/tp/t/results/invalid_nestings/ref_in_ref.pl
index 16a34c99af..d2c47cb624 100644
--- a/tp/t/results/invalid_nestings/ref_in_ref.pl
+++ b/tp/t/results/invalid_nestings/ref_in_ref.pl
@@ -10,7 +10,7 @@ $result_trees{'ref_in_ref'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_in_copying.pl 
b/tp/t/results/invalid_nestings/section_in_copying.pl
index d7dd7f97d7..a8f4ba6a11 100644
--- a/tp/t/results/invalid_nestings/section_in_copying.pl
+++ b/tp/t/results/invalid_nestings/section_in_copying.pl
@@ -54,7 +54,7 @@ $result_trees{'section_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_in_flushright.pl 
b/tp/t/results/invalid_nestings/section_in_flushright.pl
index 6cc3439dee..23b16a4c19 100644
--- a/tp/t/results/invalid_nestings/section_in_flushright.pl
+++ b/tp/t/results/invalid_nestings/section_in_flushright.pl
@@ -54,7 +54,7 @@ $result_trees{'section_in_flushright'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_in_footnote.pl 
b/tp/t/results/invalid_nestings/section_in_footnote.pl
index 41863f6b32..1016dc5f43 100644
--- a/tp/t/results/invalid_nestings/section_in_footnote.pl
+++ b/tp/t/results/invalid_nestings/section_in_footnote.pl
@@ -55,7 +55,7 @@ $result_trees{'section_in_footnote'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_in_math.pl 
b/tp/t/results/invalid_nestings/section_in_math.pl
index 581131b895..0aa30d0891 100644
--- a/tp/t/results/invalid_nestings/section_in_math.pl
+++ b/tp/t/results/invalid_nestings/section_in_math.pl
@@ -71,7 +71,7 @@ $result_trees{'section_in_math'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_in_nested_block_commands.pl 
b/tp/t/results/invalid_nestings/section_in_nested_block_commands.pl
index 432dadf75a..f290c2d80b 100644
--- a/tp/t/results/invalid_nestings/section_in_nested_block_commands.pl
+++ b/tp/t/results/invalid_nestings/section_in_nested_block_commands.pl
@@ -155,7 +155,7 @@ $result_trees{'section_in_nested_block_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_in_table.pl 
b/tp/t/results/invalid_nestings/section_in_table.pl
index 09570b2b98..79044e350e 100644
--- a/tp/t/results/invalid_nestings/section_in_table.pl
+++ b/tp/t/results/invalid_nestings/section_in_table.pl
@@ -101,7 +101,7 @@ $result_trees{'section_in_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_on_def_line.pl 
b/tp/t/results/invalid_nestings/section_on_def_line.pl
index 3f6e208339..ef800dfb11 100644
--- a/tp/t/results/invalid_nestings/section_on_def_line.pl
+++ b/tp/t/results/invalid_nestings/section_on_def_line.pl
@@ -50,7 +50,7 @@ $result_trees{'section_on_def_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_on_defx_line.pl 
b/tp/t/results/invalid_nestings/section_on_defx_line.pl
index d85917446a..6640763370 100644
--- a/tp/t/results/invalid_nestings/section_on_defx_line.pl
+++ b/tp/t/results/invalid_nestings/section_on_defx_line.pl
@@ -153,7 +153,7 @@ $result_trees{'section_on_defx_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/section_on_index_entry_line.pl 
b/tp/t/results/invalid_nestings/section_on_index_entry_line.pl
index 3f8d569e08..f5a074cc68 100644
--- a/tp/t/results/invalid_nestings/section_on_index_entry_line.pl
+++ b/tp/t/results/invalid_nestings/section_on_index_entry_line.pl
@@ -35,7 +35,7 @@ $result_trees{'section_on_index_entry_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/invalid_nestings/style_not_closed_before_first_node.pl 
b/tp/t/results/invalid_nestings/style_not_closed_before_first_node.pl
index b30959f53a..2de3b9b989 100644
--- a/tp/t/results/invalid_nestings/style_not_closed_before_first_node.pl
+++ b/tp/t/results/invalid_nestings/style_not_closed_before_first_node.pl
@@ -46,7 +46,7 @@ $result_trees{'style_not_closed_before_first_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/style_not_closed_in_block_command.pl 
b/tp/t/results/invalid_nestings/style_not_closed_in_block_command.pl
index 619153b5b5..64e76e8e11 100644
--- a/tp/t/results/invalid_nestings/style_not_closed_in_block_command.pl
+++ b/tp/t/results/invalid_nestings/style_not_closed_in_block_command.pl
@@ -97,7 +97,7 @@ $result_trees{'style_not_closed_in_block_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/style_not_closed_in_table_line.pl 
b/tp/t/results/invalid_nestings/style_not_closed_in_table_line.pl
index 9c6b920433..a65a61840e 100644
--- a/tp/t/results/invalid_nestings/style_not_closed_in_table_line.pl
+++ b/tp/t/results/invalid_nestings/style_not_closed_in_table_line.pl
@@ -203,7 +203,7 @@ $result_trees{'style_not_closed_in_table_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/invalid_nestings/style_not_closed_no_newline_root_commands.pl 
b/tp/t/results/invalid_nestings/style_not_closed_no_newline_root_commands.pl
index 3b9862f3cc..7fe7292fbf 100644
--- a/tp/t/results/invalid_nestings/style_not_closed_no_newline_root_commands.pl
+++ b/tp/t/results/invalid_nestings/style_not_closed_no_newline_root_commands.pl
@@ -10,7 +10,7 @@ $result_trees{'style_not_closed_no_newline_root_commands'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/style_not_closed_root_commands.pl 
b/tp/t/results/invalid_nestings/style_not_closed_root_commands.pl
index 1c38e31a74..bf1284b968 100644
--- a/tp/t/results/invalid_nestings/style_not_closed_root_commands.pl
+++ b/tp/t/results/invalid_nestings/style_not_closed_root_commands.pl
@@ -10,7 +10,7 @@ $result_trees{'style_not_closed_root_commands'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/tab_in_index.pl 
b/tp/t/results/invalid_nestings/tab_in_index.pl
index 42f20c1694..5af93e73ac 100644
--- a/tp/t/results/invalid_nestings/tab_in_index.pl
+++ b/tp/t/results/invalid_nestings/tab_in_index.pl
@@ -222,7 +222,7 @@ $result_trees{'tab_in_index'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/table_in_code.pl 
b/tp/t/results/invalid_nestings/table_in_code.pl
index 5d995c6752..5298e0cbd7 100644
--- a/tp/t/results/invalid_nestings/table_in_code.pl
+++ b/tp/t/results/invalid_nestings/table_in_code.pl
@@ -176,7 +176,7 @@ $result_trees{'table_in_code'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/table_not_closed_in_menu_comment.pl 
b/tp/t/results/invalid_nestings/table_not_closed_in_menu_comment.pl
index b0b909212d..3fde706555 100644
--- a/tp/t/results/invalid_nestings/table_not_closed_in_menu_comment.pl
+++ b/tp/t/results/invalid_nestings/table_not_closed_in_menu_comment.pl
@@ -246,7 +246,7 @@ $result_trees{'table_not_closed_in_menu_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/invalid_nestings/table_not_closed_in_menu_description.pl 
b/tp/t/results/invalid_nestings/table_not_closed_in_menu_description.pl
index 03c9b0d1a2..30231cc0bb 100644
--- a/tp/t/results/invalid_nestings/table_not_closed_in_menu_description.pl
+++ b/tp/t/results/invalid_nestings/table_not_closed_in_menu_description.pl
@@ -222,7 +222,7 @@ $result_trees{'table_not_closed_in_menu_description'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/table_on_item_line.pl 
b/tp/t/results/invalid_nestings/table_on_item_line.pl
index b1a4057ce9..8acd8c39d8 100644
--- a/tp/t/results/invalid_nestings/table_on_item_line.pl
+++ b/tp/t/results/invalid_nestings/table_on_item_line.pl
@@ -247,7 +247,7 @@ $result_trees{'table_on_item_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/invalid_nestings/unclosed_verb_end_of_line_on_misc_line.pl 
b/tp/t/results/invalid_nestings/unclosed_verb_end_of_line_on_misc_line.pl
index 2c93fdaa71..93bc08af6d 100644
--- a/tp/t/results/invalid_nestings/unclosed_verb_end_of_line_on_misc_line.pl
+++ b/tp/t/results/invalid_nestings/unclosed_verb_end_of_line_on_misc_line.pl
@@ -62,7 +62,7 @@ $result_trees{'unclosed_verb_end_of_line_on_misc_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/unclosed_verb_on_misc_line.pl 
b/tp/t/results/invalid_nestings/unclosed_verb_on_misc_line.pl
index 370f44bfbb..f160bb6594 100644
--- a/tp/t/results/invalid_nestings/unclosed_verb_on_misc_line.pl
+++ b/tp/t/results/invalid_nestings/unclosed_verb_on_misc_line.pl
@@ -61,7 +61,7 @@ $result_trees{'unclosed_verb_on_misc_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/invalid_nestings/unclosed_verb_on_section_line.pl 
b/tp/t/results/invalid_nestings/unclosed_verb_on_section_line.pl
index b1bb7ab513..dfad4ba7df 100644
--- a/tp/t/results/invalid_nestings/unclosed_verb_on_section_line.pl
+++ b/tp/t/results/invalid_nestings/unclosed_verb_on_section_line.pl
@@ -10,7 +10,7 @@ $result_trees{'unclosed_verb_on_section_line'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/invalid_nestings/verbatim_in_ref.pl 
b/tp/t/results/invalid_nestings/verbatim_in_ref.pl
index 1d6a6716da..36dc2adf19 100644
--- a/tp/t/results/invalid_nestings/verbatim_in_ref.pl
+++ b/tp/t/results/invalid_nestings/verbatim_in_ref.pl
@@ -10,7 +10,7 @@ $result_trees{'verbatim_in_ref'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/itemize/accent_argument.pl 
b/tp/t/results/itemize/accent_argument.pl
index 29aea7dc46..80c4040937 100644
--- a/tp/t/results/itemize/accent_argument.pl
+++ b/tp/t/results/itemize/accent_argument.pl
@@ -221,7 +221,7 @@ $result_trees{'accent_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/asis_as_itemize_argument.pl 
b/tp/t/results/itemize/asis_as_itemize_argument.pl
index c6ef3507c1..fe2465b802 100644
--- a/tp/t/results/itemize/asis_as_itemize_argument.pl
+++ b/tp/t/results/itemize/asis_as_itemize_argument.pl
@@ -106,7 +106,7 @@ $result_trees{'asis_as_itemize_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/bad_enumerate_arguments.pl 
b/tp/t/results/itemize/bad_enumerate_arguments.pl
index 51dbbd6b51..45c0bbfec4 100644
--- a/tp/t/results/itemize/bad_enumerate_arguments.pl
+++ b/tp/t/results/itemize/bad_enumerate_arguments.pl
@@ -367,7 +367,7 @@ $result_trees{'bad_enumerate_arguments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/comment_first_on_enumerate_line.pl 
b/tp/t/results/itemize/comment_first_on_enumerate_line.pl
index 4fc64395d7..8cb3a8a397 100644
--- a/tp/t/results/itemize/comment_first_on_enumerate_line.pl
+++ b/tp/t/results/itemize/comment_first_on_enumerate_line.pl
@@ -110,7 +110,7 @@ $result_trees{'comment_first_on_enumerate_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/comment_first_on_itemize_line.pl 
b/tp/t/results/itemize/comment_first_on_itemize_line.pl
index e66abc17c0..77ad58cc84 100644
--- a/tp/t/results/itemize/comment_first_on_itemize_line.pl
+++ b/tp/t/results/itemize/comment_first_on_itemize_line.pl
@@ -116,7 +116,7 @@ $result_trees{'comment_first_on_itemize_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/enumerate_and_empty_lines.pl 
b/tp/t/results/itemize/enumerate_and_empty_lines.pl
index 5233ac4c10..ceb8435b8c 100644
--- a/tp/t/results/itemize/enumerate_and_empty_lines.pl
+++ b/tp/t/results/itemize/enumerate_and_empty_lines.pl
@@ -594,7 +594,7 @@ $result_trees{'enumerate_and_empty_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/enumerate_argument.pl 
b/tp/t/results/itemize/enumerate_argument.pl
index 843fa9831c..272c270f8f 100644
--- a/tp/t/results/itemize/enumerate_argument.pl
+++ b/tp/t/results/itemize/enumerate_argument.pl
@@ -242,7 +242,7 @@ $result_trees{'enumerate_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/enumerate_argument_item.pl 
b/tp/t/results/itemize/enumerate_argument_item.pl
index 0c8c15ab7f..e48fd726c7 100644
--- a/tp/t/results/itemize/enumerate_argument_item.pl
+++ b/tp/t/results/itemize/enumerate_argument_item.pl
@@ -398,7 +398,7 @@ $result_trees{'enumerate_argument_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/enumerate_in_example.pl 
b/tp/t/results/itemize/enumerate_in_example.pl
index 3fc7f8ca42..dd606018d3 100644
--- a/tp/t/results/itemize/enumerate_in_example.pl
+++ b/tp/t/results/itemize/enumerate_in_example.pl
@@ -187,7 +187,7 @@ $result_trees{'enumerate_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/enumerate_letters.pl 
b/tp/t/results/itemize/enumerate_letters.pl
index 715bdca82b..8c3def7ac9 100644
--- a/tp/t/results/itemize/enumerate_letters.pl
+++ b/tp/t/results/itemize/enumerate_letters.pl
@@ -5429,7 +5429,7 @@ $result_trees{'enumerate_letters'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/headitem_itemx_in_enumerate.pl 
b/tp/t/results/itemize/headitem_itemx_in_enumerate.pl
index bf88d9d517..675d570966 100644
--- a/tp/t/results/itemize/headitem_itemx_in_enumerate.pl
+++ b/tp/t/results/itemize/headitem_itemx_in_enumerate.pl
@@ -135,7 +135,7 @@ $result_trees{'headitem_itemx_in_enumerate'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/headitem_itemx_in_itemize.pl 
b/tp/t/results/itemize/headitem_itemx_in_itemize.pl
index bc536b1459..b434b6fea7 100644
--- a/tp/t/results/itemize/headitem_itemx_in_itemize.pl
+++ b/tp/t/results/itemize/headitem_itemx_in_itemize.pl
@@ -143,7 +143,7 @@ $result_trees{'headitem_itemx_in_itemize'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/inter_item_commands_in_enumerate.pl 
b/tp/t/results/itemize/inter_item_commands_in_enumerate.pl
index df9277ac92..c5de0475e2 100644
--- a/tp/t/results/itemize/inter_item_commands_in_enumerate.pl
+++ b/tp/t/results/itemize/inter_item_commands_in_enumerate.pl
@@ -46,7 +46,7 @@ $result_trees{'inter_item_commands_in_enumerate'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/itemize/inter_item_commands_in_itemize.pl 
b/tp/t/results/itemize/inter_item_commands_in_itemize.pl
index 907255045c..4084db3b15 100644
--- a/tp/t/results/itemize/inter_item_commands_in_itemize.pl
+++ b/tp/t/results/itemize/inter_item_commands_in_itemize.pl
@@ -46,7 +46,7 @@ $result_trees{'inter_item_commands_in_itemize'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/itemize/itemize_and_empty_lines.pl 
b/tp/t/results/itemize/itemize_and_empty_lines.pl
index b64e1af402..eb200bf85e 100644
--- a/tp/t/results/itemize/itemize_and_empty_lines.pl
+++ b/tp/t/results/itemize/itemize_and_empty_lines.pl
@@ -1529,7 +1529,7 @@ $result_trees{'itemize_and_empty_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/itemize_in_example.pl 
b/tp/t/results/itemize/itemize_in_example.pl
index fe8f17ec6d..c415036c08 100644
--- a/tp/t/results/itemize/itemize_in_example.pl
+++ b/tp/t/results/itemize/itemize_in_example.pl
@@ -492,7 +492,7 @@ $result_trees{'itemize_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/itemize_line_commands_with_brace.pl 
b/tp/t/results/itemize/itemize_line_commands_with_brace.pl
index aa5ae3172f..29ee4e5a5f 100644
--- a/tp/t/results/itemize/itemize_line_commands_with_brace.pl
+++ b/tp/t/results/itemize/itemize_line_commands_with_brace.pl
@@ -221,7 +221,7 @@ $result_trees{'itemize_line_commands_with_brace'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/itemize_long_item.pl 
b/tp/t/results/itemize/itemize_long_item.pl
index 5bd3bdaad5..1e7ada5446 100644
--- a/tp/t/results/itemize/itemize_long_item.pl
+++ b/tp/t/results/itemize/itemize_long_item.pl
@@ -515,7 +515,7 @@ $result_trees{'itemize_long_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/not_closed_item.pl 
b/tp/t/results/itemize/not_closed_item.pl
index 88fd9178b8..2f75c8f00b 100644
--- a/tp/t/results/itemize/not_closed_item.pl
+++ b/tp/t/results/itemize/not_closed_item.pl
@@ -68,7 +68,7 @@ $result_trees{'not_closed_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/not_closed_itemize.pl 
b/tp/t/results/itemize/not_closed_itemize.pl
index 649fbbd9b1..1cfc1577bf 100644
--- a/tp/t/results/itemize/not_closed_itemize.pl
+++ b/tp/t/results/itemize/not_closed_itemize.pl
@@ -42,7 +42,7 @@ $result_trees{'not_closed_itemize'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/table_in_itemize.pl 
b/tp/t/results/itemize/table_in_itemize.pl
index b139c4365a..66561d9604 100644
--- a/tp/t/results/itemize/table_in_itemize.pl
+++ b/tp/t/results/itemize/table_in_itemize.pl
@@ -368,7 +368,7 @@ $result_trees{'table_in_itemize'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/itemize/w_argument.pl 
b/tp/t/results/itemize/w_argument.pl
index 4ae717ab82..4e249fbdd3 100644
--- a/tp/t/results/itemize/w_argument.pl
+++ b/tp/t/results/itemize/w_argument.pl
@@ -183,7 +183,7 @@ $result_trees{'w_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/languages/appendix_translated.pl 
b/tp/t/results/languages/appendix_translated.pl
index 188aac7c05..cd36fbc5d7 100644
--- a/tp/t/results/languages/appendix_translated.pl
+++ b/tp/t/results/languages/appendix_translated.pl
@@ -46,7 +46,7 @@ $result_trees{'appendix_translated'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/languages/command_translated.pl 
b/tp/t/results/languages/command_translated.pl
index d092ea5e0f..fd4f291b4c 100644
--- a/tp/t/results/languages/command_translated.pl
+++ b/tp/t/results/languages/command_translated.pl
@@ -46,7 +46,7 @@ $result_trees{'command_translated'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/languages/multiple.pl 
b/tp/t/results/languages/multiple.pl
index 0b82137c8a..a6f9a60c22 100644
--- a/tp/t/results/languages/multiple.pl
+++ b/tp/t/results/languages/multiple.pl
@@ -270,7 +270,7 @@ $result_trees{'multiple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/languages/multiple_lang_chapters.pl 
b/tp/t/results/languages/multiple_lang_chapters.pl
index 5828f58f4c..c708f804c5 100644
--- a/tp/t/results/languages/multiple_lang_chapters.pl
+++ b/tp/t/results/languages/multiple_lang_chapters.pl
@@ -130,7 +130,7 @@ $result_trees{'multiple_lang_chapters'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/languages/multiple_lang_chapters_latex.pl 
b/tp/t/results/languages/multiple_lang_chapters_latex.pl
index 42bf4d68db..09101d8b8b 100644
--- a/tp/t/results/languages/multiple_lang_chapters_latex.pl
+++ b/tp/t/results/languages/multiple_lang_chapters_latex.pl
@@ -130,7 +130,7 @@ $result_trees{'multiple_lang_chapters_latex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/languages/multiple_lang_chapters_texi2html.pl 
b/tp/t/results/languages/multiple_lang_chapters_texi2html.pl
index 9669d2e4b5..9249a42615 100644
--- a/tp/t/results/languages/multiple_lang_chapters_texi2html.pl
+++ b/tp/t/results/languages/multiple_lang_chapters_texi2html.pl
@@ -101,7 +101,7 @@ $result_trees{'multiple_lang_chapters_texi2html'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/languages/simple.pl b/tp/t/results/languages/simple.pl
index fa19fed157..5ebc8c7bcb 100644
--- a/tp/t/results/languages/simple.pl
+++ b/tp/t/results/languages/simple.pl
@@ -46,7 +46,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/languages/unknown_language.pl 
b/tp/t/results/languages/unknown_language.pl
index ff7e3299c1..31733ff8e3 100644
--- a/tp/t/results/languages/unknown_language.pl
+++ b/tp/t/results/languages/unknown_language.pl
@@ -46,7 +46,7 @@ $result_trees{'unknown_language'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/languages/unknown_region.pl 
b/tp/t/results/languages/unknown_region.pl
index 9572e8dea5..0cc195bd31 100644
--- a/tp/t/results/languages/unknown_region.pl
+++ b/tp/t/results/languages/unknown_region.pl
@@ -46,7 +46,7 @@ $result_trees{'unknown_region'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle.pl 
b/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle.pl
index f25c1adf86..ec24892b96 100644
--- a/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle.pl
+++ b/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle.pl
@@ -46,7 +46,7 @@ $result_trees{'anchor_links_xref_xrefautomaticsectiontitle'} 
= {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/custom_headings.pl 
b/tp/t/results/latex_tests/custom_headings.pl
index 69618e696f..b28f33a98a 100644
--- a/tp/t/results/latex_tests/custom_headings.pl
+++ b/tp/t/results/latex_tests/custom_headings.pl
@@ -222,7 +222,7 @@ $result_trees{'custom_headings'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/enumerate_arguments.pl 
b/tp/t/results/latex_tests/enumerate_arguments.pl
index 1a8b2b08de..ae18ef633c 100644
--- a/tp/t/results/latex_tests/enumerate_arguments.pl
+++ b/tp/t/results/latex_tests/enumerate_arguments.pl
@@ -766,7 +766,7 @@ $result_trees{'enumerate_arguments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/example_in_cartouche.pl 
b/tp/t/results/latex_tests/example_in_cartouche.pl
index 7576532376..13d02c4a6e 100644
--- a/tp/t/results/latex_tests/example_in_cartouche.pl
+++ b/tp/t/results/latex_tests/example_in_cartouche.pl
@@ -255,7 +255,7 @@ $result_trees{'example_in_cartouche'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/float_and_refs.pl 
b/tp/t/results/latex_tests/float_and_refs.pl
index b584aed133..faf3190d39 100644
--- a/tp/t/results/latex_tests/float_and_refs.pl
+++ b/tp/t/results/latex_tests/float_and_refs.pl
@@ -46,7 +46,7 @@ $result_trees{'float_and_refs'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/fonttextsize.pl 
b/tp/t/results/latex_tests/fonttextsize.pl
index 5172024087..e03cb9175b 100644
--- a/tp/t/results/latex_tests/fonttextsize.pl
+++ b/tp/t/results/latex_tests/fonttextsize.pl
@@ -83,7 +83,7 @@ $result_trees{'fonttextsize'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/indices.pl 
b/tp/t/results/latex_tests/indices.pl
index 74af81c6e6..8a07d44fbf 100644
--- a/tp/t/results/latex_tests/indices.pl
+++ b/tp/t/results/latex_tests/indices.pl
@@ -76,7 +76,7 @@ $result_trees{'indices'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/kbdinputstyle_and_kbd.pl 
b/tp/t/results/latex_tests/kbdinputstyle_and_kbd.pl
index 6410e86dec..12850df52a 100644
--- a/tp/t/results/latex_tests/kbdinputstyle_and_kbd.pl
+++ b/tp/t/results/latex_tests/kbdinputstyle_and_kbd.pl
@@ -613,7 +613,7 @@ $result_trees{'kbdinputstyle_and_kbd'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/nested_enumerate.pl 
b/tp/t/results/latex_tests/nested_enumerate.pl
index 8b9c1525f8..48370dd228 100644
--- a/tp/t/results/latex_tests/nested_enumerate.pl
+++ b/tp/t/results/latex_tests/nested_enumerate.pl
@@ -536,7 +536,7 @@ $result_trees{'nested_enumerate'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/nested_itemize.pl 
b/tp/t/results/latex_tests/nested_itemize.pl
index b356688826..e9fdc9a04f 100644
--- a/tp/t/results/latex_tests/nested_itemize.pl
+++ b/tp/t/results/latex_tests/nested_itemize.pl
@@ -562,7 +562,7 @@ $result_trees{'nested_itemize'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_odd.pl 
b/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_odd.pl
index e77c660f51..3bd7704b3d 100644
--- a/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_odd.pl
+++ b/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_odd.pl
@@ -71,7 +71,7 @@ $result_trees{'no_titlepage_and_setchapternewpage_odd'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_on.pl 
b/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_on.pl
index 11b5d1b1a8..657336f988 100644
--- a/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_on.pl
+++ b/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_on.pl
@@ -71,7 +71,7 @@ $result_trees{'no_titlepage_and_setchapternewpage_on'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/pagesizes.pl 
b/tp/t/results/latex_tests/pagesizes.pl
index 43c07ba820..2fd40fdea1 100644
--- a/tp/t/results/latex_tests/pagesizes.pl
+++ b/tp/t/results/latex_tests/pagesizes.pl
@@ -80,7 +80,7 @@ $result_trees{'pagesizes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/pagetype.pl 
b/tp/t/results/latex_tests/pagetype.pl
index ea8da6d863..85b6f814d4 100644
--- a/tp/t/results/latex_tests/pagetype.pl
+++ b/tp/t/results/latex_tests/pagetype.pl
@@ -82,7 +82,7 @@ $result_trees{'pagetype'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage.pl 
b/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage.pl
index d748a40394..03bab97b02 100644
--- a/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage.pl
+++ b/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage.pl
@@ -178,7 +178,7 @@ $result_trees{'setchapternewpage_on_odd_titlepage'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/settitle_and_headings.pl 
b/tp/t/results/latex_tests/settitle_and_headings.pl
index 5f642fcad7..886442798b 100644
--- a/tp/t/results/latex_tests/settitle_and_headings.pl
+++ b/tp/t/results/latex_tests/settitle_and_headings.pl
@@ -119,7 +119,7 @@ $result_trees{'settitle_and_headings'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/shorttitlepage.pl 
b/tp/t/results/latex_tests/shorttitlepage.pl
index a85aeb6ae9..eda9891e57 100644
--- a/tp/t/results/latex_tests/shorttitlepage.pl
+++ b/tp/t/results/latex_tests/shorttitlepage.pl
@@ -88,7 +88,7 @@ $result_trees{'shorttitlepage'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/three_setchapternewpage_on_odd_off.pl 
b/tp/t/results/latex_tests/three_setchapternewpage_on_odd_off.pl
index 7af135caaf..d9c9c22b81 100644
--- a/tp/t/results/latex_tests/three_setchapternewpage_on_odd_off.pl
+++ b/tp/t/results/latex_tests/three_setchapternewpage_on_odd_off.pl
@@ -145,7 +145,7 @@ $result_trees{'three_setchapternewpage_on_odd_off'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/titlepage_and_headings.pl 
b/tp/t/results/latex_tests/titlepage_and_headings.pl
index 26c2c912cd..bf5a2b2a79 100644
--- a/tp/t/results/latex_tests/titlepage_and_headings.pl
+++ b/tp/t/results/latex_tests/titlepage_and_headings.pl
@@ -116,7 +116,7 @@ $result_trees{'titlepage_and_headings'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd.pl 
b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd.pl
index 4240636f0e..0de694ab40 100644
--- a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd.pl
+++ b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd.pl
@@ -153,7 +153,7 @@ $result_trees{'titlepage_and_setchapternewpage_odd'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on.pl 
b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on.pl
index 2f7a0d9cab..629a622bd8 100644
--- a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on.pl
+++ b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on.pl
@@ -147,7 +147,7 @@ $result_trees{'titlepage_and_setchapternewpage_on'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/titlepage_classical.pl 
b/tp/t/results/latex_tests/titlepage_classical.pl
index b58d8f748e..2999250198 100644
--- a/tp/t/results/latex_tests/titlepage_classical.pl
+++ b/tp/t/results/latex_tests/titlepage_classical.pl
@@ -400,7 +400,7 @@ $result_trees{'titlepage_classical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/titlepage_in_top_node.pl 
b/tp/t/results/latex_tests/titlepage_in_top_node.pl
index 2772f2b059..35ce942380 100644
--- a/tp/t/results/latex_tests/titlepage_in_top_node.pl
+++ b/tp/t/results/latex_tests/titlepage_in_top_node.pl
@@ -46,7 +46,7 @@ $result_trees{'titlepage_in_top_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/titlepage_long_title.pl 
b/tp/t/results/latex_tests/titlepage_long_title.pl
index 52ac8d11ef..8b00d0c9ac 100644
--- a/tp/t/results/latex_tests/titlepage_long_title.pl
+++ b/tp/t/results/latex_tests/titlepage_long_title.pl
@@ -141,7 +141,7 @@ $result_trees{'titlepage_long_title'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/titlepage_no_author.pl 
b/tp/t/results/latex_tests/titlepage_no_author.pl
index e8dcbb5d3e..2f344c9445 100644
--- a/tp/t/results/latex_tests/titlepage_no_author.pl
+++ b/tp/t/results/latex_tests/titlepage_no_author.pl
@@ -127,7 +127,7 @@ $result_trees{'titlepage_no_author'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/titlepage_no_title.pl 
b/tp/t/results/latex_tests/titlepage_no_title.pl
index 4d2ed02d60..197019d036 100644
--- a/tp/t/results/latex_tests/titlepage_no_title.pl
+++ b/tp/t/results/latex_tests/titlepage_no_title.pl
@@ -161,7 +161,7 @@ $result_trees{'titlepage_no_title'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/titlepage_with_commands_classical.pl 
b/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
index b1cafeb1d4..1f1ca0aab2 100644
--- a/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
+++ b/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
@@ -577,7 +577,7 @@ $result_trees{'titlepage_with_commands_classical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/latex_tests/two_setchapternewpage_odd_on.pl 
b/tp/t/results/latex_tests/two_setchapternewpage_odd_on.pl
index f3ec7a2f0c..36678f8a19 100644
--- a/tp/t/results/latex_tests/two_setchapternewpage_odd_on.pl
+++ b/tp/t/results/latex_tests/two_setchapternewpage_odd_on.pl
@@ -108,7 +108,7 @@ $result_trees{'two_setchapternewpage_odd_on'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/two_setchapternewpage_on_odd.pl 
b/tp/t/results/latex_tests/two_setchapternewpage_on_odd.pl
index 3de5ad4207..6652f2d85d 100644
--- a/tp/t/results/latex_tests/two_setchapternewpage_on_odd.pl
+++ b/tp/t/results/latex_tests/two_setchapternewpage_on_odd.pl
@@ -108,7 +108,7 @@ $result_trees{'two_setchapternewpage_on_odd'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/latex_tests/verbatim_in_smallformat.pl 
b/tp/t/results/latex_tests/verbatim_in_smallformat.pl
index 86bc1fcdf1..d63c970a51 100644
--- a/tp/t/results/latex_tests/verbatim_in_smallformat.pl
+++ b/tp/t/results/latex_tests/verbatim_in_smallformat.pl
@@ -131,7 +131,7 @@ $result_trees{'verbatim_in_smallformat'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/layout/navigation.pl 
b/tp/t/results/layout/navigation.pl
index e15531bcd0..cb0c18fa7b 100644
--- a/tp/t/results/layout/navigation.pl
+++ b/tp/t/results/layout/navigation.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_chapter.pl 
b/tp/t/results/layout/navigation_chapter.pl
index 5762e5384f..a1c62af828 100644
--- a/tp/t/results/layout/navigation_chapter.pl
+++ b/tp/t/results/layout/navigation_chapter.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_chapter'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_chapter_no_header.pl 
b/tp/t/results/layout/navigation_chapter_no_header.pl
index ffc3d950ac..ed8c6897b7 100644
--- a/tp/t/results/layout/navigation_chapter_no_header.pl
+++ b/tp/t/results/layout/navigation_chapter_no_header.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_chapter_no_header'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_chapter_no_header_vertical.pl 
b/tp/t/results/layout/navigation_chapter_no_header_vertical.pl
index ef95de58f2..0b5b26d929 100644
--- a/tp/t/results/layout/navigation_chapter_no_header_vertical.pl
+++ b/tp/t/results/layout/navigation_chapter_no_header_vertical.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_chapter_no_header_vertical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_chapter_vertical.pl 
b/tp/t/results/layout/navigation_chapter_vertical.pl
index cc535314c3..6f92b4291c 100644
--- a/tp/t/results/layout/navigation_chapter_vertical.pl
+++ b/tp/t/results/layout/navigation_chapter_vertical.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_chapter_vertical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_no_header.pl 
b/tp/t/results/layout/navigation_no_header.pl
index 7a62c648d6..0b166d40b5 100644
--- a/tp/t/results/layout/navigation_no_header.pl
+++ b/tp/t/results/layout/navigation_no_header.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_no_header'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_no_header_vertical.pl 
b/tp/t/results/layout/navigation_no_header_vertical.pl
index d6ed5efca3..7b31468165 100644
--- a/tp/t/results/layout/navigation_no_header_vertical.pl
+++ b/tp/t/results/layout/navigation_no_header_vertical.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_no_header_vertical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_node.pl 
b/tp/t/results/layout/navigation_node.pl
index d227c50766..8e578ccd6f 100644
--- a/tp/t/results/layout/navigation_node.pl
+++ b/tp/t/results/layout/navigation_node.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_node_no_header.pl 
b/tp/t/results/layout/navigation_node_no_header.pl
index 4e5fee9658..75da91dee6 100644
--- a/tp/t/results/layout/navigation_node_no_header.pl
+++ b/tp/t/results/layout/navigation_node_no_header.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_node_no_header'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_node_no_header_vertical.pl 
b/tp/t/results/layout/navigation_node_no_header_vertical.pl
index 76dc73fb5b..efa412cb26 100644
--- a/tp/t/results/layout/navigation_node_no_header_vertical.pl
+++ b/tp/t/results/layout/navigation_node_no_header_vertical.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_node_no_header_vertical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_node_vertical.pl 
b/tp/t/results/layout/navigation_node_vertical.pl
index b49b5c19c3..f9a8b17192 100644
--- a/tp/t/results/layout/navigation_node_vertical.pl
+++ b/tp/t/results/layout/navigation_node_vertical.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_node_vertical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_section.pl 
b/tp/t/results/layout/navigation_section.pl
index 283dd03815..22822e049e 100644
--- a/tp/t/results/layout/navigation_section.pl
+++ b/tp/t/results/layout/navigation_section.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_section'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_section_no_header.pl 
b/tp/t/results/layout/navigation_section_no_header.pl
index 76ef28b4f4..44391c8131 100644
--- a/tp/t/results/layout/navigation_section_no_header.pl
+++ b/tp/t/results/layout/navigation_section_no_header.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_section_no_header'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_section_no_header_vertical.pl 
b/tp/t/results/layout/navigation_section_no_header_vertical.pl
index b3ccddc520..95d6489b8b 100644
--- a/tp/t/results/layout/navigation_section_no_header_vertical.pl
+++ b/tp/t/results/layout/navigation_section_no_header_vertical.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_section_no_header_vertical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_section_vertical.pl 
b/tp/t/results/layout/navigation_section_vertical.pl
index f03c905fad..c51497ec5f 100644
--- a/tp/t/results/layout/navigation_section_vertical.pl
+++ b/tp/t/results/layout/navigation_section_vertical.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_section_vertical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/navigation_vertical.pl 
b/tp/t/results/layout/navigation_vertical.pl
index 33c5708f95..4e5779e215 100644
--- a/tp/t/results/layout/navigation_vertical.pl
+++ b/tp/t/results/layout/navigation_vertical.pl
@@ -70,7 +70,7 @@ $result_trees{'navigation_vertical'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/layout/no_monolithic.pl 
b/tp/t/results/layout/no_monolithic.pl
index a816ebfd96..ecd7762de9 100644
--- a/tp/t/results/layout/no_monolithic.pl
+++ b/tp/t/results/layout/no_monolithic.pl
@@ -70,7 +70,7 @@ $result_trees{'no_monolithic'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/macro/arg_body_expansion_order.pl 
b/tp/t/results/macro/arg_body_expansion_order.pl
index 0960fda8df..30e02ea228 100644
--- a/tp/t/results/macro/arg_body_expansion_order.pl
+++ b/tp/t/results/macro/arg_body_expansion_order.pl
@@ -213,7 +213,7 @@ $result_trees{'arg_body_expansion_order'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/arg_not_closed.pl 
b/tp/t/results/macro/arg_not_closed.pl
index 206e0ae09a..87fab7142d 100644
--- a/tp/t/results/macro/arg_not_closed.pl
+++ b/tp/t/results/macro/arg_not_closed.pl
@@ -72,7 +72,7 @@ $result_trees{'arg_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/backslash_in_arg.pl 
b/tp/t/results/macro/backslash_in_arg.pl
index 98324592c5..5287e7872a 100644
--- a/tp/t/results/macro/backslash_in_arg.pl
+++ b/tp/t/results/macro/backslash_in_arg.pl
@@ -10,7 +10,7 @@ $result_trees{'backslash_in_arg'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/macro/bad_argument.pl 
b/tp/t/results/macro/bad_argument.pl
index 6c7d66e1ec..f7d24b4750 100644
--- a/tp/t/results/macro/bad_argument.pl
+++ b/tp/t/results/macro/bad_argument.pl
@@ -180,7 +180,7 @@ $result_trees{'bad_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/bad_formal_arg.pl 
b/tp/t/results/macro/bad_formal_arg.pl
index eddd25fd7d..ac895fbc4b 100644
--- a/tp/t/results/macro/bad_formal_arg.pl
+++ b/tp/t/results/macro/bad_formal_arg.pl
@@ -196,7 +196,7 @@ $result_trees{'bad_formal_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/bad_macro_name_with_underscore.pl 
b/tp/t/results/macro/bad_macro_name_with_underscore.pl
index 741c6d48e1..746f966e3d 100644
--- a/tp/t/results/macro/bad_macro_name_with_underscore.pl
+++ b/tp/t/results/macro/bad_macro_name_with_underscore.pl
@@ -60,7 +60,7 @@ $result_trees{'bad_macro_name_with_underscore'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/complete_macro_for_end.pl 
b/tp/t/results/macro/complete_macro_for_end.pl
index ebe6220143..fe6ff56fd3 100644
--- a/tp/t/results/macro/complete_macro_for_end.pl
+++ b/tp/t/results/macro/complete_macro_for_end.pl
@@ -105,7 +105,7 @@ $result_trees{'complete_macro_for_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/complex_argument.pl 
b/tp/t/results/macro/complex_argument.pl
index 7c0d6b7b0b..a4f934ff54 100644
--- a/tp/t/results/macro/complex_argument.pl
+++ b/tp/t/results/macro/complex_argument.pl
@@ -537,7 +537,7 @@ $result_trees{'complex_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/double_macro_definition.pl 
b/tp/t/results/macro/double_macro_definition.pl
index 8d59a3d154..70324262b8 100644
--- a/tp/t/results/macro/double_macro_definition.pl
+++ b/tp/t/results/macro/double_macro_definition.pl
@@ -71,7 +71,7 @@ $result_trees{'double_macro_definition'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/double_recursive_macro_call.pl 
b/tp/t/results/macro/double_recursive_macro_call.pl
index 509a92a763..0c5dfb0852 100644
--- a/tp/t/results/macro/double_recursive_macro_call.pl
+++ b/tp/t/results/macro/double_recursive_macro_call.pl
@@ -123,7 +123,7 @@ $result_trees{'double_recursive_macro_call'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/empty_end.pl b/tp/t/results/macro/empty_end.pl
index 016ac0b38c..800d175c41 100644
--- a/tp/t/results/macro/empty_end.pl
+++ b/tp/t/results/macro/empty_end.pl
@@ -54,7 +54,7 @@ $result_trees{'empty_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/empty_macro_argument.pl 
b/tp/t/results/macro/empty_macro_argument.pl
index 867096bc8e..a2122773bc 100644
--- a/tp/t/results/macro/empty_macro_argument.pl
+++ b/tp/t/results/macro/empty_macro_argument.pl
@@ -133,7 +133,7 @@ $result_trees{'empty_macro_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/empty_macro_in_text_no_arg.pl 
b/tp/t/results/macro/empty_macro_in_text_no_arg.pl
index 4659632bc3..f4f0164e2e 100644
--- a/tp/t/results/macro/empty_macro_in_text_no_arg.pl
+++ b/tp/t/results/macro/empty_macro_in_text_no_arg.pl
@@ -110,7 +110,7 @@ $result_trees{'empty_macro_in_text_no_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/empty_macro_no_arg.pl 
b/tp/t/results/macro/empty_macro_no_arg.pl
index 2b4a307e49..d61b934d95 100644
--- a/tp/t/results/macro/empty_macro_no_arg.pl
+++ b/tp/t/results/macro/empty_macro_no_arg.pl
@@ -62,7 +62,7 @@ $result_trees{'empty_macro_no_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/expand_two_same.pl 
b/tp/t/results/macro/expand_two_same.pl
index 440e24ad8b..e703eb3e3b 100644
--- a/tp/t/results/macro/expand_two_same.pl
+++ b/tp/t/results/macro/expand_two_same.pl
@@ -178,7 +178,7 @@ $result_trees{'expand_two_same'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/expansion_order.pl 
b/tp/t/results/macro/expansion_order.pl
index 0baccdf3de..07b6f07cb8 100644
--- a/tp/t/results/macro/expansion_order.pl
+++ b/tp/t/results/macro/expansion_order.pl
@@ -129,7 +129,7 @@ $result_trees{'expansion_order'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/form_feeds.pl b/tp/t/results/macro/form_feeds.pl
index cd8b5d9baf..52af8537db 100644
--- a/tp/t/results/macro/form_feeds.pl
+++ b/tp/t/results/macro/form_feeds.pl
@@ -178,7 +178,7 @@ $result_trees{'form_feeds'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/ifclear_in_macro.pl 
b/tp/t/results/macro/ifclear_in_macro.pl
index e5c4ddd1c8..4228539617 100644
--- a/tp/t/results/macro/ifclear_in_macro.pl
+++ b/tp/t/results/macro/ifclear_in_macro.pl
@@ -90,7 +90,7 @@ $result_trees{'ifclear_in_macro'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/ifset_and_end_isef_in_macro.pl 
b/tp/t/results/macro/ifset_and_end_isef_in_macro.pl
index ea165d8951..96a38036cc 100644
--- a/tp/t/results/macro/ifset_and_end_isef_in_macro.pl
+++ b/tp/t/results/macro/ifset_and_end_isef_in_macro.pl
@@ -101,7 +101,7 @@ $result_trees{'ifset_and_end_isef_in_macro'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/ifset_in_macro.pl 
b/tp/t/results/macro/ifset_in_macro.pl
index 7ba7de672e..2f57939e38 100644
--- a/tp/t/results/macro/ifset_in_macro.pl
+++ b/tp/t/results/macro/ifset_in_macro.pl
@@ -73,7 +73,7 @@ $result_trees{'ifset_in_macro'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/ifset_in_macro_set.pl 
b/tp/t/results/macro/ifset_in_macro_set.pl
index 65ecee0caa..96ea1c700e 100644
--- a/tp/t/results/macro/ifset_in_macro_set.pl
+++ b/tp/t/results/macro/ifset_in_macro_set.pl
@@ -90,7 +90,7 @@ $result_trees{'ifset_in_macro_set'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/ignored_macro_definition.pl 
b/tp/t/results/macro/ignored_macro_definition.pl
index 19b84aa32c..d86e5270b9 100644
--- a/tp/t/results/macro/ignored_macro_definition.pl
+++ b/tp/t/results/macro/ignored_macro_definition.pl
@@ -120,7 +120,7 @@ $result_trees{'ignored_macro_definition'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/implicit_quoting_one_arg.pl 
b/tp/t/results/macro/implicit_quoting_one_arg.pl
index a49dfcf668..09e3ae1173 100644
--- a/tp/t/results/macro/implicit_quoting_one_arg.pl
+++ b/tp/t/results/macro/implicit_quoting_one_arg.pl
@@ -100,7 +100,7 @@ $result_trees{'implicit_quoting_one_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/implicit_quoting_recursion.pl 
b/tp/t/results/macro/implicit_quoting_recursion.pl
index e2f3761a12..6f182416d2 100644
--- a/tp/t/results/macro/implicit_quoting_recursion.pl
+++ b/tp/t/results/macro/implicit_quoting_recursion.pl
@@ -77,7 +77,7 @@ $result_trees{'implicit_quoting_recursion'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/include_after_empty_line_arg.pl 
b/tp/t/results/macro/include_after_empty_line_arg.pl
index f6502a2503..1a6f546cca 100644
--- a/tp/t/results/macro/include_after_empty_line_arg.pl
+++ b/tp/t/results/macro/include_after_empty_line_arg.pl
@@ -94,7 +94,7 @@ $result_trees{'include_after_empty_line_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/leading_spaces_no_ignore.pl 
b/tp/t/results/macro/leading_spaces_no_ignore.pl
index 6018a838e3..59ff66e943 100644
--- a/tp/t/results/macro/leading_spaces_no_ignore.pl
+++ b/tp/t/results/macro/leading_spaces_no_ignore.pl
@@ -83,7 +83,7 @@ $result_trees{'leading_spaces_no_ignore'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/line_after_recursive_call.pl 
b/tp/t/results/macro/line_after_recursive_call.pl
index 8fed9acf0c..39957b6ef4 100644
--- a/tp/t/results/macro/line_after_recursive_call.pl
+++ b/tp/t/results/macro/line_after_recursive_call.pl
@@ -82,7 +82,7 @@ $result_trees{'line_after_recursive_call'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_expands_to_empty.pl 
b/tp/t/results/macro/macro_expands_to_empty.pl
index 8bf36f6cb4..46cca3551c 100644
--- a/tp/t/results/macro/macro_expands_to_empty.pl
+++ b/tp/t/results/macro/macro_expands_to_empty.pl
@@ -78,7 +78,7 @@ $result_trees{'macro_expands_to_empty'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_expansion.pl 
b/tp/t/results/macro/macro_expansion.pl
index cdaab46300..2d017bf875 100644
--- a/tp/t/results/macro/macro_expansion.pl
+++ b/tp/t/results/macro/macro_expansion.pl
@@ -467,7 +467,7 @@ $result_trees{'macro_expansion'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_for_end.pl 
b/tp/t/results/macro/macro_for_end.pl
index 3717ce54df..66eabb9ac0 100644
--- a/tp/t/results/macro/macro_for_end.pl
+++ b/tp/t/results/macro/macro_for_end.pl
@@ -109,7 +109,7 @@ $result_trees{'macro_for_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_for_ignored_line_command.pl 
b/tp/t/results/macro/macro_for_ignored_line_command.pl
index 916cd01789..0d8d07b76d 100644
--- a/tp/t/results/macro/macro_for_ignored_line_command.pl
+++ b/tp/t/results/macro/macro_for_ignored_line_command.pl
@@ -68,7 +68,7 @@ $result_trees{'macro_for_ignored_line_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_accent.pl 
b/tp/t/results/macro/macro_in_accent.pl
index c34732e0e8..91aca1d391 100644
--- a/tp/t/results/macro/macro_in_accent.pl
+++ b/tp/t/results/macro/macro_in_accent.pl
@@ -260,7 +260,7 @@ $result_trees{'macro_in_accent'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_brace_command.pl 
b/tp/t/results/macro/macro_in_brace_command.pl
index 571b6068f6..4f66abf26f 100644
--- a/tp/t/results/macro/macro_in_brace_command.pl
+++ b/tp/t/results/macro/macro_in_brace_command.pl
@@ -231,7 +231,7 @@ $result_trees{'macro_in_brace_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_end_argument.pl 
b/tp/t/results/macro/macro_in_end_argument.pl
index 5773dfcb55..fb2a67c506 100644
--- a/tp/t/results/macro/macro_in_end_argument.pl
+++ b/tp/t/results/macro/macro_in_end_argument.pl
@@ -109,7 +109,7 @@ $result_trees{'macro_in_end_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_ifset.pl 
b/tp/t/results/macro/macro_in_ifset.pl
index c1466046e3..ac2065d47c 100644
--- a/tp/t/results/macro/macro_in_ifset.pl
+++ b/tp/t/results/macro/macro_in_ifset.pl
@@ -61,7 +61,7 @@ $result_trees{'macro_in_ifset'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_ifset_end_in_arg.pl 
b/tp/t/results/macro/macro_in_ifset_end_in_arg.pl
index cbb36f5904..4a282a060b 100644
--- a/tp/t/results/macro/macro_in_ifset_end_in_arg.pl
+++ b/tp/t/results/macro/macro_in_ifset_end_in_arg.pl
@@ -106,7 +106,7 @@ $result_trees{'macro_in_ifset_end_in_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_index_commands.pl 
b/tp/t/results/macro/macro_in_index_commands.pl
index 8e2085a1e0..c5497df54a 100644
--- a/tp/t/results/macro/macro_in_index_commands.pl
+++ b/tp/t/results/macro/macro_in_index_commands.pl
@@ -474,7 +474,7 @@ $result_trees{'macro_in_index_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/macro/macro_in_invalid_documentencoding.pl 
b/tp/t/results/macro/macro_in_invalid_documentencoding.pl
index b89ced6f80..a57b7caa8f 100644
--- a/tp/t/results/macro/macro_in_invalid_documentencoding.pl
+++ b/tp/t/results/macro/macro_in_invalid_documentencoding.pl
@@ -79,7 +79,7 @@ $result_trees{'macro_in_invalid_documentencoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_macro_arg.pl 
b/tp/t/results/macro/macro_in_macro_arg.pl
index 1ea6caa808..f439b45ba8 100644
--- a/tp/t/results/macro/macro_in_macro_arg.pl
+++ b/tp/t/results/macro/macro_in_macro_arg.pl
@@ -189,7 +189,7 @@ $result_trees{'macro_in_macro_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_macro_arg_simpler.pl 
b/tp/t/results/macro/macro_in_macro_arg_simpler.pl
index b96d26acfd..61c3be6cc4 100644
--- a/tp/t/results/macro/macro_in_macro_arg_simpler.pl
+++ b/tp/t/results/macro/macro_in_macro_arg_simpler.pl
@@ -133,7 +133,7 @@ $result_trees{'macro_in_macro_arg_simpler'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_menu.pl 
b/tp/t/results/macro/macro_in_menu.pl
index 80f5c189f7..1264166e12 100644
--- a/tp/t/results/macro/macro_in_menu.pl
+++ b/tp/t/results/macro/macro_in_menu.pl
@@ -664,7 +664,7 @@ $result_trees{'macro_in_menu'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_in_misc_commands.pl 
b/tp/t/results/macro/macro_in_misc_commands.pl
index 18330cc9bc..e3b4dfa20e 100644
--- a/tp/t/results/macro/macro_in_misc_commands.pl
+++ b/tp/t/results/macro/macro_in_misc_commands.pl
@@ -101,7 +101,7 @@ $result_trees{'macro_in_misc_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/macro/macro_name_with_digit.pl 
b/tp/t/results/macro/macro_name_with_digit.pl
index dee6b5dddd..99e2de95c7 100644
--- a/tp/t/results/macro/macro_name_with_digit.pl
+++ b/tp/t/results/macro/macro_name_with_digit.pl
@@ -117,7 +117,7 @@ $result_trees{'macro_name_with_digit'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_name_with_hyphen.pl 
b/tp/t/results/macro/macro_name_with_hyphen.pl
index daaab21b52..85a790a8b2 100644
--- a/tp/t/results/macro/macro_name_with_hyphen.pl
+++ b/tp/t/results/macro/macro_name_with_hyphen.pl
@@ -103,7 +103,7 @@ $result_trees{'macro_name_with_hyphen'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_no_arg_bad_expansion.pl 
b/tp/t/results/macro/macro_no_arg_bad_expansion.pl
index 4735c1fce3..ce19db860d 100644
--- a/tp/t/results/macro/macro_no_arg_bad_expansion.pl
+++ b/tp/t/results/macro/macro_no_arg_bad_expansion.pl
@@ -67,7 +67,7 @@ $result_trees{'macro_no_arg_bad_expansion'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_no_arg_expansion.pl 
b/tp/t/results/macro/macro_no_arg_expansion.pl
index 740bf7e004..082dd5baf6 100644
--- a/tp/t/results/macro/macro_no_arg_expansion.pl
+++ b/tp/t/results/macro/macro_no_arg_expansion.pl
@@ -67,7 +67,7 @@ $result_trees{'macro_no_arg_expansion'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_no_argument.pl 
b/tp/t/results/macro/macro_no_argument.pl
index a923101395..4781365e10 100644
--- a/tp/t/results/macro/macro_no_argument.pl
+++ b/tp/t/results/macro/macro_no_argument.pl
@@ -25,7 +25,7 @@ $result_trees{'macro_no_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_not_closed.pl 
b/tp/t/results/macro/macro_not_closed.pl
index 93af8e55a3..17f8ada87c 100644
--- a/tp/t/results/macro/macro_not_closed.pl
+++ b/tp/t/results/macro/macro_not_closed.pl
@@ -39,7 +39,7 @@ $result_trees{'macro_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_one_arg_end_of_file.pl 
b/tp/t/results/macro/macro_one_arg_end_of_file.pl
index ab1711588c..e747b9ed20 100644
--- a/tp/t/results/macro/macro_one_arg_end_of_file.pl
+++ b/tp/t/results/macro/macro_one_arg_end_of_file.pl
@@ -71,7 +71,7 @@ $result_trees{'macro_one_arg_end_of_file'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_with_error_at_end_line_after_macro.pl 
b/tp/t/results/macro/macro_with_error_at_end_line_after_macro.pl
index c64fdadebb..cfde78e2cb 100644
--- a/tp/t/results/macro/macro_with_error_at_end_line_after_macro.pl
+++ b/tp/t/results/macro/macro_with_error_at_end_line_after_macro.pl
@@ -84,7 +84,7 @@ $result_trees{'macro_with_error_at_end_line_after_macro'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/macro_zero.pl b/tp/t/results/macro/macro_zero.pl
index 6227ad38bc..f7c2bb909d 100644
--- a/tp/t/results/macro/macro_zero.pl
+++ b/tp/t/results/macro/macro_zero.pl
@@ -72,7 +72,7 @@ $result_trees{'macro_zero'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/nested_macro_call.pl 
b/tp/t/results/macro/nested_macro_call.pl
index 961416e21d..e4946bcdbe 100644
--- a/tp/t/results/macro/nested_macro_call.pl
+++ b/tp/t/results/macro/nested_macro_call.pl
@@ -123,7 +123,7 @@ $result_trees{'nested_macro_call'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/no_macrobody.pl 
b/tp/t/results/macro/no_macrobody.pl
index 69c91d720b..de6a38e557 100644
--- a/tp/t/results/macro/no_macrobody.pl
+++ b/tp/t/results/macro/no_macrobody.pl
@@ -72,7 +72,7 @@ $result_trees{'no_macrobody'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/paragraph_and_macro.pl 
b/tp/t/results/macro/paragraph_and_macro.pl
index 39ff74caff..e8c1321d11 100644
--- a/tp/t/results/macro/paragraph_and_macro.pl
+++ b/tp/t/results/macro/paragraph_and_macro.pl
@@ -220,7 +220,7 @@ $result_trees{'paragraph_and_macro'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/protect_comma_macro_line.pl 
b/tp/t/results/macro/protect_comma_macro_line.pl
index e0b9a7353d..dba1969f1f 100644
--- a/tp/t/results/macro/protect_comma_macro_line.pl
+++ b/tp/t/results/macro/protect_comma_macro_line.pl
@@ -112,7 +112,7 @@ $result_trees{'protect_comma_macro_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/protect_in_body.pl 
b/tp/t/results/macro/protect_in_body.pl
index 4e4b1b891a..6b05f90872 100644
--- a/tp/t/results/macro/protect_in_body.pl
+++ b/tp/t/results/macro/protect_in_body.pl
@@ -147,7 +147,7 @@ $result_trees{'protect_in_body'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/protect_in_body_line_arg.pl 
b/tp/t/results/macro/protect_in_body_line_arg.pl
index 7d6be47869..3587b63200 100644
--- a/tp/t/results/macro/protect_in_body_line_arg.pl
+++ b/tp/t/results/macro/protect_in_body_line_arg.pl
@@ -145,7 +145,7 @@ $result_trees{'protect_in_body_line_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/protect_in_body_one_arg.pl 
b/tp/t/results/macro/protect_in_body_one_arg.pl
index 46902d6abe..3a3507df93 100644
--- a/tp/t/results/macro/protect_in_body_one_arg.pl
+++ b/tp/t/results/macro/protect_in_body_one_arg.pl
@@ -142,7 +142,7 @@ $result_trees{'protect_in_body_one_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/recursive_call_in_argument.pl 
b/tp/t/results/macro/recursive_call_in_argument.pl
index 1ed6b2083f..ede911073c 100644
--- a/tp/t/results/macro/recursive_call_in_argument.pl
+++ b/tp/t/results/macro/recursive_call_in_argument.pl
@@ -72,7 +72,7 @@ $result_trees{'recursive_call_in_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/recursive_call_in_macro.pl 
b/tp/t/results/macro/recursive_call_in_macro.pl
index 0c95453b74..91040d6cac 100644
--- a/tp/t/results/macro/recursive_call_in_macro.pl
+++ b/tp/t/results/macro/recursive_call_in_macro.pl
@@ -67,7 +67,7 @@ $result_trees{'recursive_call_in_macro'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/redefine_texinfo_macro.pl 
b/tp/t/results/macro/redefine_texinfo_macro.pl
index 392beac085..e13fee1f77 100644
--- a/tp/t/results/macro/redefine_texinfo_macro.pl
+++ b/tp/t/results/macro/redefine_texinfo_macro.pl
@@ -94,7 +94,7 @@ $result_trees{'redefine_texinfo_macro'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/simple_imbricated_macro.pl 
b/tp/t/results/macro/simple_imbricated_macro.pl
index eb95e3e821..d8ed71a7ac 100644
--- a/tp/t/results/macro/simple_imbricated_macro.pl
+++ b/tp/t/results/macro/simple_imbricated_macro.pl
@@ -145,7 +145,7 @@ $result_trees{'simple_imbricated_macro'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/space_macro_after_end.pl 
b/tp/t/results/macro/space_macro_after_end.pl
index 4e9a393ac9..3468af969c 100644
--- a/tp/t/results/macro/space_macro_after_end.pl
+++ b/tp/t/results/macro/space_macro_after_end.pl
@@ -119,7 +119,7 @@ $result_trees{'space_macro_after_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/space_macro_after_end_verbatim.pl 
b/tp/t/results/macro/space_macro_after_end_verbatim.pl
index b8e6bdb986..6d94678f6c 100644
--- a/tp/t/results/macro/space_macro_after_end_verbatim.pl
+++ b/tp/t/results/macro/space_macro_after_end_verbatim.pl
@@ -87,7 +87,7 @@ $result_trees{'space_macro_after_end_verbatim'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/text_before_after.pl 
b/tp/t/results/macro/text_before_after.pl
index e39b8f08e7..2852574e64 100644
--- a/tp/t/results/macro/text_before_after.pl
+++ b/tp/t/results/macro/text_before_after.pl
@@ -64,7 +64,7 @@ $result_trees{'text_before_after'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/too_much_args.pl 
b/tp/t/results/macro/too_much_args.pl
index 092c31d679..d5c043d658 100644
--- a/tp/t/results/macro/too_much_args.pl
+++ b/tp/t/results/macro/too_much_args.pl
@@ -88,7 +88,7 @@ $result_trees{'too_much_args'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/two_macros_on_a_line.pl 
b/tp/t/results/macro/two_macros_on_a_line.pl
index d25b0d9560..97cfee8c47 100644
--- a/tp/t/results/macro/two_macros_on_a_line.pl
+++ b/tp/t/results/macro/two_macros_on_a_line.pl
@@ -322,7 +322,7 @@ $result_trees{'two_macros_on_a_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/unknown_macro_on_line_command.pl 
b/tp/t/results/macro/unknown_macro_on_line_command.pl
index 2ac2ec0ecd..19fa112d50 100644
--- a/tp/t/results/macro/unknown_macro_on_line_command.pl
+++ b/tp/t/results/macro/unknown_macro_on_line_command.pl
@@ -36,7 +36,7 @@ $result_trees{'unknown_macro_on_line_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/macro/zero_argument.pl 
b/tp/t/results/macro/zero_argument.pl
index 9092a0d587..ba7b80e29a 100644
--- a/tp/t/results/macro/zero_argument.pl
+++ b/tp/t/results/macro/zero_argument.pl
@@ -94,7 +94,7 @@ $result_trees{'zero_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/bad_beginning.pl 
b/tp/t/results/menu/bad_beginning.pl
index 65ec649613..dd6cc31d9b 100644
--- a/tp/t/results/menu/bad_beginning.pl
+++ b/tp/t/results/menu/bad_beginning.pl
@@ -118,7 +118,7 @@ $result_trees{'bad_beginning'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/block_commands_in_menu_description.pl 
b/tp/t/results/menu/block_commands_in_menu_description.pl
index 32a48077e0..13bc4ceb4a 100644
--- a/tp/t/results/menu/block_commands_in_menu_description.pl
+++ b/tp/t/results/menu/block_commands_in_menu_description.pl
@@ -10,7 +10,7 @@ $result_trees{'block_commands_in_menu_description'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/comment_on_menu_line.pl 
b/tp/t/results/menu/comment_on_menu_line.pl
index 3064449dce..245ed346c1 100644
--- a/tp/t/results/menu/comment_on_menu_line.pl
+++ b/tp/t/results/menu/comment_on_menu_line.pl
@@ -10,7 +10,7 @@ $result_trees{'comment_on_menu_line'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/dash_in_menu.pl 
b/tp/t/results/menu/dash_in_menu.pl
index f3e3ee6663..f874566d70 100644
--- a/tp/t/results/menu/dash_in_menu.pl
+++ b/tp/t/results/menu/dash_in_menu.pl
@@ -181,7 +181,7 @@ $result_trees{'dash_in_menu'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/detailmenu.pl b/tp/t/results/menu/detailmenu.pl
index da01054064..d7bf1c9cfb 100644
--- a/tp/t/results/menu/detailmenu.pl
+++ b/tp/t/results/menu/detailmenu.pl
@@ -255,7 +255,7 @@ $result_trees{'detailmenu'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/detailmenu_in_description.pl 
b/tp/t/results/menu/detailmenu_in_description.pl
index 091c4db426..7e035cb009 100644
--- a/tp/t/results/menu/detailmenu_in_description.pl
+++ b/tp/t/results/menu/detailmenu_in_description.pl
@@ -237,7 +237,7 @@ $result_trees{'detailmenu_in_description'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/detailmenu_on_subnodes.pl 
b/tp/t/results/menu/detailmenu_on_subnodes.pl
index cf8960fcd4..1184277072 100644
--- a/tp/t/results/menu/detailmenu_on_subnodes.pl
+++ b/tp/t/results/menu/detailmenu_on_subnodes.pl
@@ -10,7 +10,7 @@ $result_trees{'detailmenu_on_subnodes'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/detailmenu_unknown_node.pl 
b/tp/t/results/menu/detailmenu_unknown_node.pl
index decc55b646..8834a3a1c8 100644
--- a/tp/t/results/menu/detailmenu_unknown_node.pl
+++ b/tp/t/results/menu/detailmenu_unknown_node.pl
@@ -10,7 +10,7 @@ $result_trees{'detailmenu_unknown_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/direntry_dircategory_after_first_node.pl 
b/tp/t/results/menu/direntry_dircategory_after_first_node.pl
index 7bd05ea4bc..035d9d80b3 100644
--- a/tp/t/results/menu/direntry_dircategory_after_first_node.pl
+++ b/tp/t/results/menu/direntry_dircategory_after_first_node.pl
@@ -10,7 +10,7 @@ $result_trees{'direntry_dircategory_after_first_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/empty_menu_entry_name.pl 
b/tp/t/results/menu/empty_menu_entry_name.pl
index 02b32b133d..907ebc1017 100644
--- a/tp/t/results/menu/empty_menu_entry_name.pl
+++ b/tp/t/results/menu/empty_menu_entry_name.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_menu_entry_name'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/entry_after_detailmenu.pl 
b/tp/t/results/menu/entry_after_detailmenu.pl
index 49cf35c37d..10059afc96 100644
--- a/tp/t/results/menu/entry_after_detailmenu.pl
+++ b/tp/t/results/menu/entry_after_detailmenu.pl
@@ -10,7 +10,7 @@ $result_trees{'entry_after_detailmenu'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/example_in_menu_comment.pl 
b/tp/t/results/menu/example_in_menu_comment.pl
index 79808debc2..6950b1ea91 100644
--- a/tp/t/results/menu/example_in_menu_comment.pl
+++ b/tp/t/results/menu/example_in_menu_comment.pl
@@ -237,7 +237,7 @@ $result_trees{'example_in_menu_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/example_in_menu_description.pl 
b/tp/t/results/menu/example_in_menu_description.pl
index d91d2176c0..f2aee18732 100644
--- a/tp/t/results/menu/example_in_menu_description.pl
+++ b/tp/t/results/menu/example_in_menu_description.pl
@@ -10,7 +10,7 @@ $result_trees{'example_in_menu_description'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/formats_in_menu.pl 
b/tp/t/results/menu/formats_in_menu.pl
index 75e521aaa2..59cb635edc 100644
--- a/tp/t/results/menu/formats_in_menu.pl
+++ b/tp/t/results/menu/formats_in_menu.pl
@@ -10,7 +10,7 @@ $result_trees{'formats_in_menu'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/inlineraw_in_menu_description.pl 
b/tp/t/results/menu/inlineraw_in_menu_description.pl
index 5bf6d8ffcd..81c4e28909 100644
--- a/tp/t/results/menu/inlineraw_in_menu_description.pl
+++ b/tp/t/results/menu/inlineraw_in_menu_description.pl
@@ -10,7 +10,7 @@ $result_trees{'inlineraw_in_menu_description'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/invalid_info_menu_entry.pl 
b/tp/t/results/menu/invalid_info_menu_entry.pl
index 66a8b95fe9..cff1426b2b 100644
--- a/tp/t/results/menu/invalid_info_menu_entry.pl
+++ b/tp/t/results/menu/invalid_info_menu_entry.pl
@@ -10,7 +10,7 @@ $result_trees{'invalid_info_menu_entry'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/menu_entry_name.pl 
b/tp/t/results/menu/menu_entry_name.pl
index 777f176233..24fabdcb38 100644
--- a/tp/t/results/menu/menu_entry_name.pl
+++ b/tp/t/results/menu/menu_entry_name.pl
@@ -944,7 +944,7 @@ $result_trees{'menu_entry_name'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_entry_name_comment.pl 
b/tp/t/results/menu/menu_entry_name_comment.pl
index 5821bc9c74..5989477738 100644
--- a/tp/t/results/menu/menu_entry_name_comment.pl
+++ b/tp/t/results/menu/menu_entry_name_comment.pl
@@ -569,7 +569,7 @@ $result_trees{'menu_entry_name_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_entry_no_entry.pl 
b/tp/t/results/menu/menu_entry_no_entry.pl
index b55758c989..5635acadf9 100644
--- a/tp/t/results/menu/menu_entry_no_entry.pl
+++ b/tp/t/results/menu/menu_entry_no_entry.pl
@@ -209,7 +209,7 @@ $result_trees{'menu_entry_no_entry'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_entry_no_entry_location.pl 
b/tp/t/results/menu/menu_entry_no_entry_location.pl
index b3a20a6a51..c4cc439c01 100644
--- a/tp/t/results/menu/menu_entry_no_entry_location.pl
+++ b/tp/t/results/menu/menu_entry_no_entry_location.pl
@@ -276,7 +276,7 @@ $result_trees{'menu_entry_no_entry_location'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_entry_node.pl 
b/tp/t/results/menu/menu_entry_node.pl
index e3e699ce07..e4831ad7f7 100644
--- a/tp/t/results/menu/menu_entry_node.pl
+++ b/tp/t/results/menu/menu_entry_node.pl
@@ -362,7 +362,7 @@ $result_trees{'menu_entry_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_entry_node_comments.pl 
b/tp/t/results/menu/menu_entry_node_comments.pl
index 46bc148096..a55001f985 100644
--- a/tp/t/results/menu/menu_entry_node_comments.pl
+++ b/tp/t/results/menu/menu_entry_node_comments.pl
@@ -418,7 +418,7 @@ $result_trees{'menu_entry_node_comments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_in_deffn.pl 
b/tp/t/results/menu/menu_in_deffn.pl
index fd48265eb1..4c54fe906a 100644
--- a/tp/t/results/menu/menu_in_deffn.pl
+++ b/tp/t/results/menu/menu_in_deffn.pl
@@ -10,7 +10,7 @@ $result_trees{'menu_in_deffn'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/menu_in_example.pl 
b/tp/t/results/menu/menu_in_example.pl
index 53da00da73..1540c76810 100644
--- a/tp/t/results/menu/menu_in_example.pl
+++ b/tp/t/results/menu/menu_in_example.pl
@@ -10,7 +10,7 @@ $result_trees{'menu_in_example'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/menu_no_closed_after_empty_line.pl 
b/tp/t/results/menu/menu_no_closed_after_empty_line.pl
index 417c113eb7..3fa0306930 100644
--- a/tp/t/results/menu/menu_no_closed_after_empty_line.pl
+++ b/tp/t/results/menu/menu_no_closed_after_empty_line.pl
@@ -119,7 +119,7 @@ $result_trees{'menu_no_closed_after_empty_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_no_closed_entry_beginning.pl 
b/tp/t/results/menu/menu_no_closed_entry_beginning.pl
index f37255fb4a..b89d7790c4 100644
--- a/tp/t/results/menu/menu_no_closed_entry_beginning.pl
+++ b/tp/t/results/menu/menu_no_closed_entry_beginning.pl
@@ -47,7 +47,7 @@ $result_trees{'menu_no_closed_entry_beginning'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_no_closed_in_description.pl 
b/tp/t/results/menu/menu_no_closed_in_description.pl
index 3d890611eb..9389e1074e 100644
--- a/tp/t/results/menu/menu_no_closed_in_description.pl
+++ b/tp/t/results/menu/menu_no_closed_in_description.pl
@@ -94,7 +94,7 @@ $result_trees{'menu_no_closed_in_description'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_no_closed_in_entry.pl 
b/tp/t/results/menu/menu_no_closed_in_entry.pl
index 52f6e00918..ba8e97c7cd 100644
--- a/tp/t/results/menu/menu_no_closed_in_entry.pl
+++ b/tp/t/results/menu/menu_no_closed_in_entry.pl
@@ -57,7 +57,7 @@ $result_trees{'menu_no_closed_in_entry'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_no_closed_star.pl 
b/tp/t/results/menu/menu_no_closed_star.pl
index 1f74fd4187..b66f9cb6dc 100644
--- a/tp/t/results/menu/menu_no_closed_star.pl
+++ b/tp/t/results/menu/menu_no_closed_star.pl
@@ -47,7 +47,7 @@ $result_trees{'menu_no_closed_star'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/menu_node_unterminated.pl 
b/tp/t/results/menu/menu_node_unterminated.pl
index dde8256f0b..9356221174 100644
--- a/tp/t/results/menu/menu_node_unterminated.pl
+++ b/tp/t/results/menu/menu_node_unterminated.pl
@@ -10,7 +10,7 @@ $result_trees{'menu_node_unterminated'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/menu_pointing_to_anchor.pl 
b/tp/t/results/menu/menu_pointing_to_anchor.pl
index 6db3a9589a..4cc6315184 100644
--- a/tp/t/results/menu/menu_pointing_to_anchor.pl
+++ b/tp/t/results/menu/menu_pointing_to_anchor.pl
@@ -10,7 +10,7 @@ $result_trees{'menu_pointing_to_anchor'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/menu_title_before_entries.pl 
b/tp/t/results/menu/menu_title_before_entries.pl
index 48e23a7db8..2f6405051d 100644
--- a/tp/t/results/menu/menu_title_before_entries.pl
+++ b/tp/t/results/menu/menu_title_before_entries.pl
@@ -10,7 +10,7 @@ $result_trees{'menu_title_before_entries'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/multiple_menus.pl 
b/tp/t/results/menu/multiple_menus.pl
index 469053a380..92a1e71a40 100644
--- a/tp/t/results/menu/multiple_menus.pl
+++ b/tp/t/results/menu/multiple_menus.pl
@@ -10,7 +10,7 @@ $result_trees{'multiple_menus'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/no_colon_in_menu.pl 
b/tp/t/results/menu/no_colon_in_menu.pl
index 3be0c40cfb..0675217fba 100644
--- a/tp/t/results/menu/no_colon_in_menu.pl
+++ b/tp/t/results/menu/no_colon_in_menu.pl
@@ -10,7 +10,7 @@ $result_trees{'no_colon_in_menu'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/reference_to_external_manual.pl 
b/tp/t/results/menu/reference_to_external_manual.pl
index e5b97c36af..8e56ca7a2f 100644
--- a/tp/t/results/menu/reference_to_external_manual.pl
+++ b/tp/t/results/menu/reference_to_external_manual.pl
@@ -17,7 +17,7 @@ $result_trees{'reference_to_external_manual'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/sc_in_menu.pl b/tp/t/results/menu/sc_in_menu.pl
index 5a7dfb0f54..8cc7cfd04b 100644
--- a/tp/t/results/menu/sc_in_menu.pl
+++ b/tp/t/results/menu/sc_in_menu.pl
@@ -17,7 +17,7 @@ $result_trees{'sc_in_menu'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/simple.pl b/tp/t/results/menu/simple.pl
index e9676b85c1..12e0fec7ae 100644
--- a/tp/t/results/menu/simple.pl
+++ b/tp/t/results/menu/simple.pl
@@ -477,7 +477,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/simple_no_menu.pl 
b/tp/t/results/menu/simple_no_menu.pl
index 2a7215fb51..4a2b9187af 100644
--- a/tp/t/results/menu/simple_no_menu.pl
+++ b/tp/t/results/menu/simple_no_menu.pl
@@ -477,7 +477,7 @@ $result_trees{'simple_no_menu'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/menu/submenu_in_example.pl 
b/tp/t/results/menu/submenu_in_example.pl
index e3eeb9aafe..508268bbe0 100644
--- a/tp/t/results/menu/submenu_in_example.pl
+++ b/tp/t/results/menu/submenu_in_example.pl
@@ -10,7 +10,7 @@ $result_trees{'submenu_in_example'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/menu/verb_in_menu_description.pl 
b/tp/t/results/menu/verb_in_menu_description.pl
index ac1b8bbdb2..138829ac3a 100644
--- a/tp/t/results/menu/verb_in_menu_description.pl
+++ b/tp/t/results/menu/verb_in_menu_description.pl
@@ -10,7 +10,7 @@ $result_trees{'verb_in_menu_description'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/also_not_line.pl 
b/tp/t/results/misc_commands/also_not_line.pl
index a58548e186..7b32e3571d 100644
--- a/tp/t/results/misc_commands/also_not_line.pl
+++ b/tp/t/results/misc_commands/also_not_line.pl
@@ -413,7 +413,7 @@ $result_trees{'also_not_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/author_outside_titlepage_quotation.pl 
b/tp/t/results/misc_commands/author_outside_titlepage_quotation.pl
index c7270a9232..c1a2f3062c 100644
--- a/tp/t/results/misc_commands/author_outside_titlepage_quotation.pl
+++ b/tp/t/results/misc_commands/author_outside_titlepage_quotation.pl
@@ -39,7 +39,7 @@ $result_trees{'author_outside_titlepage_quotation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/bad_documentlanguage.pl 
b/tp/t/results/misc_commands/bad_documentlanguage.pl
index c660e8e572..7e3a22cb37 100644
--- a/tp/t/results/misc_commands/bad_documentlanguage.pl
+++ b/tp/t/results/misc_commands/bad_documentlanguage.pl
@@ -151,7 +151,7 @@ $result_trees{'bad_documentlanguage'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/bye.pl 
b/tp/t/results/misc_commands/bye.pl
index b7cade3ca0..b3df07d5ec 100644
--- a/tp/t/results/misc_commands/bye.pl
+++ b/tp/t/results/misc_commands/bye.pl
@@ -10,7 +10,7 @@ $result_trees{'bye'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/clickstyle.pl 
b/tp/t/results/misc_commands/clickstyle.pl
index 832ea7432c..d3263e2940 100644
--- a/tp/t/results/misc_commands/clickstyle.pl
+++ b/tp/t/results/misc_commands/clickstyle.pl
@@ -75,7 +75,7 @@ $result_trees{'clickstyle'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl 
b/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl
index a524319c2a..c92d8504a5 100644
--- a/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl
+++ b/tp/t/results/misc_commands/codequoteundirected_codequotebacktick.pl
@@ -1607,7 +1607,7 @@ $result_trees{'codequoteundirected_codequotebacktick'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/command_in_heading_footing.pl 
b/tp/t/results/misc_commands/command_in_heading_footing.pl
index 0a768045a3..513548b623 100644
--- a/tp/t/results/misc_commands/command_in_heading_footing.pl
+++ b/tp/t/results/misc_commands/command_in_heading_footing.pl
@@ -127,7 +127,7 @@ $result_trees{'command_in_heading_footing'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/command_line_in_paragraph.pl 
b/tp/t/results/misc_commands/command_line_in_paragraph.pl
index f0e8761ca7..1420c1c7a4 100644
--- a/tp/t/results/misc_commands/command_line_in_paragraph.pl
+++ b/tp/t/results/misc_commands/command_line_in_paragraph.pl
@@ -56,7 +56,7 @@ $result_trees{'command_line_in_paragraph'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/misc_commands/command_not_closed_in_documentencoding.pl 
b/tp/t/results/misc_commands/command_not_closed_in_documentencoding.pl
index 70eb6711b6..b5f9c78693 100644
--- a/tp/t/results/misc_commands/command_not_closed_in_documentencoding.pl
+++ b/tp/t/results/misc_commands/command_not_closed_in_documentencoding.pl
@@ -49,7 +49,7 @@ $result_trees{'command_not_closed_in_documentencoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/comment_space_command_on_line.pl 
b/tp/t/results/misc_commands/comment_space_command_on_line.pl
index e500624845..69c3dfd825 100644
--- a/tp/t/results/misc_commands/comment_space_command_on_line.pl
+++ b/tp/t/results/misc_commands/comment_space_command_on_line.pl
@@ -65,7 +65,7 @@ $result_trees{'comment_space_command_on_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/comments_in_text.pl 
b/tp/t/results/misc_commands/comments_in_text.pl
index 5cf54c53c5..b01db16d3b 100644
--- a/tp/t/results/misc_commands/comments_in_text.pl
+++ b/tp/t/results/misc_commands/comments_in_text.pl
@@ -148,7 +148,7 @@ $result_trees{'comments_in_text'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/contents.pl 
b/tp/t/results/misc_commands/contents.pl
index d9c216206c..4a59966adb 100644
--- a/tp/t/results/misc_commands/contents.pl
+++ b/tp/t/results/misc_commands/contents.pl
@@ -201,7 +201,7 @@ $result_trees{'contents'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/defindex_too_much_args.pl 
b/tp/t/results/misc_commands/defindex_too_much_args.pl
index d9071603c9..2e4e8e9064 100644
--- a/tp/t/results/misc_commands/defindex_too_much_args.pl
+++ b/tp/t/results/misc_commands/defindex_too_much_args.pl
@@ -35,7 +35,7 @@ $result_trees{'defindex_too_much_args'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/definfoenclose.pl 
b/tp/t/results/misc_commands/definfoenclose.pl
index b4802b05a5..58ac049fe2 100644
--- a/tp/t/results/misc_commands/definfoenclose.pl
+++ b/tp/t/results/misc_commands/definfoenclose.pl
@@ -304,7 +304,7 @@ $result_trees{'definfoenclose'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/definfoenclose_with_empty_arg.pl 
b/tp/t/results/misc_commands/definfoenclose_with_empty_arg.pl
index 788107c613..4c060f559d 100644
--- a/tp/t/results/misc_commands/definfoenclose_with_empty_arg.pl
+++ b/tp/t/results/misc_commands/definfoenclose_with_empty_arg.pl
@@ -99,7 +99,7 @@ $result_trees{'definfoenclose_with_empty_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/double_exdent.pl 
b/tp/t/results/misc_commands/double_exdent.pl
index 0d5629426d..3cbb1b1b41 100644
--- a/tp/t/results/misc_commands/double_exdent.pl
+++ b/tp/t/results/misc_commands/double_exdent.pl
@@ -187,7 +187,7 @@ $result_trees{'double_exdent'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/empty_center.pl 
b/tp/t/results/misc_commands/empty_center.pl
index 052f4fdfc8..ee2bc7dcdf 100644
--- a/tp/t/results/misc_commands/empty_center.pl
+++ b/tp/t/results/misc_commands/empty_center.pl
@@ -34,7 +34,7 @@ $result_trees{'empty_center'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/empty_center_with_arg.pl 
b/tp/t/results/misc_commands/empty_center_with_arg.pl
index 6ef2f4bb00..367d25d2fa 100644
--- a/tp/t/results/misc_commands/empty_center_with_arg.pl
+++ b/tp/t/results/misc_commands/empty_center_with_arg.pl
@@ -52,7 +52,7 @@ $result_trees{'empty_center_with_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/empty_documentencoding.pl 
b/tp/t/results/misc_commands/empty_documentencoding.pl
index 32a4d5188c..868143733c 100644
--- a/tp/t/results/misc_commands/empty_documentencoding.pl
+++ b/tp/t/results/misc_commands/empty_documentencoding.pl
@@ -34,7 +34,7 @@ $result_trees{'empty_documentencoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/footnote_in_center.pl 
b/tp/t/results/misc_commands/footnote_in_center.pl
index 499e6d1867..db942b8c1d 100644
--- a/tp/t/results/misc_commands/footnote_in_center.pl
+++ b/tp/t/results/misc_commands/footnote_in_center.pl
@@ -262,7 +262,7 @@ $result_trees{'footnote_in_center'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/heading_command_in_commands.pl 
b/tp/t/results/misc_commands/heading_command_in_commands.pl
index 09ae5fa736..5c551f4d35 100644
--- a/tp/t/results/misc_commands/heading_command_in_commands.pl
+++ b/tp/t/results/misc_commands/heading_command_in_commands.pl
@@ -259,7 +259,7 @@ $result_trees{'heading_command_in_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/incorrect_allowcodebreaks_argument.pl 
b/tp/t/results/misc_commands/incorrect_allowcodebreaks_argument.pl
index 61c663ea64..00b7ff0314 100644
--- a/tp/t/results/misc_commands/incorrect_allowcodebreaks_argument.pl
+++ b/tp/t/results/misc_commands/incorrect_allowcodebreaks_argument.pl
@@ -72,7 +72,7 @@ $result_trees{'incorrect_allowcodebreaks_argument'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/indent_in_quotation.pl 
b/tp/t/results/misc_commands/indent_in_quotation.pl
index ec430cc900..d9d279f575 100644
--- a/tp/t/results/misc_commands/indent_in_quotation.pl
+++ b/tp/t/results/misc_commands/indent_in_quotation.pl
@@ -96,7 +96,7 @@ $result_trees{'indent_in_quotation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/index_entries.pl 
b/tp/t/results/misc_commands/index_entries.pl
index 521b228e2c..e5f87118b7 100644
--- a/tp/t/results/misc_commands/index_entries.pl
+++ b/tp/t/results/misc_commands/index_entries.pl
@@ -134,7 +134,7 @@ $result_trees{'index_entries'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/invalid_clickstyle.pl 
b/tp/t/results/misc_commands/invalid_clickstyle.pl
index e67bf0fafe..5f1f1f62be 100644
--- a/tp/t/results/misc_commands/invalid_clickstyle.pl
+++ b/tp/t/results/misc_commands/invalid_clickstyle.pl
@@ -211,7 +211,7 @@ $result_trees{'invalid_clickstyle'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/invalid_documentencoding.pl 
b/tp/t/results/misc_commands/invalid_documentencoding.pl
index 397f815b6e..b19bd28da2 100644
--- a/tp/t/results/misc_commands/invalid_documentencoding.pl
+++ b/tp/t/results/misc_commands/invalid_documentencoding.pl
@@ -388,7 +388,7 @@ $result_trees{'invalid_documentencoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/invalid_kbdinputstyle.pl 
b/tp/t/results/misc_commands/invalid_kbdinputstyle.pl
index bd389e2c64..43ca52a868 100644
--- a/tp/t/results/misc_commands/invalid_kbdinputstyle.pl
+++ b/tp/t/results/misc_commands/invalid_kbdinputstyle.pl
@@ -49,7 +49,7 @@ $result_trees{'invalid_kbdinputstyle'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/kbdinputstyle.pl 
b/tp/t/results/misc_commands/kbdinputstyle.pl
index a43fcc7216..5bfc7775c5 100644
--- a/tp/t/results/misc_commands/kbdinputstyle.pl
+++ b/tp/t/results/misc_commands/kbdinputstyle.pl
@@ -1325,7 +1325,7 @@ $result_trees{'kbdinputstyle'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/kbdinputstyle_in_table.pl 
b/tp/t/results/misc_commands/kbdinputstyle_in_table.pl
index d341e85396..683fc4b854 100644
--- a/tp/t/results/misc_commands/kbdinputstyle_in_table.pl
+++ b/tp/t/results/misc_commands/kbdinputstyle_in_table.pl
@@ -1940,7 +1940,7 @@ $result_trees{'kbdinputstyle_in_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/many_lines.pl 
b/tp/t/results/misc_commands/many_lines.pl
index f66dfb633a..5f837e300f 100644
--- a/tp/t/results/misc_commands/many_lines.pl
+++ b/tp/t/results/misc_commands/many_lines.pl
@@ -1194,7 +1194,7 @@ $result_trees{'many_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/no_empty_line_between_headings.pl 
b/tp/t/results/misc_commands/no_empty_line_between_headings.pl
index 8028b0a9f2..f000f8aa53 100644
--- a/tp/t/results/misc_commands/no_empty_line_between_headings.pl
+++ b/tp/t/results/misc_commands/no_empty_line_between_headings.pl
@@ -10,7 +10,7 @@ $result_trees{'no_empty_line_between_headings'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/noindent_after_smallexample.pl 
b/tp/t/results/misc_commands/noindent_after_smallexample.pl
index 58d385d13e..08667b19a7 100644
--- a/tp/t/results/misc_commands/noindent_after_smallexample.pl
+++ b/tp/t/results/misc_commands/noindent_after_smallexample.pl
@@ -123,7 +123,7 @@ $result_trees{'noindent_after_smallexample'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/noindent_empty_para.pl 
b/tp/t/results/misc_commands/noindent_empty_para.pl
index e1c1cec6bb..a95295c067 100644
--- a/tp/t/results/misc_commands/noindent_empty_para.pl
+++ b/tp/t/results/misc_commands/noindent_empty_para.pl
@@ -54,7 +54,7 @@ $result_trees{'noindent_empty_para'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/noindent_in_paragraph.pl 
b/tp/t/results/misc_commands/noindent_in_paragraph.pl
index 96f25ee3cf..ade895c0de 100644
--- a/tp/t/results/misc_commands/noindent_in_paragraph.pl
+++ b/tp/t/results/misc_commands/noindent_in_paragraph.pl
@@ -85,7 +85,7 @@ $result_trees{'noindent_in_paragraph'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/noindent_indent.pl 
b/tp/t/results/misc_commands/noindent_indent.pl
index 74f0eb2c0e..9b53e3a5bb 100644
--- a/tp/t/results/misc_commands/noindent_indent.pl
+++ b/tp/t/results/misc_commands/noindent_indent.pl
@@ -166,7 +166,7 @@ $result_trees{'noindent_indent'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/ref_in_center.pl 
b/tp/t/results/misc_commands/ref_in_center.pl
index 9b4c63b547..30636d2c40 100644
--- a/tp/t/results/misc_commands/ref_in_center.pl
+++ b/tp/t/results/misc_commands/ref_in_center.pl
@@ -10,7 +10,7 @@ $result_trees{'ref_in_center'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/setfilename.pl 
b/tp/t/results/misc_commands/setfilename.pl
index 352e483b31..c04d5c2288 100644
--- a/tp/t/results/misc_commands/setfilename.pl
+++ b/tp/t/results/misc_commands/setfilename.pl
@@ -196,7 +196,7 @@ $result_trees{'setfilename'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/simple.pl 
b/tp/t/results/misc_commands/simple.pl
index 4c9502d940..0509d80a08 100644
--- a/tp/t/results/misc_commands/simple.pl
+++ b/tp/t/results/misc_commands/simple.pl
@@ -38,7 +38,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/sp.pl b/tp/t/results/misc_commands/sp.pl
index b3408d83c9..5c03854b07 100644
--- a/tp/t/results/misc_commands/sp.pl
+++ b/tp/t/results/misc_commands/sp.pl
@@ -169,7 +169,7 @@ $result_trees{'sp'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/synindex_too_much_args.pl 
b/tp/t/results/misc_commands/synindex_too_much_args.pl
index 5f1325c79b..8da6f44857 100644
--- a/tp/t/results/misc_commands/synindex_too_much_args.pl
+++ b/tp/t/results/misc_commands/synindex_too_much_args.pl
@@ -39,7 +39,7 @@ $result_trees{'synindex_too_much_args'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/misc_commands/test_allowcodebreaks.pl 
b/tp/t/results/misc_commands/test_allowcodebreaks.pl
index 2e8e2a8ace..9ac4a4ab87 100644
--- a/tp/t/results/misc_commands/test_allowcodebreaks.pl
+++ b/tp/t/results/misc_commands/test_allowcodebreaks.pl
@@ -10,7 +10,7 @@ $result_trees{'test_allowcodebreaks'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/text_before_and_after_bye.pl 
b/tp/t/results/misc_commands/text_before_and_after_bye.pl
index e9e971446b..6022298dcb 100644
--- a/tp/t/results/misc_commands/text_before_and_after_bye.pl
+++ b/tp/t/results/misc_commands/text_before_and_after_bye.pl
@@ -21,7 +21,7 @@ $result_trees{'text_before_and_after_bye'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/text_before_line_command.pl 
b/tp/t/results/misc_commands/text_before_line_command.pl
index 01e52e240d..ff7cd09a4d 100644
--- a/tp/t/results/misc_commands/text_before_line_command.pl
+++ b/tp/t/results/misc_commands/text_before_line_command.pl
@@ -65,7 +65,7 @@ $result_trees{'text_before_line_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/misc_commands/vskip.pl 
b/tp/t/results/misc_commands/vskip.pl
index d8f8d88578..ca4b91ea04 100644
--- a/tp/t/results/misc_commands/vskip.pl
+++ b/tp/t/results/misc_commands/vskip.pl
@@ -29,7 +29,7 @@ $result_trees{'vskip'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/morecoverage/formatting_fr.pl 
b/tp/t/results/morecoverage/formatting_fr.pl
index 7af8ff4b1d..92384b6635 100644
--- a/tp/t/results/morecoverage/formatting_fr.pl
+++ b/tp/t/results/morecoverage/formatting_fr.pl
@@ -526,7 +526,7 @@ $result_trees{'formatting_fr'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/morecoverage/texi_formatting.pl 
b/tp/t/results/morecoverage/texi_formatting.pl
index eb09d05d9a..f97b727f2b 100644
--- a/tp/t/results/morecoverage/texi_formatting.pl
+++ b/tp/t/results/morecoverage/texi_formatting.pl
@@ -526,7 +526,7 @@ $result_trees{'texi_formatting'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moreindices/double_index_entry.pl 
b/tp/t/results/moreindices/double_index_entry.pl
index 9be1f840ec..22b09ce491 100644
--- a/tp/t/results/moreindices/double_index_entry.pl
+++ b/tp/t/results/moreindices/double_index_entry.pl
@@ -23,7 +23,7 @@ $result_trees{'double_index_entry'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moreindices/index_no_node.pl 
b/tp/t/results/moreindices/index_no_node.pl
index 7286111dcb..0b846192a9 100644
--- a/tp/t/results/moreindices/index_no_node.pl
+++ b/tp/t/results/moreindices/index_no_node.pl
@@ -164,7 +164,7 @@ $result_trees{'index_no_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moreindices/index_split.pl 
b/tp/t/results/moreindices/index_split.pl
index c3d7ae0642..d566e6d0bc 100644
--- a/tp/t/results/moreindices/index_split.pl
+++ b/tp/t/results/moreindices/index_split.pl
@@ -70,7 +70,7 @@ $result_trees{'index_split'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moreindices/index_split_nodes.pl 
b/tp/t/results/moreindices/index_split_nodes.pl
index 962e2d3977..ac703c68be 100644
--- a/tp/t/results/moreindices/index_split_nodes.pl
+++ b/tp/t/results/moreindices/index_split_nodes.pl
@@ -70,7 +70,7 @@ $result_trees{'index_split_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moreindices/nodes_before_top.pl 
b/tp/t/results/moreindices/nodes_before_top.pl
index 492b424163..4c71b8c2f9 100644
--- a/tp/t/results/moreindices/nodes_before_top.pl
+++ b/tp/t/results/moreindices/nodes_before_top.pl
@@ -76,7 +76,7 @@ $result_trees{'nodes_before_top'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/moreindices/nodes_before_top_and_sections_monolithic.pl 
b/tp/t/results/moreindices/nodes_before_top_and_sections_monolithic.pl
index a7a001fb2e..6cc6718b0f 100644
--- a/tp/t/results/moreindices/nodes_before_top_and_sections_monolithic.pl
+++ b/tp/t/results/moreindices/nodes_before_top_and_sections_monolithic.pl
@@ -76,7 +76,7 @@ $result_trees{'nodes_before_top_and_sections_monolithic'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moreindices/nodes_before_top_no_nodes.pl 
b/tp/t/results/moreindices/nodes_before_top_no_nodes.pl
index e39c5aafa9..07fd763d67 100644
--- a/tp/t/results/moreindices/nodes_before_top_no_nodes.pl
+++ b/tp/t/results/moreindices/nodes_before_top_no_nodes.pl
@@ -76,7 +76,7 @@ $result_trees{'nodes_before_top_no_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moreindices/nodes_before_top_nodes.pl 
b/tp/t/results/moreindices/nodes_before_top_nodes.pl
index e7c838fa7d..f0e8694af7 100644
--- a/tp/t/results/moreindices/nodes_before_top_nodes.pl
+++ b/tp/t/results/moreindices/nodes_before_top_nodes.pl
@@ -76,7 +76,7 @@ $result_trees{'nodes_before_top_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moreindices/split_chapter_index.pl 
b/tp/t/results/moreindices/split_chapter_index.pl
index 3cd7459170..6f76ee9446 100644
--- a/tp/t/results/moreindices/split_chapter_index.pl
+++ b/tp/t/results/moreindices/split_chapter_index.pl
@@ -70,7 +70,7 @@ $result_trees{'split_chapter_index'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/equivalent_nodes.pl 
b/tp/t/results/moresectioning/equivalent_nodes.pl
index 50b47c7734..9fd80838fc 100644
--- a/tp/t/results/moresectioning/equivalent_nodes.pl
+++ b/tp/t/results/moresectioning/equivalent_nodes.pl
@@ -70,7 +70,7 @@ $result_trees{'equivalent_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/equivalent_nodes_no_node.pl 
b/tp/t/results/moresectioning/equivalent_nodes_no_node.pl
index 67979e7835..6d93337837 100644
--- a/tp/t/results/moresectioning/equivalent_nodes_no_node.pl
+++ b/tp/t/results/moresectioning/equivalent_nodes_no_node.pl
@@ -70,7 +70,7 @@ $result_trees{'equivalent_nodes_no_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/more_sections_than_nodes.pl 
b/tp/t/results/moresectioning/more_sections_than_nodes.pl
index 1cc7a2391b..affbc3a173 100644
--- a/tp/t/results/moresectioning/more_sections_than_nodes.pl
+++ b/tp/t/results/moresectioning/more_sections_than_nodes.pl
@@ -70,7 +70,7 @@ $result_trees{'more_sections_than_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/node_footnote_end.pl 
b/tp/t/results/moresectioning/node_footnote_end.pl
index f533a2d6e6..87cee5ac26 100644
--- a/tp/t/results/moresectioning/node_footnote_end.pl
+++ b/tp/t/results/moresectioning/node_footnote_end.pl
@@ -70,7 +70,7 @@ $result_trees{'node_footnote_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/node_footnote_separated.pl 
b/tp/t/results/moresectioning/node_footnote_separated.pl
index b4bde9fab6..6efbd2ff81 100644
--- a/tp/t/results/moresectioning/node_footnote_separated.pl
+++ b/tp/t/results/moresectioning/node_footnote_separated.pl
@@ -70,7 +70,7 @@ $result_trees{'node_footnote_separated'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/node_footnote_use_node.pl 
b/tp/t/results/moresectioning/node_footnote_use_node.pl
index c1919445bd..180664c81a 100644
--- a/tp/t/results/moresectioning/node_footnote_use_node.pl
+++ b/tp/t/results/moresectioning/node_footnote_use_node.pl
@@ -70,7 +70,7 @@ $result_trees{'node_footnote_use_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/nodes_after_top_before_chapter.pl 
b/tp/t/results/moresectioning/nodes_after_top_before_chapter.pl
index cb659decd7..2729c42a62 100644
--- a/tp/t/results/moresectioning/nodes_after_top_before_chapter.pl
+++ b/tp/t/results/moresectioning/nodes_after_top_before_chapter.pl
@@ -76,7 +76,7 @@ $result_trees{'nodes_after_top_before_chapter'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/moresectioning/nodes_after_top_before_chapter_use_nodes_chapter.pl
 
b/tp/t/results/moresectioning/nodes_after_top_before_chapter_use_nodes_chapter.pl
index b476957ca7..b6785a932a 100644
--- 
a/tp/t/results/moresectioning/nodes_after_top_before_chapter_use_nodes_chapter.pl
+++ 
b/tp/t/results/moresectioning/nodes_after_top_before_chapter_use_nodes_chapter.pl
@@ -76,7 +76,7 @@ 
$result_trees{'nodes_after_top_before_chapter_use_nodes_chapter'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/nodes_after_top_before_section.pl 
b/tp/t/results/moresectioning/nodes_after_top_before_section.pl
index 9ba1d52d72..44dffe0858 100644
--- a/tp/t/results/moresectioning/nodes_after_top_before_section.pl
+++ b/tp/t/results/moresectioning/nodes_after_top_before_section.pl
@@ -76,7 +76,7 @@ $result_trees{'nodes_after_top_before_section'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/moresectioning/nodes_after_top_before_section_use_nodes.pl 
b/tp/t/results/moresectioning/nodes_after_top_before_section_use_nodes.pl
index 072f57f24f..511d8806b6 100644
--- a/tp/t/results/moresectioning/nodes_after_top_before_section_use_nodes.pl
+++ b/tp/t/results/moresectioning/nodes_after_top_before_section_use_nodes.pl
@@ -76,7 +76,7 @@ $result_trees{'nodes_after_top_before_section_use_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/moresectioning/nodes_after_top_before_section_use_nodes_chapter.pl
 
b/tp/t/results/moresectioning/nodes_after_top_before_section_use_nodes_chapter.pl
index b424147f3f..0b95fc1007 100644
--- 
a/tp/t/results/moresectioning/nodes_after_top_before_section_use_nodes_chapter.pl
+++ 
b/tp/t/results/moresectioning/nodes_after_top_before_section_use_nodes_chapter.pl
@@ -76,7 +76,7 @@ 
$result_trees{'nodes_after_top_before_section_use_nodes_chapter'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/placed_things_before_element.pl 
b/tp/t/results/moresectioning/placed_things_before_element.pl
index 8106785a04..848877a419 100644
--- a/tp/t/results/moresectioning/placed_things_before_element.pl
+++ b/tp/t/results/moresectioning/placed_things_before_element.pl
@@ -690,7 +690,7 @@ $result_trees{'placed_things_before_element'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/sectioning_frames.pl 
b/tp/t/results/moresectioning/sectioning_frames.pl
index 8dc6d65250..16a7a879d5 100644
--- a/tp/t/results/moresectioning/sectioning_frames.pl
+++ b/tp/t/results/moresectioning/sectioning_frames.pl
@@ -29,7 +29,7 @@ $result_trees{'sectioning_frames'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/top_node_up_explicit.pl 
b/tp/t/results/moresectioning/top_node_up_explicit.pl
index 57adce90c1..7015865fea 100644
--- a/tp/t/results/moresectioning/top_node_up_explicit.pl
+++ b/tp/t/results/moresectioning/top_node_up_explicit.pl
@@ -106,7 +106,7 @@ $result_trees{'top_node_up_explicit'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/top_node_up_implicit.pl 
b/tp/t/results/moresectioning/top_node_up_implicit.pl
index 99ff235f20..9dacf327b6 100644
--- a/tp/t/results/moresectioning/top_node_up_implicit.pl
+++ b/tp/t/results/moresectioning/top_node_up_implicit.pl
@@ -88,7 +88,7 @@ $result_trees{'top_node_up_implicit'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/two_footnotes_in_nodes.pl 
b/tp/t/results/moresectioning/two_footnotes_in_nodes.pl
index 02d38821fa..03a31dab75 100644
--- a/tp/t/results/moresectioning/two_footnotes_in_nodes.pl
+++ b/tp/t/results/moresectioning/two_footnotes_in_nodes.pl
@@ -70,7 +70,7 @@ $result_trees{'two_footnotes_in_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/moresectioning/two_footnotes_in_nodes_separated.pl 
b/tp/t/results/moresectioning/two_footnotes_in_nodes_separated.pl
index b8915782cd..b03e1db52f 100644
--- a/tp/t/results/moresectioning/two_footnotes_in_nodes_separated.pl
+++ b/tp/t/results/moresectioning/two_footnotes_in_nodes_separated.pl
@@ -70,7 +70,7 @@ $result_trees{'two_footnotes_in_nodes_separated'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/multitable/empty_headitem.pl 
b/tp/t/results/multitable/empty_headitem.pl
index fb18e0e922..ed00390d97 100644
--- a/tp/t/results/multitable/empty_headitem.pl
+++ b/tp/t/results/multitable/empty_headitem.pl
@@ -303,7 +303,7 @@ $result_trees{'empty_headitem'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/empty_item_tab.pl 
b/tp/t/results/multitable/empty_item_tab.pl
index 4a05de6180..8b5e3eabd3 100644
--- a/tp/t/results/multitable/empty_item_tab.pl
+++ b/tp/t/results/multitable/empty_item_tab.pl
@@ -738,7 +738,7 @@ $result_trees{'empty_item_tab'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/empty_multitable_with_cells.pl 
b/tp/t/results/multitable/empty_multitable_with_cells.pl
index e4b8d13f4b..ec3a120be9 100644
--- a/tp/t/results/multitable/empty_multitable_with_cells.pl
+++ b/tp/t/results/multitable/empty_multitable_with_cells.pl
@@ -134,7 +134,7 @@ $result_trees{'empty_multitable_with_cells'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/inter_item_commands_in_multitable.pl 
b/tp/t/results/multitable/inter_item_commands_in_multitable.pl
index 6c2ed4e781..92b83a4747 100644
--- a/tp/t/results/multitable/inter_item_commands_in_multitable.pl
+++ b/tp/t/results/multitable/inter_item_commands_in_multitable.pl
@@ -833,7 +833,7 @@ $result_trees{'inter_item_commands_in_multitable'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/multitable_begin_with_tab.pl 
b/tp/t/results/multitable/multitable_begin_with_tab.pl
index 84ad356750..3bfaa111c4 100644
--- a/tp/t/results/multitable/multitable_begin_with_tab.pl
+++ b/tp/t/results/multitable/multitable_begin_with_tab.pl
@@ -294,7 +294,7 @@ $result_trees{'multitable_begin_with_tab'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/multitable_in_example.pl 
b/tp/t/results/multitable/multitable_in_example.pl
index 41396f6410..df2fe569b8 100644
--- a/tp/t/results/multitable/multitable_in_example.pl
+++ b/tp/t/results/multitable/multitable_in_example.pl
@@ -319,7 +319,7 @@ $result_trees{'multitable_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/multitable_not_closed.pl 
b/tp/t/results/multitable/multitable_not_closed.pl
index cc1ed5d084..04111152af 100644
--- a/tp/t/results/multitable/multitable_not_closed.pl
+++ b/tp/t/results/multitable/multitable_not_closed.pl
@@ -75,7 +75,7 @@ $result_trees{'multitable_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/multitable_not_closed_item.pl 
b/tp/t/results/multitable/multitable_not_closed_item.pl
index 1d0a100b98..593a457cba 100644
--- a/tp/t/results/multitable/multitable_not_closed_item.pl
+++ b/tp/t/results/multitable/multitable_not_closed_item.pl
@@ -117,7 +117,7 @@ $result_trees{'multitable_not_closed_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/multitable_not_closed_item_tab.pl 
b/tp/t/results/multitable/multitable_not_closed_item_tab.pl
index e67b3667d6..f2a06bb558 100644
--- a/tp/t/results/multitable/multitable_not_closed_item_tab.pl
+++ b/tp/t/results/multitable/multitable_not_closed_item_tab.pl
@@ -142,7 +142,7 @@ $result_trees{'multitable_not_closed_item_tab'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/multitable_one_column_too_much_cells.pl 
b/tp/t/results/multitable/multitable_one_column_too_much_cells.pl
index 00e6718e3f..3a6f1e3d61 100644
--- a/tp/t/results/multitable/multitable_one_column_too_much_cells.pl
+++ b/tp/t/results/multitable/multitable_one_column_too_much_cells.pl
@@ -338,7 +338,7 @@ $result_trees{'multitable_one_column_too_much_cells'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/multitable_two_columns_too_much_cells.pl 
b/tp/t/results/multitable/multitable_two_columns_too_much_cells.pl
index 4ca21319e0..e40996ab9d 100644
--- a/tp/t/results/multitable/multitable_two_columns_too_much_cells.pl
+++ b/tp/t/results/multitable/multitable_two_columns_too_much_cells.pl
@@ -319,7 +319,7 @@ $result_trees{'multitable_two_columns_too_much_cells'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/multitable_with_empty_item_tab.pl 
b/tp/t/results/multitable/multitable_with_empty_item_tab.pl
index ed425e582d..8e7cc16463 100644
--- a/tp/t/results/multitable/multitable_with_empty_item_tab.pl
+++ b/tp/t/results/multitable/multitable_with_empty_item_tab.pl
@@ -258,7 +258,7 @@ $result_trees{'multitable_with_empty_item_tab'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/not_letters_in_prototype.pl 
b/tp/t/results/multitable/not_letters_in_prototype.pl
index 75db6ed4b5..36a8399f59 100644
--- a/tp/t/results/multitable/not_letters_in_prototype.pl
+++ b/tp/t/results/multitable/not_letters_in_prototype.pl
@@ -163,7 +163,7 @@ $result_trees{'not_letters_in_prototype'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/paragraph_in_cells.pl 
b/tp/t/results/multitable/paragraph_in_cells.pl
index ca8e0de18c..a0e0af5791 100644
--- a/tp/t/results/multitable/paragraph_in_cells.pl
+++ b/tp/t/results/multitable/paragraph_in_cells.pl
@@ -278,7 +278,7 @@ $result_trees{'paragraph_in_cells'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/prototype_brace_no_brace.pl 
b/tp/t/results/multitable/prototype_brace_no_brace.pl
index bcdd1b23e7..9d743df81d 100644
--- a/tp/t/results/multitable/prototype_brace_no_brace.pl
+++ b/tp/t/results/multitable/prototype_brace_no_brace.pl
@@ -106,7 +106,7 @@ $result_trees{'prototype_brace_no_brace'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/prototype_brace_no_brace_comment.pl 
b/tp/t/results/multitable/prototype_brace_no_brace_comment.pl
index 3169f9196f..c59f17c075 100644
--- a/tp/t/results/multitable/prototype_brace_no_brace_comment.pl
+++ b/tp/t/results/multitable/prototype_brace_no_brace_comment.pl
@@ -122,7 +122,7 @@ $result_trees{'prototype_brace_no_brace_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/prototype_no_brace.pl 
b/tp/t/results/multitable/prototype_no_brace.pl
index 60cd0f5d67..3ec0f34daf 100644
--- a/tp/t/results/multitable/prototype_no_brace.pl
+++ b/tp/t/results/multitable/prototype_no_brace.pl
@@ -136,7 +136,7 @@ $result_trees{'prototype_no_brace'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/ref_in_multitable.pl 
b/tp/t/results/multitable/ref_in_multitable.pl
index a4ef6f8233..fcc4f625ae 100644
--- a/tp/t/results/multitable/ref_in_multitable.pl
+++ b/tp/t/results/multitable/ref_in_multitable.pl
@@ -555,7 +555,7 @@ $result_trees{'ref_in_multitable'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/multitable/w_in_multitable.pl 
b/tp/t/results/multitable/w_in_multitable.pl
index 955fb37c6f..f110042904 100644
--- a/tp/t/results/multitable/w_in_multitable.pl
+++ b/tp/t/results/multitable/w_in_multitable.pl
@@ -209,7 +209,7 @@ $result_trees{'w_in_multitable'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/close_paragraph_command.pl 
b/tp/t/results/paragraph/close_paragraph_command.pl
index ada5bb2ac3..29e8289609 100644
--- a/tp/t/results/paragraph/close_paragraph_command.pl
+++ b/tp/t/results/paragraph/close_paragraph_command.pl
@@ -112,7 +112,7 @@ $result_trees{'close_paragraph_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/commands_in_flushright.pl 
b/tp/t/results/paragraph/commands_in_flushright.pl
index fe6dc3a071..da2fa9ca88 100644
--- a/tp/t/results/paragraph/commands_in_flushright.pl
+++ b/tp/t/results/paragraph/commands_in_flushright.pl
@@ -1205,7 +1205,7 @@ $result_trees{'commands_in_flushright'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/comment_between_text.pl 
b/tp/t/results/paragraph/comment_between_text.pl
index 6963e0c3d7..664bf689aa 100644
--- a/tp/t/results/paragraph/comment_between_text.pl
+++ b/tp/t/results/paragraph/comment_between_text.pl
@@ -44,7 +44,7 @@ $result_trees{'comment_between_text'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/comment_in_quotation.pl 
b/tp/t/results/paragraph/comment_in_quotation.pl
index 6f3fa6c79a..78372bc16c 100644
--- a/tp/t/results/paragraph/comment_in_quotation.pl
+++ b/tp/t/results/paragraph/comment_in_quotation.pl
@@ -185,7 +185,7 @@ $result_trees{'comment_in_quotation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/double_style_paragraph.pl 
b/tp/t/results/paragraph/double_style_paragraph.pl
index af70db575a..7e83c9c506 100644
--- a/tp/t/results/paragraph/double_style_paragraph.pl
+++ b/tp/t/results/paragraph/double_style_paragraph.pl
@@ -90,7 +90,7 @@ $result_trees{'double_style_paragraph'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/image_in_paragraph.pl 
b/tp/t/results/paragraph/image_in_paragraph.pl
index cc6ae7d8a6..2e9140f902 100644
--- a/tp/t/results/paragraph/image_in_paragraph.pl
+++ b/tp/t/results/paragraph/image_in_paragraph.pl
@@ -91,7 +91,7 @@ $result_trees{'image_in_paragraph'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/no_paragraph_commands.pl 
b/tp/t/results/paragraph/no_paragraph_commands.pl
index 4615e98e3f..c4cd7a0c14 100644
--- a/tp/t/results/paragraph/no_paragraph_commands.pl
+++ b/tp/t/results/paragraph/no_paragraph_commands.pl
@@ -117,7 +117,7 @@ $result_trees{'no_paragraph_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/paragraph_command.pl 
b/tp/t/results/paragraph/paragraph_command.pl
index bc19cdd8e1..5503267ad5 100644
--- a/tp/t/results/paragraph/paragraph_command.pl
+++ b/tp/t/results/paragraph/paragraph_command.pl
@@ -309,7 +309,7 @@ $result_trees{'paragraph_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/paragraph_count_and_example.pl 
b/tp/t/results/paragraph/paragraph_count_and_example.pl
index f4154e653c..ff25e7e6d2 100644
--- a/tp/t/results/paragraph/paragraph_count_and_example.pl
+++ b/tp/t/results/paragraph/paragraph_count_and_example.pl
@@ -92,7 +92,7 @@ $result_trees{'paragraph_count_and_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/paragraph_in_style_command.pl 
b/tp/t/results/paragraph/paragraph_in_style_command.pl
index c7f9f1d718..60d6e0dac0 100644
--- a/tp/t/results/paragraph/paragraph_in_style_command.pl
+++ b/tp/t/results/paragraph/paragraph_in_style_command.pl
@@ -134,7 +134,7 @@ $result_trees{'paragraph_in_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/paragraph_indent_asis.pl 
b/tp/t/results/paragraph/paragraph_indent_asis.pl
index 87dde509fd..e3c70536ef 100644
--- a/tp/t/results/paragraph/paragraph_indent_asis.pl
+++ b/tp/t/results/paragraph/paragraph_indent_asis.pl
@@ -150,7 +150,7 @@ $result_trees{'paragraph_indent_asis'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/sole_image.pl 
b/tp/t/results/paragraph/sole_image.pl
index aebd0ae698..282006540d 100644
--- a/tp/t/results/paragraph/sole_image.pl
+++ b/tp/t/results/paragraph/sole_image.pl
@@ -58,7 +58,7 @@ $result_trees{'sole_image'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/text.pl b/tp/t/results/paragraph/text.pl
index d6520a0a7a..f95c34f4a8 100644
--- a/tp/t/results/paragraph/text.pl
+++ b/tp/t/results/paragraph/text.pl
@@ -21,7 +21,7 @@ $result_trees{'text'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/text_comment.pl 
b/tp/t/results/paragraph/text_comment.pl
index 938223db19..99e9380a46 100644
--- a/tp/t/results/paragraph/text_comment.pl
+++ b/tp/t/results/paragraph/text_comment.pl
@@ -37,7 +37,7 @@ $result_trees{'text_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/text_line.pl 
b/tp/t/results/paragraph/text_line.pl
index 51b8b5fe9c..427f99bb88 100644
--- a/tp/t/results/paragraph/text_line.pl
+++ b/tp/t/results/paragraph/text_line.pl
@@ -34,7 +34,7 @@ $result_trees{'text_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/text_space_comment.pl 
b/tp/t/results/paragraph/text_space_comment.pl
index 7e0b95cb05..a17a568c96 100644
--- a/tp/t/results/paragraph/text_space_comment.pl
+++ b/tp/t/results/paragraph/text_space_comment.pl
@@ -42,7 +42,7 @@ $result_trees{'text_space_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/paragraph/two_lines.pl 
b/tp/t/results/paragraph/two_lines.pl
index bfdb813afc..6b22f22aba 100644
--- a/tp/t/results/paragraph/two_lines.pl
+++ b/tp/t/results/paragraph/two_lines.pl
@@ -27,7 +27,7 @@ $result_trees{'two_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/U_with_utf8_enable_encoding.pl 
b/tp/t/results/plaintext_tests/U_with_utf8_enable_encoding.pl
index c74790830c..6976d0bc60 100644
--- a/tp/t/results/plaintext_tests/U_with_utf8_enable_encoding.pl
+++ b/tp/t/results/plaintext_tests/U_with_utf8_enable_encoding.pl
@@ -75,7 +75,7 @@ $result_trees{'U_with_utf8_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/accent_command_punctuation.pl 
b/tp/t/results/plaintext_tests/accent_command_punctuation.pl
index b020d3ad3a..6611c472a5 100644
--- a/tp/t/results/plaintext_tests/accent_command_punctuation.pl
+++ b/tp/t/results/plaintext_tests/accent_command_punctuation.pl
@@ -43,7 +43,7 @@ $result_trees{'accent_command_punctuation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/accents_in_var_enable_encoding.pl 
b/tp/t/results/plaintext_tests/accents_in_var_enable_encoding.pl
index ef09a567b0..29c69ab3d9 100644
--- a/tp/t/results/plaintext_tests/accents_in_var_enable_encoding.pl
+++ b/tp/t/results/plaintext_tests/accents_in_var_enable_encoding.pl
@@ -155,7 +155,7 @@ $result_trees{'accents_in_var_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/plaintext_tests/after_punctuation_character_in_command.pl 
b/tp/t/results/plaintext_tests/after_punctuation_character_in_command.pl
index 236ec684c4..0aeb2e1387 100644
--- a/tp/t/results/plaintext_tests/after_punctuation_character_in_command.pl
+++ b/tp/t/results/plaintext_tests/after_punctuation_character_in_command.pl
@@ -53,7 +53,7 @@ $result_trees{'after_punctuation_character_in_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/all_spaces.pl 
b/tp/t/results/plaintext_tests/all_spaces.pl
index 9c5a262afc..e75befe5ec 100644
--- a/tp/t/results/plaintext_tests/all_spaces.pl
+++ b/tp/t/results/plaintext_tests/all_spaces.pl
@@ -48,7 +48,7 @@ $result_trees{'all_spaces'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/plaintext_tests/anchor_and_empty_lines.pl 
b/tp/t/results/plaintext_tests/anchor_and_empty_lines.pl
index 055ce63929..00433732bf 100644
--- a/tp/t/results/plaintext_tests/anchor_and_empty_lines.pl
+++ b/tp/t/results/plaintext_tests/anchor_and_empty_lines.pl
@@ -79,7 +79,7 @@ $result_trees{'anchor_and_empty_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/at_commands_glued_in_example.pl 
b/tp/t/results/plaintext_tests/at_commands_glued_in_example.pl
index b789a4ba40..e4477051e1 100644
--- a/tp/t/results/plaintext_tests/at_commands_glued_in_example.pl
+++ b/tp/t/results/plaintext_tests/at_commands_glued_in_example.pl
@@ -539,7 +539,7 @@ $result_trees{'at_commands_glued_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/at_commands_glued_in_paragraph.pl 
b/tp/t/results/plaintext_tests/at_commands_glued_in_paragraph.pl
index 68d7a5d36b..0298c01bb0 100644
--- a/tp/t/results/plaintext_tests/at_commands_glued_in_paragraph.pl
+++ b/tp/t/results/plaintext_tests/at_commands_glued_in_paragraph.pl
@@ -492,7 +492,7 @@ $result_trees{'at_commands_glued_in_paragraph'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/before_accent_punctuation.pl 
b/tp/t/results/plaintext_tests/before_accent_punctuation.pl
index 677f20ef42..18451d759d 100644
--- a/tp/t/results/plaintext_tests/before_accent_punctuation.pl
+++ b/tp/t/results/plaintext_tests/before_accent_punctuation.pl
@@ -43,7 +43,7 @@ $result_trees{'before_accent_punctuation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/characters_and_commands_in_var.pl 
b/tp/t/results/plaintext_tests/characters_and_commands_in_var.pl
index 026c1ed03f..26ad89d8ab 100644
--- a/tp/t/results/plaintext_tests/characters_and_commands_in_var.pl
+++ b/tp/t/results/plaintext_tests/characters_and_commands_in_var.pl
@@ -407,7 +407,7 @@ $result_trees{'characters_and_commands_in_var'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/chinese_mixed_with_en.pl 
b/tp/t/results/plaintext_tests/chinese_mixed_with_en.pl
index 25cf327dd7..8cce5cda1b 100644
--- a/tp/t/results/plaintext_tests/chinese_mixed_with_en.pl
+++ b/tp/t/results/plaintext_tests/chinese_mixed_with_en.pl
@@ -123,7 +123,7 @@ $result_trees{'chinese_mixed_with_en'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/plaintext_tests/code_commands_and_punctuation.pl 
b/tp/t/results/plaintext_tests/code_commands_and_punctuation.pl
index 2585ad88d6..1b96c5767f 100644
--- a/tp/t/results/plaintext_tests/code_commands_and_punctuation.pl
+++ b/tp/t/results/plaintext_tests/code_commands_and_punctuation.pl
@@ -70,7 +70,7 @@ $result_trees{'code_commands_and_punctuation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/command_brace_no_arg_punctuation.pl 
b/tp/t/results/plaintext_tests/command_brace_no_arg_punctuation.pl
index 24ad0b7694..2751a61a36 100644
--- a/tp/t/results/plaintext_tests/command_brace_no_arg_punctuation.pl
+++ b/tp/t/results/plaintext_tests/command_brace_no_arg_punctuation.pl
@@ -102,7 +102,7 @@ $result_trees{'command_brace_no_arg_punctuation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/commands_and_punctuation.pl 
b/tp/t/results/plaintext_tests/commands_and_punctuation.pl
index fb5eb9dc36..b92c0d64d1 100644
--- a/tp/t/results/plaintext_tests/commands_and_punctuation.pl
+++ b/tp/t/results/plaintext_tests/commands_and_punctuation.pl
@@ -79,7 +79,7 @@ $result_trees{'commands_and_punctuation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/east_asian_in_w.pl 
b/tp/t/results/plaintext_tests/east_asian_in_w.pl
index 8665a4e160..21eaec70d0 100644
--- a/tp/t/results/plaintext_tests/east_asian_in_w.pl
+++ b/tp/t/results/plaintext_tests/east_asian_in_w.pl
@@ -139,7 +139,7 @@ $result_trees{'east_asian_in_w'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/empty_line_in_example_end.pl 
b/tp/t/results/plaintext_tests/empty_line_in_example_end.pl
index 5dfb335798..7e2a05301a 100644
--- a/tp/t/results/plaintext_tests/empty_line_in_example_end.pl
+++ b/tp/t/results/plaintext_tests/empty_line_in_example_end.pl
@@ -98,7 +98,7 @@ $result_trees{'empty_line_in_example_end'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/empty_multitable_in_itemize.pl 
b/tp/t/results/plaintext_tests/empty_multitable_in_itemize.pl
index bb6c58c356..3776a29843 100644
--- a/tp/t/results/plaintext_tests/empty_multitable_in_itemize.pl
+++ b/tp/t/results/plaintext_tests/empty_multitable_in_itemize.pl
@@ -165,7 +165,7 @@ $result_trees{'empty_multitable_in_itemize'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/end_sentence_space_protected.pl 
b/tp/t/results/plaintext_tests/end_sentence_space_protected.pl
index a5ad1d7f2e..18faf1deb1 100644
--- a/tp/t/results/plaintext_tests/end_sentence_space_protected.pl
+++ b/tp/t/results/plaintext_tests/end_sentence_space_protected.pl
@@ -31,7 +31,7 @@ $result_trees{'end_sentence_space_protected'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/expanded_tex.pl 
b/tp/t/results/plaintext_tests/expanded_tex.pl
index 56cd19d232..cfcabfab57 100644
--- a/tp/t/results/plaintext_tests/expanded_tex.pl
+++ b/tp/t/results/plaintext_tests/expanded_tex.pl
@@ -101,7 +101,7 @@ $result_trees{'expanded_tex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/flushright_not_closed_and_format.pl 
b/tp/t/results/plaintext_tests/flushright_not_closed_and_format.pl
index 41e2678b21..bc4f9baceb 100644
--- a/tp/t/results/plaintext_tests/flushright_not_closed_and_format.pl
+++ b/tp/t/results/plaintext_tests/flushright_not_closed_and_format.pl
@@ -112,7 +112,7 @@ $result_trees{'flushright_not_closed_and_format'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/html_expanded.pl 
b/tp/t/results/plaintext_tests/html_expanded.pl
index 62fe36bb8e..87b0644daa 100644
--- a/tp/t/results/plaintext_tests/html_expanded.pl
+++ b/tp/t/results/plaintext_tests/html_expanded.pl
@@ -91,7 +91,7 @@ $result_trees{'html_expanded'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/inhibit_punctuation.pl 
b/tp/t/results/plaintext_tests/inhibit_punctuation.pl
index e5b3c8ca66..29b71eafe7 100644
--- a/tp/t/results/plaintext_tests/inhibit_punctuation.pl
+++ b/tp/t/results/plaintext_tests/inhibit_punctuation.pl
@@ -115,7 +115,7 @@ $result_trees{'inhibit_punctuation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/insert_copying_and_paragraph.pl 
b/tp/t/results/plaintext_tests/insert_copying_and_paragraph.pl
index f73cec8982..909b639a91 100644
--- a/tp/t/results/plaintext_tests/insert_copying_and_paragraph.pl
+++ b/tp/t/results/plaintext_tests/insert_copying_and_paragraph.pl
@@ -109,7 +109,7 @@ $result_trees{'insert_copying_and_paragraph'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/invalid_accent_punctuation.pl 
b/tp/t/results/plaintext_tests/invalid_accent_punctuation.pl
index 7889572f4d..98c7dbc662 100644
--- a/tp/t/results/plaintext_tests/invalid_accent_punctuation.pl
+++ b/tp/t/results/plaintext_tests/invalid_accent_punctuation.pl
@@ -35,7 +35,7 @@ $result_trees{'invalid_accent_punctuation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/isolated_html_expanded.pl 
b/tp/t/results/plaintext_tests/isolated_html_expanded.pl
index 6310e1db6d..680eab0b4a 100644
--- a/tp/t/results/plaintext_tests/isolated_html_expanded.pl
+++ b/tp/t/results/plaintext_tests/isolated_html_expanded.pl
@@ -81,7 +81,7 @@ $result_trees{'isolated_html_expanded'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/itemize_in_headitem_in_example.pl 
b/tp/t/results/plaintext_tests/itemize_in_headitem_in_example.pl
index e0a02f2661..a8a5b2519b 100644
--- a/tp/t/results/plaintext_tests/itemize_in_headitem_in_example.pl
+++ b/tp/t/results/plaintext_tests/itemize_in_headitem_in_example.pl
@@ -540,7 +540,7 @@ $result_trees{'itemize_in_headitem_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/japanese_utf8.pl 
b/tp/t/results/plaintext_tests/japanese_utf8.pl
index 9fd523da26..e4961ec5d9 100644
--- a/tp/t/results/plaintext_tests/japanese_utf8.pl
+++ b/tp/t/results/plaintext_tests/japanese_utf8.pl
@@ -158,7 +158,7 @@ $result_trees{'japanese_utf8'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/plaintext_tests/line_passed_and_formats.pl 
b/tp/t/results/plaintext_tests/line_passed_and_formats.pl
index 0f46b24217..4df7152707 100644
--- a/tp/t/results/plaintext_tests/line_passed_and_formats.pl
+++ b/tp/t/results/plaintext_tests/line_passed_and_formats.pl
@@ -10,7 +10,7 @@ $result_trees{'line_passed_and_formats'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/plaintext_tests/lone_braces_in_inlineraw.pl 
b/tp/t/results/plaintext_tests/lone_braces_in_inlineraw.pl
index 1f552c653e..d644eea6e9 100644
--- a/tp/t/results/plaintext_tests/lone_braces_in_inlineraw.pl
+++ b/tp/t/results/plaintext_tests/lone_braces_in_inlineraw.pl
@@ -72,7 +72,7 @@ $result_trees{'lone_braces_in_inlineraw'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/long_line.pl 
b/tp/t/results/plaintext_tests/long_line.pl
index 3672b22a37..f1dfd6d7e0 100644
--- a/tp/t/results/plaintext_tests/long_line.pl
+++ b/tp/t/results/plaintext_tests/long_line.pl
@@ -128,7 +128,7 @@ $result_trees{'long_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/long_uref_after_item.pl 
b/tp/t/results/plaintext_tests/long_uref_after_item.pl
index fa7264f3fa..767fa21c7d 100644
--- a/tp/t/results/plaintext_tests/long_uref_after_item.pl
+++ b/tp/t/results/plaintext_tests/long_uref_after_item.pl
@@ -129,7 +129,7 @@ $result_trees{'long_uref_after_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/multiline_image_and_align.pl 
b/tp/t/results/plaintext_tests/multiline_image_and_align.pl
index 00f05c759f..d6f6c7a9f5 100644
--- a/tp/t/results/plaintext_tests/multiline_image_and_align.pl
+++ b/tp/t/results/plaintext_tests/multiline_image_and_align.pl
@@ -463,7 +463,7 @@ $result_trees{'multiline_image_and_align'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/multiline_verb_after_space.pl 
b/tp/t/results/plaintext_tests/multiline_verb_after_space.pl
index 5ed60389c0..d2cadd70ea 100644
--- a/tp/t/results/plaintext_tests/multiline_verb_after_space.pl
+++ b/tp/t/results/plaintext_tests/multiline_verb_after_space.pl
@@ -58,7 +58,7 @@ $result_trees{'multiline_verb_after_space'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/multitable.pl 
b/tp/t/results/plaintext_tests/multitable.pl
index c2b8b63476..1ab82b01d7 100644
--- a/tp/t/results/plaintext_tests/multitable.pl
+++ b/tp/t/results/plaintext_tests/multitable.pl
@@ -1878,7 +1878,7 @@ $result_trees{'multitable'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/plaintext_tests/multitable_in_example_extraneous_tab.pl 
b/tp/t/results/plaintext_tests/multitable_in_example_extraneous_tab.pl
index d58b4a6e13..f17805f2ef 100644
--- a/tp/t/results/plaintext_tests/multitable_in_example_extraneous_tab.pl
+++ b/tp/t/results/plaintext_tests/multitable_in_example_extraneous_tab.pl
@@ -228,7 +228,7 @@ $result_trees{'multitable_in_example_extraneous_tab'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/nested_code_commands.pl 
b/tp/t/results/plaintext_tests/nested_code_commands.pl
index 8804b827a5..6fddbe60b5 100644
--- a/tp/t/results/plaintext_tests/nested_code_commands.pl
+++ b/tp/t/results/plaintext_tests/nested_code_commands.pl
@@ -1306,7 +1306,7 @@ $result_trees{'nested_code_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/nested_indentedblock.pl 
b/tp/t/results/plaintext_tests/nested_indentedblock.pl
index f8be6b6a7b..afbae9bc12 100644
--- a/tp/t/results/plaintext_tests/nested_indentedblock.pl
+++ b/tp/t/results/plaintext_tests/nested_indentedblock.pl
@@ -278,7 +278,7 @@ $result_trees{'nested_indentedblock'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/nested_multitable.pl 
b/tp/t/results/plaintext_tests/nested_multitable.pl
index 1bc5107028..6ff74a6919 100644
--- a/tp/t/results/plaintext_tests/nested_multitable.pl
+++ b/tp/t/results/plaintext_tests/nested_multitable.pl
@@ -414,7 +414,7 @@ $result_trees{'nested_multitable'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/no_empty_line_after_section.pl 
b/tp/t/results/plaintext_tests/no_empty_line_after_section.pl
index 3c433a8471..a0b6553b9e 100644
--- a/tp/t/results/plaintext_tests/no_empty_line_after_section.pl
+++ b/tp/t/results/plaintext_tests/no_empty_line_after_section.pl
@@ -22,7 +22,7 @@ $result_trees{'no_empty_line_after_section'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/plaintext_tests/no_punctuation_commands.pl 
b/tp/t/results/plaintext_tests/no_punctuation_commands.pl
index c4bf4711bf..5a997e4914 100644
--- a/tp/t/results/plaintext_tests/no_punctuation_commands.pl
+++ b/tp/t/results/plaintext_tests/no_punctuation_commands.pl
@@ -328,7 +328,7 @@ $result_trees{'no_punctuation_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/plaintext_tests/no_punctuation_commands_frenchspacing.pl 
b/tp/t/results/plaintext_tests/no_punctuation_commands_frenchspacing.pl
index 8a4f6af60e..d998e9eefd 100644
--- a/tp/t/results/plaintext_tests/no_punctuation_commands_frenchspacing.pl
+++ b/tp/t/results/plaintext_tests/no_punctuation_commands_frenchspacing.pl
@@ -359,7 +359,7 @@ $result_trees{'no_punctuation_commands_frenchspacing'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/non_break_spaces.pl 
b/tp/t/results/plaintext_tests/non_break_spaces.pl
index 503efee14a..b717f99e06 100644
--- a/tp/t/results/plaintext_tests/non_break_spaces.pl
+++ b/tp/t/results/plaintext_tests/non_break_spaces.pl
@@ -48,7 +48,7 @@ $result_trees{'non_break_spaces'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/plaintext_tests/paragraphindent.pl 
b/tp/t/results/plaintext_tests/paragraphindent.pl
index 8064331713..8d749bdce3 100644
--- a/tp/t/results/plaintext_tests/paragraphindent.pl
+++ b/tp/t/results/plaintext_tests/paragraphindent.pl
@@ -221,7 +221,7 @@ $result_trees{'paragraphindent'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/protect_spaces_on_line.pl 
b/tp/t/results/plaintext_tests/protect_spaces_on_line.pl
index 910d9a58d1..c8a425be21 100644
--- a/tp/t/results/plaintext_tests/protect_spaces_on_line.pl
+++ b/tp/t/results/plaintext_tests/protect_spaces_on_line.pl
@@ -219,7 +219,7 @@ $result_trees{'protect_spaces_on_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/protected_space_end_line.pl 
b/tp/t/results/plaintext_tests/protected_space_end_line.pl
index 0ef56c1b64..8a2eb39606 100644
--- a/tp/t/results/plaintext_tests/protected_space_end_line.pl
+++ b/tp/t/results/plaintext_tests/protected_space_end_line.pl
@@ -156,7 +156,7 @@ $result_trees{'protected_space_end_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation.pl 
b/tp/t/results/plaintext_tests/punctuation.pl
index 83eb606bf9..5a0dd10139 100644
--- a/tp/t/results/plaintext_tests/punctuation.pl
+++ b/tp/t/results/plaintext_tests/punctuation.pl
@@ -168,7 +168,7 @@ $result_trees{'punctuation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_abbr_acronym.pl 
b/tp/t/results/plaintext_tests/punctuation_abbr_acronym.pl
index ececdacbe5..f60999afb3 100644
--- a/tp/t/results/plaintext_tests/punctuation_abbr_acronym.pl
+++ b/tp/t/results/plaintext_tests/punctuation_abbr_acronym.pl
@@ -280,7 +280,7 @@ $result_trees{'punctuation_abbr_acronym'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/plaintext_tests/punctuation_and_code_style_commands.pl 
b/tp/t/results/plaintext_tests/punctuation_and_code_style_commands.pl
index 2323a5a4b0..6cafcdc3e3 100644
--- a/tp/t/results/plaintext_tests/punctuation_and_code_style_commands.pl
+++ b/tp/t/results/plaintext_tests/punctuation_and_code_style_commands.pl
@@ -355,7 +355,7 @@ $result_trees{'punctuation_and_code_style_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/plaintext_tests/punctuation_and_code_style_commands_utf8.pl 
b/tp/t/results/plaintext_tests/punctuation_and_code_style_commands_utf8.pl
index 6411a8b165..6a285178a4 100644
--- a/tp/t/results/plaintext_tests/punctuation_and_code_style_commands_utf8.pl
+++ b/tp/t/results/plaintext_tests/punctuation_and_code_style_commands_utf8.pl
@@ -386,7 +386,7 @@ $result_trees{'punctuation_and_code_style_commands_utf8'} = 
{
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_and_footnotes.pl 
b/tp/t/results/plaintext_tests/punctuation_and_footnotes.pl
index ac7f105e76..b1bb13cc8c 100644
--- a/tp/t/results/plaintext_tests/punctuation_and_footnotes.pl
+++ b/tp/t/results/plaintext_tests/punctuation_and_footnotes.pl
@@ -517,7 +517,7 @@ $result_trees{'punctuation_and_footnotes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/plaintext_tests/punctuation_and_footnotes_frenchspacing.pl 
b/tp/t/results/plaintext_tests/punctuation_and_footnotes_frenchspacing.pl
index 394eb838fe..f8b0246912 100644
--- a/tp/t/results/plaintext_tests/punctuation_and_footnotes_frenchspacing.pl
+++ b/tp/t/results/plaintext_tests/punctuation_and_footnotes_frenchspacing.pl
@@ -548,7 +548,7 @@ $result_trees{'punctuation_and_footnotes_frenchspacing'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/plaintext_tests/punctuation_and_upper_case_commands.pl 
b/tp/t/results/plaintext_tests/punctuation_and_upper_case_commands.pl
index bb3b076aa9..c0c1857bb5 100644
--- a/tp/t/results/plaintext_tests/punctuation_and_upper_case_commands.pl
+++ b/tp/t/results/plaintext_tests/punctuation_and_upper_case_commands.pl
@@ -711,7 +711,7 @@ $result_trees{'punctuation_and_upper_case_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git 
a/tp/t/results/plaintext_tests/punctuation_and_upper_case_commands_utf8.pl 
b/tp/t/results/plaintext_tests/punctuation_and_upper_case_commands_utf8.pl
index c99ffcc1f6..45e5882930 100644
--- a/tp/t/results/plaintext_tests/punctuation_and_upper_case_commands_utf8.pl
+++ b/tp/t/results/plaintext_tests/punctuation_and_upper_case_commands_utf8.pl
@@ -736,7 +736,7 @@ $result_trees{'punctuation_and_upper_case_commands_utf8'} = 
{
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_at_end_command.pl 
b/tp/t/results/plaintext_tests/punctuation_at_end_command.pl
index 3e1d594606..3cb172f928 100644
--- a/tp/t/results/plaintext_tests/punctuation_at_end_command.pl
+++ b/tp/t/results/plaintext_tests/punctuation_at_end_command.pl
@@ -300,7 +300,7 @@ $result_trees{'punctuation_at_end_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_commands.pl 
b/tp/t/results/plaintext_tests/punctuation_commands.pl
index 5a2eb671df..7ba2baf235 100644
--- a/tp/t/results/plaintext_tests/punctuation_commands.pl
+++ b/tp/t/results/plaintext_tests/punctuation_commands.pl
@@ -439,7 +439,7 @@ $result_trees{'punctuation_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_commands_frenchspacing.pl 
b/tp/t/results/plaintext_tests/punctuation_commands_frenchspacing.pl
index 4099218f03..391adedfb3 100644
--- a/tp/t/results/plaintext_tests/punctuation_commands_frenchspacing.pl
+++ b/tp/t/results/plaintext_tests/punctuation_commands_frenchspacing.pl
@@ -470,7 +470,7 @@ $result_trees{'punctuation_commands_frenchspacing'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_frenchspacing.pl 
b/tp/t/results/plaintext_tests/punctuation_frenchspacing.pl
index 488db79d25..2035434dc7 100644
--- a/tp/t/results/plaintext_tests/punctuation_frenchspacing.pl
+++ b/tp/t/results/plaintext_tests/punctuation_frenchspacing.pl
@@ -199,7 +199,7 @@ $result_trees{'punctuation_frenchspacing'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_in_command.pl 
b/tp/t/results/plaintext_tests/punctuation_in_command.pl
index 7f40700b66..9f9f78cb5c 100644
--- a/tp/t/results/plaintext_tests/punctuation_in_command.pl
+++ b/tp/t/results/plaintext_tests/punctuation_in_command.pl
@@ -269,7 +269,7 @@ $result_trees{'punctuation_in_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_in_command_end_line.pl 
b/tp/t/results/plaintext_tests/punctuation_in_command_end_line.pl
index b4855f9805..62d9caa4d4 100644
--- a/tp/t/results/plaintext_tests/punctuation_in_command_end_line.pl
+++ b/tp/t/results/plaintext_tests/punctuation_in_command_end_line.pl
@@ -329,7 +329,7 @@ $result_trees{'punctuation_in_command_end_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/punctuation_in_sc.pl 
b/tp/t/results/plaintext_tests/punctuation_in_sc.pl
index cefbd62e62..851e02156c 100644
--- a/tp/t/results/plaintext_tests/punctuation_in_sc.pl
+++ b/tp/t/results/plaintext_tests/punctuation_in_sc.pl
@@ -73,7 +73,7 @@ $result_trees{'punctuation_in_sc'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/quote_node_names.pl 
b/tp/t/results/plaintext_tests/quote_node_names.pl
index 4bd522725c..d88c60bd94 100644
--- a/tp/t/results/plaintext_tests/quote_node_names.pl
+++ b/tp/t/results/plaintext_tests/quote_node_names.pl
@@ -10,7 +10,7 @@ $result_trees{'quote_node_names'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/plaintext_tests/sc_with_utf8_enable_encoding.pl 
b/tp/t/results/plaintext_tests/sc_with_utf8_enable_encoding.pl
index 6e42ea07f2..efc0cc9dd0 100644
--- a/tp/t/results/plaintext_tests/sc_with_utf8_enable_encoding.pl
+++ b/tp/t/results/plaintext_tests/sc_with_utf8_enable_encoding.pl
@@ -75,7 +75,7 @@ $result_trees{'sc_with_utf8_enable_encoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/settitle_and_empty_top.pl 
b/tp/t/results/plaintext_tests/settitle_and_empty_top.pl
index a404e13e11..7ccca811dd 100644
--- a/tp/t/results/plaintext_tests/settitle_and_empty_top.pl
+++ b/tp/t/results/plaintext_tests/settitle_and_empty_top.pl
@@ -45,7 +45,7 @@ $result_trees{'settitle_and_empty_top'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/plaintext_tests/sp_with_text_before_in_example.pl 
b/tp/t/results/plaintext_tests/sp_with_text_before_in_example.pl
index 48e2fdf868..69988c6d4d 100644
--- a/tp/t/results/plaintext_tests/sp_with_text_before_in_example.pl
+++ b/tp/t/results/plaintext_tests/sp_with_text_before_in_example.pl
@@ -116,7 +116,7 @@ $result_trees{'sp_with_text_before_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/star_at_command_formatting.pl 
b/tp/t/results/plaintext_tests/star_at_command_formatting.pl
index 02149c1cd9..211922bd7b 100644
--- a/tp/t/results/plaintext_tests/star_at_command_formatting.pl
+++ b/tp/t/results/plaintext_tests/star_at_command_formatting.pl
@@ -1099,7 +1099,7 @@ $result_trees{'star_at_command_formatting'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/tab_in_table_in_example.pl 
b/tp/t/results/plaintext_tests/tab_in_table_in_example.pl
index c0ad4eb846..3b2f3d56b3 100644
--- a/tp/t/results/plaintext_tests/tab_in_table_in_example.pl
+++ b/tp/t/results/plaintext_tests/tab_in_table_in_example.pl
@@ -228,7 +228,7 @@ $result_trees{'tab_in_table_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/tab_item_in_example.pl 
b/tp/t/results/plaintext_tests/tab_item_in_example.pl
index e9562d5fbc..abf90c12d2 100644
--- a/tp/t/results/plaintext_tests/tab_item_in_example.pl
+++ b/tp/t/results/plaintext_tests/tab_item_in_example.pl
@@ -96,7 +96,7 @@ $result_trees{'tab_item_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/plaintext_tests/transparent_text.pl 
b/tp/t/results/plaintext_tests/transparent_text.pl
index 0ccafb56ca..14c2321e22 100644
--- a/tp/t/results/plaintext_tests/transparent_text.pl
+++ b/tp/t/results/plaintext_tests/transparent_text.pl
@@ -80,7 +80,7 @@ $result_trees{'transparent_text'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/caption_in_example.pl 
b/tp/t/results/preformatted/caption_in_example.pl
index e78917cfc9..27437de17e 100644
--- a/tp/t/results/preformatted/caption_in_example.pl
+++ b/tp/t/results/preformatted/caption_in_example.pl
@@ -208,7 +208,7 @@ $result_trees{'caption_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/comment_example_and_blank_lines.pl 
b/tp/t/results/preformatted/comment_example_and_blank_lines.pl
index 1237873436..b65431a43d 100644
--- a/tp/t/results/preformatted/comment_example_and_blank_lines.pl
+++ b/tp/t/results/preformatted/comment_example_and_blank_lines.pl
@@ -392,7 +392,7 @@ $result_trees{'comment_example_and_blank_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/comments_in_example.pl 
b/tp/t/results/preformatted/comments_in_example.pl
index 6a8c96ae50..4646dbe60f 100644
--- a/tp/t/results/preformatted/comments_in_example.pl
+++ b/tp/t/results/preformatted/comments_in_example.pl
@@ -332,7 +332,7 @@ $result_trees{'comments_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/def_in_example.pl 
b/tp/t/results/preformatted/def_in_example.pl
index 6325156523..7d5a7bf9d1 100644
--- a/tp/t/results/preformatted/def_in_example.pl
+++ b/tp/t/results/preformatted/def_in_example.pl
@@ -218,7 +218,7 @@ $result_trees{'def_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/empty_line.pl 
b/tp/t/results/preformatted/empty_line.pl
index 815573b7f1..c044adc506 100644
--- a/tp/t/results/preformatted/empty_line.pl
+++ b/tp/t/results/preformatted/empty_line.pl
@@ -86,7 +86,7 @@ $result_trees{'empty_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/empty_line_style_command.pl 
b/tp/t/results/preformatted/empty_line_style_command.pl
index 6fccf922ab..ee7914b776 100644
--- a/tp/t/results/preformatted/empty_line_style_command.pl
+++ b/tp/t/results/preformatted/empty_line_style_command.pl
@@ -112,7 +112,7 @@ $result_trees{'empty_line_style_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/insertcopying_in_example.pl 
b/tp/t/results/preformatted/insertcopying_in_example.pl
index c1db00fc5d..cc38343b18 100644
--- a/tp/t/results/preformatted/insertcopying_in_example.pl
+++ b/tp/t/results/preformatted/insertcopying_in_example.pl
@@ -92,7 +92,7 @@ $result_trees{'insertcopying_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/nested_example_and_comment.pl 
b/tp/t/results/preformatted/nested_example_and_comment.pl
index 33866cf009..9e66c67c2d 100644
--- a/tp/t/results/preformatted/nested_example_and_comment.pl
+++ b/tp/t/results/preformatted/nested_example_and_comment.pl
@@ -542,7 +542,7 @@ $result_trees{'nested_example_and_comment'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/nested_formats.pl 
b/tp/t/results/preformatted/nested_formats.pl
index 65221baec3..ccd6f66d80 100644
--- a/tp/t/results/preformatted/nested_formats.pl
+++ b/tp/t/results/preformatted/nested_formats.pl
@@ -275,7 +275,7 @@ $result_trees{'nested_formats'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/page_in_example.pl 
b/tp/t/results/preformatted/page_in_example.pl
index df07cb8230..10a0a45209 100644
--- a/tp/t/results/preformatted/page_in_example.pl
+++ b/tp/t/results/preformatted/page_in_example.pl
@@ -87,7 +87,7 @@ $result_trees{'page_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/quote_dash_in_display.pl 
b/tp/t/results/preformatted/quote_dash_in_display.pl
index 17cd59c785..2bc01de814 100644
--- a/tp/t/results/preformatted/quote_dash_in_display.pl
+++ b/tp/t/results/preformatted/quote_dash_in_display.pl
@@ -87,7 +87,7 @@ $result_trees{'quote_dash_in_display'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/quote_dash_in_example.pl 
b/tp/t/results/preformatted/quote_dash_in_example.pl
index ca0f19dd60..564713b525 100644
--- a/tp/t/results/preformatted/quote_dash_in_example.pl
+++ b/tp/t/results/preformatted/quote_dash_in_example.pl
@@ -87,7 +87,7 @@ $result_trees{'quote_dash_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/text_on_display_command_line.pl 
b/tp/t/results/preformatted/text_on_display_command_line.pl
index 0443bef700..65c591d82b 100644
--- a/tp/t/results/preformatted/text_on_display_command_line.pl
+++ b/tp/t/results/preformatted/text_on_display_command_line.pl
@@ -332,7 +332,7 @@ $result_trees{'text_on_display_command_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/text_on_example_command_line.pl 
b/tp/t/results/preformatted/text_on_example_command_line.pl
index 1cf43cacf8..0b54cbd064 100644
--- a/tp/t/results/preformatted/text_on_example_command_line.pl
+++ b/tp/t/results/preformatted/text_on_example_command_line.pl
@@ -332,7 +332,7 @@ $result_trees{'text_on_example_command_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/preformatted/titlefont_in_example.pl 
b/tp/t/results/preformatted/titlefont_in_example.pl
index caf5eee9c4..d52896f319 100644
--- a/tp/t/results/preformatted/titlefont_in_example.pl
+++ b/tp/t/results/preformatted/titlefont_in_example.pl
@@ -102,7 +102,7 @@ $result_trees{'titlefont_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/quotation/comment_on_quotation_line.pl 
b/tp/t/results/quotation/comment_on_quotation_line.pl
index 81fffa44e6..65a4c9d27f 100644
--- a/tp/t/results/quotation/comment_on_quotation_line.pl
+++ b/tp/t/results/quotation/comment_on_quotation_line.pl
@@ -103,7 +103,7 @@ $result_trees{'comment_on_quotation_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/quotation/empty_quotation.pl 
b/tp/t/results/quotation/empty_quotation.pl
index 683e1b6636..e197e1fb00 100644
--- a/tp/t/results/quotation/empty_quotation.pl
+++ b/tp/t/results/quotation/empty_quotation.pl
@@ -313,7 +313,7 @@ $result_trees{'empty_quotation'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/quotation/only_comment_on_quotation_line.pl 
b/tp/t/results/quotation/only_comment_on_quotation_line.pl
index 1d32af89db..3c6dcca7be 100644
--- a/tp/t/results/quotation/only_comment_on_quotation_line.pl
+++ b/tp/t/results/quotation/only_comment_on_quotation_line.pl
@@ -94,7 +94,7 @@ $result_trees{'only_comment_on_quotation_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/quotation/quotation_and_author.pl 
b/tp/t/results/quotation/quotation_and_author.pl
index 0241ca27a1..a0b5c1a69e 100644
--- a/tp/t/results/quotation/quotation_and_author.pl
+++ b/tp/t/results/quotation/quotation_and_author.pl
@@ -388,7 +388,7 @@ $result_trees{'quotation_and_author'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/quotation/quotation_author_in_example.pl 
b/tp/t/results/quotation/quotation_author_in_example.pl
index 3e06ec7c53..475b1818b6 100644
--- a/tp/t/results/quotation/quotation_author_in_example.pl
+++ b/tp/t/results/quotation/quotation_author_in_example.pl
@@ -195,7 +195,7 @@ $result_trees{'quotation_author_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/quotation/quotation_beginning_and_end_on_line.pl 
b/tp/t/results/quotation/quotation_beginning_and_end_on_line.pl
index 9787e231cc..862d903b00 100644
--- a/tp/t/results/quotation/quotation_beginning_and_end_on_line.pl
+++ b/tp/t/results/quotation/quotation_beginning_and_end_on_line.pl
@@ -68,7 +68,7 @@ $result_trees{'quotation_beginning_and_end_on_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/quotation/space_at_commands_end_quotation_line.pl 
b/tp/t/results/quotation/space_at_commands_end_quotation_line.pl
index f4b0399342..286d3a463f 100644
--- a/tp/t/results/quotation/space_at_commands_end_quotation_line.pl
+++ b/tp/t/results/quotation/space_at_commands_end_quotation_line.pl
@@ -249,7 +249,7 @@ $result_trees{'space_at_commands_end_quotation_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/quotation/standard_quotations.pl 
b/tp/t/results/quotation/standard_quotations.pl
index 8316f3e929..0789433a76 100644
--- a/tp/t/results/quotation/standard_quotations.pl
+++ b/tp/t/results/quotation/standard_quotations.pl
@@ -473,7 +473,7 @@ $result_trees{'standard_quotations'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/beginning_and_end_on_line.pl 
b/tp/t/results/raw/beginning_and_end_on_line.pl
index 4999363ae7..e80f67069a 100644
--- a/tp/t/results/raw/beginning_and_end_on_line.pl
+++ b/tp/t/results/raw/beginning_and_end_on_line.pl
@@ -74,7 +74,7 @@ $result_trees{'beginning_and_end_on_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/braces_in_tex.pl 
b/tp/t/results/raw/braces_in_tex.pl
index 28e96abd23..927eebe418 100644
--- a/tp/t/results/raw/braces_in_tex.pl
+++ b/tp/t/results/raw/braces_in_tex.pl
@@ -278,7 +278,7 @@ $result_trees{'braces_in_tex'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/displaymath.pl b/tp/t/results/raw/displaymath.pl
index b4f02ad4a8..698d552397 100644
--- a/tp/t/results/raw/displaymath.pl
+++ b/tp/t/results/raw/displaymath.pl
@@ -231,7 +231,7 @@ $result_trees{'displaymath'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/inline_in_example.pl 
b/tp/t/results/raw/inline_in_example.pl
index 9f8b3a04a3..132ce2359e 100644
--- a/tp/t/results/raw/inline_in_example.pl
+++ b/tp/t/results/raw/inline_in_example.pl
@@ -282,7 +282,7 @@ $result_trees{'inline_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/inline_missing_first_arg.pl 
b/tp/t/results/raw/inline_missing_first_arg.pl
index 47bb03b52b..aef08f8235 100644
--- a/tp/t/results/raw/inline_missing_first_arg.pl
+++ b/tp/t/results/raw/inline_missing_first_arg.pl
@@ -79,7 +79,7 @@ $result_trees{'inline_missing_first_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/inlinefmt.pl b/tp/t/results/raw/inlinefmt.pl
index 5d2bfa7eaa..0abf885e26 100644
--- a/tp/t/results/raw/inlinefmt.pl
+++ b/tp/t/results/raw/inlinefmt.pl
@@ -156,7 +156,7 @@ $result_trees{'inlinefmt'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/inlinefmt_with_empty_line.pl 
b/tp/t/results/raw/inlinefmt_with_empty_line.pl
index ae95ff9ec9..8b9c955cd1 100644
--- a/tp/t/results/raw/inlinefmt_with_empty_line.pl
+++ b/tp/t/results/raw/inlinefmt_with_empty_line.pl
@@ -178,7 +178,7 @@ $result_trees{'inlinefmt_with_empty_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/inlineraw.pl b/tp/t/results/raw/inlineraw.pl
index b78ee28f14..79f75999bd 100644
--- a/tp/t/results/raw/inlineraw.pl
+++ b/tp/t/results/raw/inlineraw.pl
@@ -156,7 +156,7 @@ $result_trees{'inlineraw'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/inlineraw_with_empty_line.pl 
b/tp/t/results/raw/inlineraw_with_empty_line.pl
index 1ebf5d8910..51b915ae8c 100644
--- a/tp/t/results/raw/inlineraw_with_empty_line.pl
+++ b/tp/t/results/raw/inlineraw_with_empty_line.pl
@@ -174,7 +174,7 @@ $result_trees{'inlineraw_with_empty_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/lone_braces_in_html.pl 
b/tp/t/results/raw/lone_braces_in_html.pl
index 84454e8ee7..9326dc5258 100644
--- a/tp/t/results/raw/lone_braces_in_html.pl
+++ b/tp/t/results/raw/lone_braces_in_html.pl
@@ -145,7 +145,7 @@ $result_trees{'lone_braces_in_html'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/misc_raw.pl b/tp/t/results/raw/misc_raw.pl
index a350cc8f8b..bcb9b73327 100644
--- a/tp/t/results/raw/misc_raw.pl
+++ b/tp/t/results/raw/misc_raw.pl
@@ -191,7 +191,7 @@ $result_trees{'misc_raw'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/misc_raw_comments.pl 
b/tp/t/results/raw/misc_raw_comments.pl
index 9a51e092b7..896b20be26 100644
--- a/tp/t/results/raw/misc_raw_comments.pl
+++ b/tp/t/results/raw/misc_raw_comments.pl
@@ -243,7 +243,7 @@ $result_trees{'misc_raw_comments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/nested_macros.pl 
b/tp/t/results/raw/nested_macros.pl
index 7945915421..b7a0fd3b04 100644
--- a/tp/t/results/raw/nested_macros.pl
+++ b/tp/t/results/raw/nested_macros.pl
@@ -97,7 +97,7 @@ $result_trees{'nested_macros'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/raw_commands_and_end_of_lines.pl 
b/tp/t/results/raw/raw_commands_and_end_of_lines.pl
index ba769ed1c8..8a058c54a8 100644
--- a/tp/t/results/raw/raw_commands_and_end_of_lines.pl
+++ b/tp/t/results/raw/raw_commands_and_end_of_lines.pl
@@ -1315,7 +1315,7 @@ $result_trees{'raw_commands_and_end_of_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/raw_expanded_in_style.pl 
b/tp/t/results/raw/raw_expanded_in_style.pl
index cd9ce04224..1bfe168d4e 100644
--- a/tp/t/results/raw/raw_expanded_in_style.pl
+++ b/tp/t/results/raw/raw_expanded_in_style.pl
@@ -104,7 +104,7 @@ $result_trees{'raw_expanded_in_style'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/raw_in_example.pl 
b/tp/t/results/raw/raw_in_example.pl
index 048658b71a..246d381995 100644
--- a/tp/t/results/raw/raw_in_example.pl
+++ b/tp/t/results/raw/raw_in_example.pl
@@ -403,7 +403,7 @@ $result_trees{'raw_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/raw_in_para.pl b/tp/t/results/raw/raw_in_para.pl
index 5bc4398dd0..239672cf9f 100644
--- a/tp/t/results/raw/raw_in_para.pl
+++ b/tp/t/results/raw/raw_in_para.pl
@@ -249,7 +249,7 @@ $result_trees{'raw_in_para'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/raw_in_style.pl b/tp/t/results/raw/raw_in_style.pl
index b5dcc65c75..dc0bb6171a 100644
--- a/tp/t/results/raw/raw_in_style.pl
+++ b/tp/t/results/raw/raw_in_style.pl
@@ -104,7 +104,7 @@ $result_trees{'raw_in_style'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/raw_not_closed.pl 
b/tp/t/results/raw/raw_not_closed.pl
index 1b5924bfd8..fb39f957bb 100644
--- a/tp/t/results/raw/raw_not_closed.pl
+++ b/tp/t/results/raw/raw_not_closed.pl
@@ -53,7 +53,7 @@ $result_trees{'raw_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/tex_not_closed.pl 
b/tp/t/results/raw/tex_not_closed.pl
index da7ba2a348..a9a50c4294 100644
--- a/tp/t/results/raw/tex_not_closed.pl
+++ b/tp/t/results/raw/tex_not_closed.pl
@@ -56,7 +56,7 @@ $result_trees{'tex_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/verbatim_and_verbatiminclude.pl 
b/tp/t/results/raw/verbatim_and_verbatiminclude.pl
index 88b21a61b6..5ca0eccb27 100644
--- a/tp/t/results/raw/verbatim_and_verbatiminclude.pl
+++ b/tp/t/results/raw/verbatim_and_verbatiminclude.pl
@@ -830,7 +830,7 @@ $result_trees{'verbatim_and_verbatiminclude'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/verbatim_in_brace_command.pl 
b/tp/t/results/raw/verbatim_in_brace_command.pl
index df972e5780..426f039d77 100644
--- a/tp/t/results/raw/verbatim_in_brace_command.pl
+++ b/tp/t/results/raw/verbatim_in_brace_command.pl
@@ -77,7 +77,7 @@ $result_trees{'verbatim_in_brace_command'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/raw/verbatim_not_closed.pl 
b/tp/t/results/raw/verbatim_not_closed.pl
index e98a0fe7c1..e499f95993 100644
--- a/tp/t/results/raw/verbatim_not_closed.pl
+++ b/tp/t/results/raw/verbatim_not_closed.pl
@@ -61,7 +61,7 @@ $result_trees{'verbatim_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/regions/anchor_in_copying.pl 
b/tp/t/results/regions/anchor_in_copying.pl
index 8488bebc46..db3311a100 100644
--- a/tp/t/results/regions/anchor_in_copying.pl
+++ b/tp/t/results/regions/anchor_in_copying.pl
@@ -136,7 +136,7 @@ $result_trees{'anchor_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/regions/anchor_in_copying_in_footnote.pl 
b/tp/t/results/regions/anchor_in_copying_in_footnote.pl
index 03580dae45..37b40d0271 100644
--- a/tp/t/results/regions/anchor_in_copying_in_footnote.pl
+++ b/tp/t/results/regions/anchor_in_copying_in_footnote.pl
@@ -167,7 +167,7 @@ $result_trees{'anchor_in_copying_in_footnote'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/regions/anchor_in_titlepage.pl 
b/tp/t/results/regions/anchor_in_titlepage.pl
index 53a540845b..be2f936afe 100644
--- a/tp/t/results/regions/anchor_in_titlepage.pl
+++ b/tp/t/results/regions/anchor_in_titlepage.pl
@@ -113,7 +113,7 @@ $result_trees{'anchor_in_titlepage'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/regions/anchor_in_titlepage_titlepage.pl 
b/tp/t/results/regions/anchor_in_titlepage_titlepage.pl
index 4d42d42665..3aac8b329a 100644
--- a/tp/t/results/regions/anchor_in_titlepage_titlepage.pl
+++ b/tp/t/results/regions/anchor_in_titlepage_titlepage.pl
@@ -113,7 +113,7 @@ $result_trees{'anchor_in_titlepage_titlepage'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/regions/copying_not_closed.pl 
b/tp/t/results/regions/copying_not_closed.pl
index 5ca5af807c..6e74c3973a 100644
--- a/tp/t/results/regions/copying_not_closed.pl
+++ b/tp/t/results/regions/copying_not_closed.pl
@@ -48,7 +48,7 @@ $result_trees{'copying_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/regions/double_copying.pl 
b/tp/t/results/regions/double_copying.pl
index 1cd94ac061..52868c713e 100644
--- a/tp/t/results/regions/double_copying.pl
+++ b/tp/t/results/regions/double_copying.pl
@@ -151,7 +151,7 @@ $result_trees{'double_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/regions/double_titlepage_not_closed.pl 
b/tp/t/results/regions/double_titlepage_not_closed.pl
index 87e47a33d2..102b27f1a3 100644
--- a/tp/t/results/regions/double_titlepage_not_closed.pl
+++ b/tp/t/results/regions/double_titlepage_not_closed.pl
@@ -97,7 +97,7 @@ $result_trees{'double_titlepage_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/regions/format_in_titlepage.pl 
b/tp/t/results/regions/format_in_titlepage.pl
index e58659c684..5c2dcc047a 100644
--- a/tp/t/results/regions/format_in_titlepage.pl
+++ b/tp/t/results/regions/format_in_titlepage.pl
@@ -146,7 +146,7 @@ $result_trees{'format_in_titlepage'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/regions/format_in_titlepage_titlepage.pl 
b/tp/t/results/regions/format_in_titlepage_titlepage.pl
index 5213206826..5f13b3ab2c 100644
--- a/tp/t/results/regions/format_in_titlepage_titlepage.pl
+++ b/tp/t/results/regions/format_in_titlepage_titlepage.pl
@@ -146,7 +146,7 @@ $result_trees{'format_in_titlepage_titlepage'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/regions/ref_in_copying.pl 
b/tp/t/results/regions/ref_in_copying.pl
index ab90a8f815..204b5b8840 100644
--- a/tp/t/results/regions/ref_in_copying.pl
+++ b/tp/t/results/regions/ref_in_copying.pl
@@ -152,7 +152,7 @@ $result_trees{'ref_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/regions/today_in_copying.pl 
b/tp/t/results/regions/today_in_copying.pl
index 4f7c7e4104..06dff8b0e8 100644
--- a/tp/t/results/regions/today_in_copying.pl
+++ b/tp/t/results/regions/today_in_copying.pl
@@ -98,7 +98,7 @@ $result_trees{'today_in_copying'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/a_comma_after_node.pl 
b/tp/t/results/sectioning/a_comma_after_node.pl
index a4cd3a63b1..174e683d2b 100644
--- a/tp/t/results/sectioning/a_comma_after_node.pl
+++ b/tp/t/results/sectioning/a_comma_after_node.pl
@@ -10,7 +10,7 @@ $result_trees{'a_comma_after_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/anchor_in_footnote.pl 
b/tp/t/results/sectioning/anchor_in_footnote.pl
index dd264cf63f..f082614511 100644
--- a/tp/t/results/sectioning/anchor_in_footnote.pl
+++ b/tp/t/results/sectioning/anchor_in_footnote.pl
@@ -10,7 +10,7 @@ $result_trees{'anchor_in_footnote'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/anchor_in_footnote_separate.pl 
b/tp/t/results/sectioning/anchor_in_footnote_separate.pl
index cb6991ae0a..2e7048f501 100644
--- a/tp/t/results/sectioning/anchor_in_footnote_separate.pl
+++ b/tp/t/results/sectioning/anchor_in_footnote_separate.pl
@@ -42,7 +42,7 @@ $result_trees{'anchor_in_footnote_separate'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/anchor_zero.pl 
b/tp/t/results/sectioning/anchor_zero.pl
index 3bb650fdfa..714f0d802d 100644
--- a/tp/t/results/sectioning/anchor_zero.pl
+++ b/tp/t/results/sectioning/anchor_zero.pl
@@ -10,7 +10,7 @@ $result_trees{'anchor_zero'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/at_commands_in_node.pl 
b/tp/t/results/sectioning/at_commands_in_node.pl
index 9f02c6b042..6e53d4f2df 100644
--- a/tp/t/results/sectioning/at_commands_in_node.pl
+++ b/tp/t/results/sectioning/at_commands_in_node.pl
@@ -10,7 +10,7 @@ $result_trees{'at_commands_in_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/chapter_before_and_after_part.pl 
b/tp/t/results/sectioning/chapter_before_and_after_part.pl
index 78f78602dc..5da5e76e49 100644
--- a/tp/t/results/sectioning/chapter_before_and_after_part.pl
+++ b/tp/t/results/sectioning/chapter_before_and_after_part.pl
@@ -11,7 +11,7 @@ $result_trees{'chapter_before_and_after_part'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/chapter_before_part.pl 
b/tp/t/results/sectioning/chapter_before_part.pl
index ae8f024e0e..265259a3d9 100644
--- a/tp/t/results/sectioning/chapter_before_part.pl
+++ b/tp/t/results/sectioning/chapter_before_part.pl
@@ -11,7 +11,7 @@ $result_trees{'chapter_before_part'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/chapter_between_nodes.pl 
b/tp/t/results/sectioning/chapter_between_nodes.pl
index 0002e1a4c6..9820db7d9b 100644
--- a/tp/t/results/sectioning/chapter_between_nodes.pl
+++ b/tp/t/results/sectioning/chapter_between_nodes.pl
@@ -46,7 +46,7 @@ $result_trees{'chapter_between_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/chapter_node_before_and_after_part.pl 
b/tp/t/results/sectioning/chapter_node_before_and_after_part.pl
index b0a66cd71d..f6a490bfa0 100644
--- a/tp/t/results/sectioning/chapter_node_before_and_after_part.pl
+++ b/tp/t/results/sectioning/chapter_node_before_and_after_part.pl
@@ -17,7 +17,7 @@ $result_trees{'chapter_node_before_and_after_part'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/chapter_sections.pl 
b/tp/t/results/sectioning/chapter_sections.pl
index d8be1fc851..5248a7411f 100644
--- a/tp/t/results/sectioning/chapter_sections.pl
+++ b/tp/t/results/sectioning/chapter_sections.pl
@@ -11,7 +11,7 @@ $result_trees{'chapter_sections'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/character_and_spaces_in_node.pl 
b/tp/t/results/sectioning/character_and_spaces_in_node.pl
index 5a51e95752..a9d59dbef0 100644
--- a/tp/t/results/sectioning/character_and_spaces_in_node.pl
+++ b/tp/t/results/sectioning/character_and_spaces_in_node.pl
@@ -17,7 +17,7 @@ $result_trees{'character_and_spaces_in_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/character_and_spaces_in_refs.pl 
b/tp/t/results/sectioning/character_and_spaces_in_refs.pl
index 9db0b996bf..8960d4d339 100644
--- a/tp/t/results/sectioning/character_and_spaces_in_refs.pl
+++ b/tp/t/results/sectioning/character_and_spaces_in_refs.pl
@@ -10,7 +10,7 @@ $result_trees{'character_and_spaces_in_refs'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/character_and_spaces_in_refs_out.pl 
b/tp/t/results/sectioning/character_and_spaces_in_refs_out.pl
index 9b0acabad9..1bf162df38 100644
--- a/tp/t/results/sectioning/character_and_spaces_in_refs_out.pl
+++ b/tp/t/results/sectioning/character_and_spaces_in_refs_out.pl
@@ -11,7 +11,7 @@ $result_trees{'character_and_spaces_in_refs_out'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/complex.pl 
b/tp/t/results/sectioning/complex.pl
index da418eb1c8..1af0e791c5 100644
--- a/tp/t/results/sectioning/complex.pl
+++ b/tp/t/results/sectioning/complex.pl
@@ -11,7 +11,7 @@ $result_trees{'complex'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/complex_split_at_node.pl 
b/tp/t/results/sectioning/complex_split_at_node.pl
index e93f811cf1..5960f32ef5 100644
--- a/tp/t/results/sectioning/complex_split_at_node.pl
+++ b/tp/t/results/sectioning/complex_split_at_node.pl
@@ -11,7 +11,7 @@ $result_trees{'complex_split_at_node'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/contents.pl 
b/tp/t/results/sectioning/contents.pl
index 19a4929158..3a7329605e 100644
--- a/tp/t/results/sectioning/contents.pl
+++ b/tp/t/results/sectioning/contents.pl
@@ -10,7 +10,7 @@ $result_trees{'contents'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/contents_and_shortcontents.pl 
b/tp/t/results/sectioning/contents_and_shortcontents.pl
index dc860805fb..053631c34b 100644
--- a/tp/t/results/sectioning/contents_and_shortcontents.pl
+++ b/tp/t/results/sectioning/contents_and_shortcontents.pl
@@ -10,7 +10,7 @@ $result_trees{'contents_and_shortcontents'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/contents_at_document_begin.pl 
b/tp/t/results/sectioning/contents_at_document_begin.pl
index 4824eacb9b..2947fb8790 100644
--- a/tp/t/results/sectioning/contents_at_document_begin.pl
+++ b/tp/t/results/sectioning/contents_at_document_begin.pl
@@ -93,7 +93,7 @@ $result_trees{'contents_at_document_begin'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/contents_at_end_document.pl 
b/tp/t/results/sectioning/contents_at_end_document.pl
index 94767335da..bb9911281a 100644
--- a/tp/t/results/sectioning/contents_at_end_document.pl
+++ b/tp/t/results/sectioning/contents_at_end_document.pl
@@ -70,7 +70,7 @@ $result_trees{'contents_at_end_document'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/contents_at_end_document_after_node.pl 
b/tp/t/results/sectioning/contents_at_end_document_after_node.pl
index e8faeeee0a..ba75656748 100644
--- a/tp/t/results/sectioning/contents_at_end_document_after_node.pl
+++ b/tp/t/results/sectioning/contents_at_end_document_after_node.pl
@@ -70,7 +70,7 @@ $result_trees{'contents_at_end_document_after_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/contents_in_document.pl 
b/tp/t/results/sectioning/contents_in_document.pl
index fba1cfef70..3c85789041 100644
--- a/tp/t/results/sectioning/contents_in_document.pl
+++ b/tp/t/results/sectioning/contents_in_document.pl
@@ -70,7 +70,7 @@ $result_trees{'contents_in_document'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/contents_in_html_text.pl 
b/tp/t/results/sectioning/contents_in_html_text.pl
index 9a5829e5ac..5648d57ce9 100644
--- a/tp/t/results/sectioning/contents_in_html_text.pl
+++ b/tp/t/results/sectioning/contents_in_html_text.pl
@@ -10,7 +10,7 @@ $result_trees{'contents_in_html_text'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/contents_no_section.pl 
b/tp/t/results/sectioning/contents_no_section.pl
index 1a04a38916..1c2103f7c5 100644
--- a/tp/t/results/sectioning/contents_no_section.pl
+++ b/tp/t/results/sectioning/contents_no_section.pl
@@ -70,7 +70,7 @@ $result_trees{'contents_no_section'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/contents_with_only_top_node.pl 
b/tp/t/results/sectioning/contents_with_only_top_node.pl
index 2278e8cbb0..9658019e30 100644
--- a/tp/t/results/sectioning/contents_with_only_top_node.pl
+++ b/tp/t/results/sectioning/contents_with_only_top_node.pl
@@ -17,7 +17,7 @@ $result_trees{'contents_with_only_top_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/double_node_anchor_float.pl 
b/tp/t/results/sectioning/double_node_anchor_float.pl
index 1e6d7f1ce7..6e1e10d638 100644
--- a/tp/t/results/sectioning/double_node_anchor_float.pl
+++ b/tp/t/results/sectioning/double_node_anchor_float.pl
@@ -10,7 +10,7 @@ $result_trees{'double_node_anchor_float'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/double_part.pl 
b/tp/t/results/sectioning/double_part.pl
index 5ed83c846b..53ae4cab98 100644
--- a/tp/t/results/sectioning/double_part.pl
+++ b/tp/t/results/sectioning/double_part.pl
@@ -11,7 +11,7 @@ $result_trees{'double_part'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/double_top.pl 
b/tp/t/results/sectioning/double_top.pl
index 1aff906b74..be5edc1ab5 100644
--- a/tp/t/results/sectioning/double_top.pl
+++ b/tp/t/results/sectioning/double_top.pl
@@ -10,7 +10,7 @@ $result_trees{'double_top'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/double_top_in_menu.pl 
b/tp/t/results/sectioning/double_top_in_menu.pl
index 525317ebd6..0cab194479 100644
--- a/tp/t/results/sectioning/double_top_in_menu.pl
+++ b/tp/t/results/sectioning/double_top_in_menu.pl
@@ -10,7 +10,7 @@ $result_trees{'double_top_in_menu'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/double_top_section.pl 
b/tp/t/results/sectioning/double_top_section.pl
index 852ed1d0aa..cabcbd18c1 100644
--- a/tp/t/results/sectioning/double_top_section.pl
+++ b/tp/t/results/sectioning/double_top_section.pl
@@ -10,7 +10,7 @@ $result_trees{'double_top_section'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/email_in_node.pl 
b/tp/t/results/sectioning/email_in_node.pl
index 69b3b53b17..fdd9280307 100644
--- a/tp/t/results/sectioning/email_in_node.pl
+++ b/tp/t/results/sectioning/email_in_node.pl
@@ -10,7 +10,7 @@ $result_trees{'email_in_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/empty_anchor.pl 
b/tp/t/results/sectioning/empty_anchor.pl
index 1dd80d5630..92db9d6770 100644
--- a/tp/t/results/sectioning/empty_anchor.pl
+++ b/tp/t/results/sectioning/empty_anchor.pl
@@ -64,7 +64,7 @@ $result_trees{'empty_anchor'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/sectioning/empty_node.pl 
b/tp/t/results/sectioning/empty_node.pl
index 3680f34a63..833afad514 100644
--- a/tp/t/results/sectioning/empty_node.pl
+++ b/tp/t/results/sectioning/empty_node.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/empty_nodes_with_commands.pl 
b/tp/t/results/sectioning/empty_nodes_with_commands.pl
index 15887120a2..69c9a3a5d8 100644
--- a/tp/t/results/sectioning/empty_nodes_with_commands.pl
+++ b/tp/t/results/sectioning/empty_nodes_with_commands.pl
@@ -17,7 +17,7 @@ $result_trees{'empty_nodes_with_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/empty_ref_arg.pl 
b/tp/t/results/sectioning/empty_ref_arg.pl
index dc4a73c7ce..9314fefab1 100644
--- a/tp/t/results/sectioning/empty_ref_arg.pl
+++ b/tp/t/results/sectioning/empty_ref_arg.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_ref_arg'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/empty_refs.pl 
b/tp/t/results/sectioning/empty_refs.pl
index c65f6ed447..540fced7e2 100644
--- a/tp/t/results/sectioning/empty_refs.pl
+++ b/tp/t/results/sectioning/empty_refs.pl
@@ -105,7 +105,7 @@ $result_trees{'empty_refs'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/sectioning/empty_top_node_up.pl 
b/tp/t/results/sectioning/empty_top_node_up.pl
index ea7207926d..334e22bc44 100644
--- a/tp/t/results/sectioning/empty_top_node_up.pl
+++ b/tp/t/results/sectioning/empty_top_node_up.pl
@@ -10,7 +10,7 @@ $result_trees{'empty_top_node_up'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/equivalent_labels.pl 
b/tp/t/results/sectioning/equivalent_labels.pl
index 49da87ecb5..e677df8446 100644
--- a/tp/t/results/sectioning/equivalent_labels.pl
+++ b/tp/t/results/sectioning/equivalent_labels.pl
@@ -10,7 +10,7 @@ $result_trees{'equivalent_labels'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/equivalent_nodes.pl 
b/tp/t/results/sectioning/equivalent_nodes.pl
index 469cc0a638..fff025c0c3 100644
--- a/tp/t/results/sectioning/equivalent_nodes.pl
+++ b/tp/t/results/sectioning/equivalent_nodes.pl
@@ -10,7 +10,7 @@ $result_trees{'equivalent_nodes'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/explicit_node_directions.pl 
b/tp/t/results/sectioning/explicit_node_directions.pl
index 6446743ca1..5f41e54666 100644
--- a/tp/t/results/sectioning/explicit_node_directions.pl
+++ b/tp/t/results/sectioning/explicit_node_directions.pl
@@ -11,7 +11,7 @@ $result_trees{'explicit_node_directions'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/external_node_in_menu.pl 
b/tp/t/results/sectioning/external_node_in_menu.pl
index cf6933fd02..3da904f13e 100644
--- a/tp/t/results/sectioning/external_node_in_menu.pl
+++ b/tp/t/results/sectioning/external_node_in_menu.pl
@@ -10,7 +10,7 @@ $result_trees{'external_node_in_menu'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/hole_in_sectioning.pl 
b/tp/t/results/sectioning/hole_in_sectioning.pl
index a0269936d6..173e2a0f42 100644
--- a/tp/t/results/sectioning/hole_in_sectioning.pl
+++ b/tp/t/results/sectioning/hole_in_sectioning.pl
@@ -10,7 +10,7 @@ $result_trees{'hole_in_sectioning'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/internal_top_node_up.pl 
b/tp/t/results/sectioning/internal_top_node_up.pl
index 0365c1bf32..b6213350ff 100644
--- a/tp/t/results/sectioning/internal_top_node_up.pl
+++ b/tp/t/results/sectioning/internal_top_node_up.pl
@@ -11,7 +11,7 @@ $result_trees{'internal_top_node_up'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/lone_Top_node.pl 
b/tp/t/results/sectioning/lone_Top_node.pl
index 18043a210e..27deb303f9 100644
--- a/tp/t/results/sectioning/lone_Top_node.pl
+++ b/tp/t/results/sectioning/lone_Top_node.pl
@@ -47,7 +47,7 @@ $result_trees{'lone_Top_node'} = [
           }
         ],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/lone_contents.pl 
b/tp/t/results/sectioning/lone_contents.pl
index 8f7f189e07..dc5ffe0651 100644
--- a/tp/t/results/sectioning/lone_contents.pl
+++ b/tp/t/results/sectioning/lone_contents.pl
@@ -28,7 +28,7 @@ $result_trees{'lone_contents'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/sectioning/loop_nodes.pl 
b/tp/t/results/sectioning/loop_nodes.pl
index 7f8f825c3b..fe8d4e8e17 100644
--- a/tp/t/results/sectioning/loop_nodes.pl
+++ b/tp/t/results/sectioning/loop_nodes.pl
@@ -46,7 +46,7 @@ $result_trees{'loop_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/lowered_subsubsection.pl 
b/tp/t/results/sectioning/lowered_subsubsection.pl
index 07d72449a4..129875bac0 100644
--- a/tp/t/results/sectioning/lowered_subsubsection.pl
+++ b/tp/t/results/sectioning/lowered_subsubsection.pl
@@ -10,7 +10,7 @@ $result_trees{'lowered_subsubsection'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/loweredheading.pl 
b/tp/t/results/sectioning/loweredheading.pl
index bab4e9fb07..21b5b7ee1c 100644
--- a/tp/t/results/sectioning/loweredheading.pl
+++ b/tp/t/results/sectioning/loweredheading.pl
@@ -23,7 +23,7 @@ $result_trees{'loweredheading'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/menutextorder.pl 
b/tp/t/results/sectioning/menutextorder.pl
index 16bc2b7f3a..aec78ee537 100644
--- a/tp/t/results/sectioning/menutextorder.pl
+++ b/tp/t/results/sectioning/menutextorder.pl
@@ -184,7 +184,7 @@ $result_trees{'menutextorder'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/more_sections_than_nodes.pl 
b/tp/t/results/sectioning/more_sections_than_nodes.pl
index 8d027b1bd5..b7dd5cf17c 100644
--- a/tp/t/results/sectioning/more_sections_than_nodes.pl
+++ b/tp/t/results/sectioning/more_sections_than_nodes.pl
@@ -10,7 +10,7 @@ $result_trees{'more_sections_than_nodes'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/next_in_menu_is_below.pl 
b/tp/t/results/sectioning/next_in_menu_is_below.pl
index 38a3fb22ec..3310ca6dd6 100644
--- a/tp/t/results/sectioning/next_in_menu_is_below.pl
+++ b/tp/t/results/sectioning/next_in_menu_is_below.pl
@@ -10,7 +10,7 @@ $result_trees{'next_in_menu_is_below'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/next_no_prev_to_node.pl 
b/tp/t/results/sectioning/next_no_prev_to_node.pl
index 7712015711..26fb5ab9be 100644
--- a/tp/t/results/sectioning/next_no_prev_to_node.pl
+++ b/tp/t/results/sectioning/next_no_prev_to_node.pl
@@ -10,7 +10,7 @@ $result_trees{'next_no_prev_to_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/no_argument_and_contents.pl 
b/tp/t/results/sectioning/no_argument_and_contents.pl
index a3407a365b..a428b2cccb 100644
--- a/tp/t/results/sectioning/no_argument_and_contents.pl
+++ b/tp/t/results/sectioning/no_argument_and_contents.pl
@@ -34,7 +34,7 @@ $result_trees{'no_argument_and_contents'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/no_element.pl 
b/tp/t/results/sectioning/no_element.pl
index 1b2d5a7307..e8bc1113e4 100644
--- a/tp/t/results/sectioning/no_element.pl
+++ b/tp/t/results/sectioning/no_element.pl
@@ -668,7 +668,7 @@ $result_trees{'no_element'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/sectioning/no_menu.pl 
b/tp/t/results/sectioning/no_menu.pl
index 8578c4c7f9..4cb6230db8 100644
--- a/tp/t/results/sectioning/no_menu.pl
+++ b/tp/t/results/sectioning/no_menu.pl
@@ -10,7 +10,7 @@ $result_trees{'no_menu'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_empty_direction.pl 
b/tp/t/results/sectioning/node_empty_direction.pl
index 6912b6b3cd..cdf28a41c3 100644
--- a/tp/t/results/sectioning/node_empty_direction.pl
+++ b/tp/t/results/sectioning/node_empty_direction.pl
@@ -10,7 +10,7 @@ $result_trees{'node_empty_direction'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_line_arguments.pl 
b/tp/t/results/sectioning/node_line_arguments.pl
index d83ec64c79..48f0621f1e 100644
--- a/tp/t/results/sectioning/node_line_arguments.pl
+++ b/tp/t/results/sectioning/node_line_arguments.pl
@@ -17,7 +17,7 @@ $result_trees{'node_line_arguments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_nested_parentheses.pl 
b/tp/t/results/sectioning/node_nested_parentheses.pl
index 53694d0c81..02d9ac7e4b 100644
--- a/tp/t/results/sectioning/node_nested_parentheses.pl
+++ b/tp/t/results/sectioning/node_nested_parentheses.pl
@@ -10,7 +10,7 @@ $result_trees{'node_nested_parentheses'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_part_chapter_after_chapter.pl 
b/tp/t/results/sectioning/node_part_chapter_after_chapter.pl
index 04f280271b..4af6d95b57 100644
--- a/tp/t/results/sectioning/node_part_chapter_after_chapter.pl
+++ b/tp/t/results/sectioning/node_part_chapter_after_chapter.pl
@@ -11,7 +11,7 @@ $result_trees{'node_part_chapter_after_chapter'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/node_part_chapter_after_top.pl 
b/tp/t/results/sectioning/node_part_chapter_after_top.pl
index 8c02d3e4ed..2e014b9dd7 100644
--- a/tp/t/results/sectioning/node_part_chapter_after_top.pl
+++ b/tp/t/results/sectioning/node_part_chapter_after_top.pl
@@ -11,7 +11,7 @@ $result_trees{'node_part_chapter_after_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/node_referenced_in_ref.pl 
b/tp/t/results/sectioning/node_referenced_in_ref.pl
index a4e73ac49c..5f8729b871 100644
--- a/tp/t/results/sectioning/node_referenced_in_ref.pl
+++ b/tp/t/results/sectioning/node_referenced_in_ref.pl
@@ -10,7 +10,7 @@ $result_trees{'node_referenced_in_ref'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl 
b/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
index fe8271d583..52f26463e4 100644
--- a/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
+++ b/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
@@ -46,7 +46,7 @@ $result_trees{'node_sectop_before_chapter_no_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_sectop_before_lone_node_Top.pl 
b/tp/t/results/sectioning/node_sectop_before_lone_node_Top.pl
index dd4fef4921..608b1ca569 100644
--- a/tp/t/results/sectioning/node_sectop_before_lone_node_Top.pl
+++ b/tp/t/results/sectioning/node_sectop_before_lone_node_Top.pl
@@ -46,7 +46,7 @@ $result_trees{'node_sectop_before_lone_node_Top'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_too_much_args.pl 
b/tp/t/results/sectioning/node_too_much_args.pl
index 9a7efa3473..fcc9409abd 100644
--- a/tp/t/results/sectioning/node_too_much_args.pl
+++ b/tp/t/results/sectioning/node_too_much_args.pl
@@ -10,7 +10,7 @@ $result_trees{'node_too_much_args'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_up_direction_for_top_with_manual.pl 
b/tp/t/results/sectioning/node_up_direction_for_top_with_manual.pl
index de6c6f15c0..5d59d437d2 100644
--- a/tp/t/results/sectioning/node_up_direction_for_top_with_manual.pl
+++ b/tp/t/results/sectioning/node_up_direction_for_top_with_manual.pl
@@ -10,7 +10,7 @@ $result_trees{'node_up_direction_for_top_with_manual'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/node_up_external_node.pl 
b/tp/t/results/sectioning/node_up_external_node.pl
index 3ee3fffe2c..5235b1871d 100644
--- a/tp/t/results/sectioning/node_up_external_node.pl
+++ b/tp/t/results/sectioning/node_up_external_node.pl
@@ -11,7 +11,7 @@ $result_trees{'node_up_external_node'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/nodename_parentheses.pl 
b/tp/t/results/sectioning/nodename_parentheses.pl
index 2353b54118..5e353c408a 100644
--- a/tp/t/results/sectioning/nodename_parentheses.pl
+++ b/tp/t/results/sectioning/nodename_parentheses.pl
@@ -10,7 +10,7 @@ $result_trees{'nodename_parentheses'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/nodes_after_top_before_chapter_nodes.pl 
b/tp/t/results/sectioning/nodes_after_top_before_chapter_nodes.pl
index 5abf9a4a26..beea1c583b 100644
--- a/tp/t/results/sectioning/nodes_after_top_before_chapter_nodes.pl
+++ b/tp/t/results/sectioning/nodes_after_top_before_chapter_nodes.pl
@@ -11,7 +11,7 @@ $result_trees{'nodes_after_top_before_chapter_nodes'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git 
a/tp/t/results/sectioning/nodes_after_top_before_chapter_not_split.pl 
b/tp/t/results/sectioning/nodes_after_top_before_chapter_not_split.pl
index 0a7ebea7e7..cc27472119 100644
--- a/tp/t/results/sectioning/nodes_after_top_before_chapter_not_split.pl
+++ b/tp/t/results/sectioning/nodes_after_top_before_chapter_not_split.pl
@@ -10,7 +10,7 @@ $result_trees{'nodes_after_top_before_chapter_not_split'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/sectioning/nodes_after_top_before_chapter_not_split_no_use_node_directions.pl
 
b/tp/t/results/sectioning/nodes_after_top_before_chapter_not_split_no_use_node_directions.pl
index 5eef843cfe..66daeb389d 100644
--- 
a/tp/t/results/sectioning/nodes_after_top_before_chapter_not_split_no_use_node_directions.pl
+++ 
b/tp/t/results/sectioning/nodes_after_top_before_chapter_not_split_no_use_node_directions.pl
@@ -10,7 +10,7 @@ 
$result_trees{'nodes_after_top_before_chapter_not_split_no_use_node_directions'}
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/nodes_after_top_before_chapter_sections.pl 
b/tp/t/results/sectioning/nodes_after_top_before_chapter_sections.pl
index acfabeae3a..53c15444a1 100644
--- a/tp/t/results/sectioning/nodes_after_top_before_chapter_sections.pl
+++ b/tp/t/results/sectioning/nodes_after_top_before_chapter_sections.pl
@@ -11,7 +11,7 @@ $result_trees{'nodes_after_top_before_chapter_sections'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/nodes_after_top_before_section_nodes.pl 
b/tp/t/results/sectioning/nodes_after_top_before_section_nodes.pl
index 6294ad68bb..e1ee53c534 100644
--- a/tp/t/results/sectioning/nodes_after_top_before_section_nodes.pl
+++ b/tp/t/results/sectioning/nodes_after_top_before_section_nodes.pl
@@ -11,7 +11,7 @@ $result_trees{'nodes_after_top_before_section_nodes'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/nodes_after_top_before_section_sections.pl 
b/tp/t/results/sectioning/nodes_after_top_before_section_sections.pl
index 8ec514c248..77b8e9b57a 100644
--- a/tp/t/results/sectioning/nodes_after_top_before_section_sections.pl
+++ b/tp/t/results/sectioning/nodes_after_top_before_section_sections.pl
@@ -11,7 +11,7 @@ $result_trees{'nodes_after_top_before_section_sections'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/nodes_before_after_top.pl 
b/tp/t/results/sectioning/nodes_before_after_top.pl
index 005b70a258..6fd24b4f4d 100644
--- a/tp/t/results/sectioning/nodes_before_after_top.pl
+++ b/tp/t/results/sectioning/nodes_before_after_top.pl
@@ -46,7 +46,7 @@ $result_trees{'nodes_before_after_top'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/nodes_before_after_top_xref.pl 
b/tp/t/results/sectioning/nodes_before_after_top_xref.pl
index 8f26c86794..c0e3cd3527 100644
--- a/tp/t/results/sectioning/nodes_before_after_top_xref.pl
+++ b/tp/t/results/sectioning/nodes_before_after_top_xref.pl
@@ -46,7 +46,7 @@ $result_trees{'nodes_before_after_top_xref'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/nodes_before_top.pl 
b/tp/t/results/sectioning/nodes_before_top.pl
index 141dba1586..57da46856b 100644
--- a/tp/t/results/sectioning/nodes_before_top.pl
+++ b/tp/t/results/sectioning/nodes_before_top.pl
@@ -46,7 +46,7 @@ $result_trees{'nodes_before_top'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/nodes_no_node_top_explicit_directions.pl 
b/tp/t/results/sectioning/nodes_no_node_top_explicit_directions.pl
index abaf66cfe1..a234fa09ae 100644
--- a/tp/t/results/sectioning/nodes_no_node_top_explicit_directions.pl
+++ b/tp/t/results/sectioning/nodes_no_node_top_explicit_directions.pl
@@ -11,7 +11,7 @@ $result_trees{'nodes_no_node_top_explicit_directions'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/non_automatic_internal_top_node_up.pl 
b/tp/t/results/sectioning/non_automatic_internal_top_node_up.pl
index 53f9537d65..c47340da5b 100644
--- a/tp/t/results/sectioning/non_automatic_internal_top_node_up.pl
+++ b/tp/t/results/sectioning/non_automatic_internal_top_node_up.pl
@@ -11,7 +11,7 @@ $result_trees{'non_automatic_internal_top_node_up'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/non_automatic_top_node_up_and_url.pl 
b/tp/t/results/sectioning/non_automatic_top_node_up_and_url.pl
index 353050eb61..f2edc92a9d 100644
--- a/tp/t/results/sectioning/non_automatic_top_node_up_and_url.pl
+++ b/tp/t/results/sectioning/non_automatic_top_node_up_and_url.pl
@@ -11,7 +11,7 @@ $result_trees{'non_automatic_top_node_up_and_url'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/non_automatic_top_node_up_url.pl 
b/tp/t/results/sectioning/non_automatic_top_node_up_url.pl
index 1bbd2969f3..00ac45fdfb 100644
--- a/tp/t/results/sectioning/non_automatic_top_node_up_url.pl
+++ b/tp/t/results/sectioning/non_automatic_top_node_up_url.pl
@@ -11,7 +11,7 @@ $result_trees{'non_automatic_top_node_up_url'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/novalidate.pl 
b/tp/t/results/sectioning/novalidate.pl
index f8ebccad8a..c390137d50 100644
--- a/tp/t/results/sectioning/novalidate.pl
+++ b/tp/t/results/sectioning/novalidate.pl
@@ -40,7 +40,7 @@ $result_trees{'novalidate'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/one_node_explicit_directions_anchor.pl 
b/tp/t/results/sectioning/one_node_explicit_directions_anchor.pl
index f8ef18bd57..6e757d2c86 100644
--- a/tp/t/results/sectioning/one_node_explicit_directions_anchor.pl
+++ b/tp/t/results/sectioning/one_node_explicit_directions_anchor.pl
@@ -10,7 +10,7 @@ $result_trees{'one_node_explicit_directions_anchor'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/one_subsection.pl 
b/tp/t/results/sectioning/one_subsection.pl
index 5f94c3bcee..8f7a523be3 100644
--- a/tp/t/results/sectioning/one_subsection.pl
+++ b/tp/t/results/sectioning/one_subsection.pl
@@ -10,7 +10,7 @@ $result_trees{'one_subsection'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/one_subsection_and_node.pl 
b/tp/t/results/sectioning/one_subsection_and_node.pl
index 7ec25eccb3..d68ae6401e 100644
--- a/tp/t/results/sectioning/one_subsection_and_node.pl
+++ b/tp/t/results/sectioning/one_subsection_and_node.pl
@@ -10,7 +10,7 @@ $result_trees{'one_subsection_and_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/part_before_chapter.pl 
b/tp/t/results/sectioning/part_before_chapter.pl
index bdf7856c87..e467e8ef48 100644
--- a/tp/t/results/sectioning/part_before_chapter.pl
+++ b/tp/t/results/sectioning/part_before_chapter.pl
@@ -11,7 +11,7 @@ $result_trees{'part_before_chapter'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_before_section.pl 
b/tp/t/results/sectioning/part_before_section.pl
index 98541b2c98..bc4a8497c4 100644
--- a/tp/t/results/sectioning/part_before_section.pl
+++ b/tp/t/results/sectioning/part_before_section.pl
@@ -11,7 +11,7 @@ $result_trees{'part_before_section'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_before_top.pl 
b/tp/t/results/sectioning/part_before_top.pl
index c9a9fc7d59..03380906dc 100644
--- a/tp/t/results/sectioning/part_before_top.pl
+++ b/tp/t/results/sectioning/part_before_top.pl
@@ -11,7 +11,7 @@ $result_trees{'part_before_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_chapter_after_top.pl 
b/tp/t/results/sectioning/part_chapter_after_top.pl
index f8d63b729a..610f0b3b1a 100644
--- a/tp/t/results/sectioning/part_chapter_after_top.pl
+++ b/tp/t/results/sectioning/part_chapter_after_top.pl
@@ -11,7 +11,7 @@ $result_trees{'part_chapter_after_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_chapter_appendix.pl 
b/tp/t/results/sectioning/part_chapter_appendix.pl
index 7b568fb207..66d573f804 100644
--- a/tp/t/results/sectioning/part_chapter_appendix.pl
+++ b/tp/t/results/sectioning/part_chapter_appendix.pl
@@ -17,7 +17,7 @@ $result_trees{'part_chapter_appendix'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/part_node_after_top.pl 
b/tp/t/results/sectioning/part_node_after_top.pl
index a63a484dcd..802b7f4801 100644
--- a/tp/t/results/sectioning/part_node_after_top.pl
+++ b/tp/t/results/sectioning/part_node_after_top.pl
@@ -11,7 +11,7 @@ $result_trees{'part_node_after_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_node_before_top.pl 
b/tp/t/results/sectioning/part_node_before_top.pl
index 170f64318e..89f2580aaa 100644
--- a/tp/t/results/sectioning/part_node_before_top.pl
+++ b/tp/t/results/sectioning/part_node_before_top.pl
@@ -11,7 +11,7 @@ $result_trees{'part_node_before_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_node_chapter_after_top.pl 
b/tp/t/results/sectioning/part_node_chapter_after_top.pl
index 5c63b184cd..fbbd5a4981 100644
--- a/tp/t/results/sectioning/part_node_chapter_after_top.pl
+++ b/tp/t/results/sectioning/part_node_chapter_after_top.pl
@@ -11,7 +11,7 @@ $result_trees{'part_node_chapter_after_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_node_chapter_appendix.pl 
b/tp/t/results/sectioning/part_node_chapter_appendix.pl
index 304b0dc5d8..5ed5cdd3e2 100644
--- a/tp/t/results/sectioning/part_node_chapter_appendix.pl
+++ b/tp/t/results/sectioning/part_node_chapter_appendix.pl
@@ -11,7 +11,7 @@ $result_trees{'part_node_chapter_appendix'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_node_chapter_node_appendix.pl 
b/tp/t/results/sectioning/part_node_chapter_node_appendix.pl
index 6a83f4ce12..3dbf902613 100644
--- a/tp/t/results/sectioning/part_node_chapter_node_appendix.pl
+++ b/tp/t/results/sectioning/part_node_chapter_node_appendix.pl
@@ -11,7 +11,7 @@ $result_trees{'part_node_chapter_node_appendix'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_node_node_part_appendix.pl 
b/tp/t/results/sectioning/part_node_node_part_appendix.pl
index 422fb0f2ad..3214a1dcf9 100644
--- a/tp/t/results/sectioning/part_node_node_part_appendix.pl
+++ b/tp/t/results/sectioning/part_node_node_part_appendix.pl
@@ -11,7 +11,7 @@ $result_trees{'part_node_node_part_appendix'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_node_part_appendix.pl 
b/tp/t/results/sectioning/part_node_part_appendix.pl
index 93be3b260d..29ec719008 100644
--- a/tp/t/results/sectioning/part_node_part_appendix.pl
+++ b/tp/t/results/sectioning/part_node_part_appendix.pl
@@ -11,7 +11,7 @@ $result_trees{'part_node_part_appendix'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/part_node_part_node_appendix.pl 
b/tp/t/results/sectioning/part_node_part_node_appendix.pl
index 982f5c178b..f82bea4fb1 100644
--- a/tp/t/results/sectioning/part_node_part_node_appendix.pl
+++ b/tp/t/results/sectioning/part_node_part_node_appendix.pl
@@ -11,7 +11,7 @@ $result_trees{'part_node_part_node_appendix'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/placed_things_before_element.pl 
b/tp/t/results/sectioning/placed_things_before_element.pl
index 6176b34b0d..c185f30c53 100644
--- a/tp/t/results/sectioning/placed_things_before_element.pl
+++ b/tp/t/results/sectioning/placed_things_before_element.pl
@@ -603,7 +603,7 @@ $result_trees{'placed_things_before_element'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/placed_things_before_node.pl 
b/tp/t/results/sectioning/placed_things_before_node.pl
index 16d3335b77..a586e1b075 100644
--- a/tp/t/results/sectioning/placed_things_before_node.pl
+++ b/tp/t/results/sectioning/placed_things_before_node.pl
@@ -603,7 +603,7 @@ $result_trees{'placed_things_before_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/protected_node_parentheses.pl 
b/tp/t/results/sectioning/protected_node_parentheses.pl
index f96cece851..14c42ceb58 100644
--- a/tp/t/results/sectioning/protected_node_parentheses.pl
+++ b/tp/t/results/sectioning/protected_node_parentheses.pl
@@ -17,7 +17,7 @@ $result_trees{'protected_node_parentheses'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/raiselowersections.pl 
b/tp/t/results/sectioning/raiselowersections.pl
index b71e237151..a5a3f9edfe 100644
--- a/tp/t/results/sectioning/raiselowersections.pl
+++ b/tp/t/results/sectioning/raiselowersections.pl
@@ -45,7 +45,7 @@ $result_trees{'raiselowersections'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/rec_nodes.pl 
b/tp/t/results/sectioning/rec_nodes.pl
index 37acc950f0..50b48cb213 100644
--- a/tp/t/results/sectioning/rec_nodes.pl
+++ b/tp/t/results/sectioning/rec_nodes.pl
@@ -10,7 +10,7 @@ $result_trees{'rec_nodes'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/ref_to_top.pl 
b/tp/t/results/sectioning/ref_to_top.pl
index 2fabe63027..d0f8f659ec 100644
--- a/tp/t/results/sectioning/ref_to_top.pl
+++ b/tp/t/results/sectioning/ref_to_top.pl
@@ -17,7 +17,7 @@ $result_trees{'ref_to_top'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/ref_to_unknown_node.pl 
b/tp/t/results/sectioning/ref_to_unknown_node.pl
index c22f17ce37..173a901ce9 100644
--- a/tp/t/results/sectioning/ref_to_unknown_node.pl
+++ b/tp/t/results/sectioning/ref_to_unknown_node.pl
@@ -51,7 +51,7 @@ $result_trees{'ref_to_unknown_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/sectioning/section_before_after_top_node.pl 
b/tp/t/results/sectioning/section_before_after_top_node.pl
index 63f1658673..f46a8ec1ad 100644
--- a/tp/t/results/sectioning/section_before_after_top_node.pl
+++ b/tp/t/results/sectioning/section_before_after_top_node.pl
@@ -46,7 +46,7 @@ $result_trees{'section_before_after_top_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_before_after_top_node_last_node.pl 
b/tp/t/results/sectioning/section_before_after_top_node_last_node.pl
index dfc64bf5ed..c277f2df23 100644
--- a/tp/t/results/sectioning/section_before_after_top_node_last_node.pl
+++ b/tp/t/results/sectioning/section_before_after_top_node_last_node.pl
@@ -46,7 +46,7 @@ $result_trees{'section_before_after_top_node_last_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_before_chapter.pl 
b/tp/t/results/sectioning/section_before_chapter.pl
index b0e6bbf0c8..0391b65b39 100644
--- a/tp/t/results/sectioning/section_before_chapter.pl
+++ b/tp/t/results/sectioning/section_before_chapter.pl
@@ -10,7 +10,7 @@ $result_trees{'section_before_chapter'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_before_part.pl 
b/tp/t/results/sectioning/section_before_part.pl
index 08641c4fe1..2dd4ac025d 100644
--- a/tp/t/results/sectioning/section_before_part.pl
+++ b/tp/t/results/sectioning/section_before_part.pl
@@ -10,7 +10,7 @@ $result_trees{'section_before_part'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_before_top.pl 
b/tp/t/results/sectioning/section_before_top.pl
index b7e1e02672..b19dda65ce 100644
--- a/tp/t/results/sectioning/section_before_top.pl
+++ b/tp/t/results/sectioning/section_before_top.pl
@@ -10,7 +10,7 @@ $result_trees{'section_before_top'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_before_top_no_node.pl 
b/tp/t/results/sectioning/section_before_top_no_node.pl
index b502d52b82..8e270cff4e 100644
--- a/tp/t/results/sectioning/section_before_top_no_node.pl
+++ b/tp/t/results/sectioning/section_before_top_no_node.pl
@@ -10,7 +10,7 @@ $result_trees{'section_before_top_no_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_below_unnumbered.pl 
b/tp/t/results/sectioning/section_below_unnumbered.pl
index 68a37cd271..67a9913c84 100644
--- a/tp/t/results/sectioning/section_below_unnumbered.pl
+++ b/tp/t/results/sectioning/section_below_unnumbered.pl
@@ -40,7 +40,7 @@ $result_trees{'section_below_unnumbered'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_below_unnumbered_no_top.pl 
b/tp/t/results/sectioning/section_below_unnumbered_no_top.pl
index aa54e5b64e..dbd841ac8a 100644
--- a/tp/t/results/sectioning/section_below_unnumbered_no_top.pl
+++ b/tp/t/results/sectioning/section_below_unnumbered_no_top.pl
@@ -10,7 +10,7 @@ $result_trees{'section_below_unnumbered_no_top'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_chapter_before_top.pl 
b/tp/t/results/sectioning/section_chapter_before_top.pl
index 03e858e158..39e66a1a21 100644
--- a/tp/t/results/sectioning/section_chapter_before_top.pl
+++ b/tp/t/results/sectioning/section_chapter_before_top.pl
@@ -10,7 +10,7 @@ $result_trees{'section_chapter_before_top'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_chapter_before_top_nodes.pl 
b/tp/t/results/sectioning/section_chapter_before_top_nodes.pl
index 05da0c6504..8f4760ee65 100644
--- a/tp/t/results/sectioning/section_chapter_before_top_nodes.pl
+++ b/tp/t/results/sectioning/section_chapter_before_top_nodes.pl
@@ -46,7 +46,7 @@ $result_trees{'section_chapter_before_top_nodes'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_in_unnumbered_info.pl 
b/tp/t/results/sectioning/section_in_unnumbered_info.pl
index 73449becaf..5291e26de3 100644
--- a/tp/t/results/sectioning/section_in_unnumbered_info.pl
+++ b/tp/t/results/sectioning/section_in_unnumbered_info.pl
@@ -17,7 +17,7 @@ $result_trees{'section_in_unnumbered_info'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_in_unnumbered_plaintext.pl 
b/tp/t/results/sectioning/section_in_unnumbered_plaintext.pl
index 40917a7b1d..7dc5dd1b3b 100644
--- a/tp/t/results/sectioning/section_in_unnumbered_plaintext.pl
+++ b/tp/t/results/sectioning/section_in_unnumbered_plaintext.pl
@@ -17,7 +17,7 @@ $result_trees{'section_in_unnumbered_plaintext'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/section_node_before_part.pl 
b/tp/t/results/sectioning/section_node_before_part.pl
index 60611d1669..fde3430c6f 100644
--- a/tp/t/results/sectioning/section_node_before_part.pl
+++ b/tp/t/results/sectioning/section_node_before_part.pl
@@ -17,7 +17,7 @@ $result_trees{'section_node_before_part'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/sectioning_part_appendix.pl 
b/tp/t/results/sectioning/sectioning_part_appendix.pl
index 365f4d9999..270cc31b27 100644
--- a/tp/t/results/sectioning/sectioning_part_appendix.pl
+++ b/tp/t/results/sectioning/sectioning_part_appendix.pl
@@ -11,7 +11,7 @@ $result_trees{'sectioning_part_appendix'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/sectioning_part_appendix_no_top.pl 
b/tp/t/results/sectioning/sectioning_part_appendix_no_top.pl
index 1ee2cb28fa..2e8064ac0e 100644
--- a/tp/t/results/sectioning/sectioning_part_appendix_no_top.pl
+++ b/tp/t/results/sectioning/sectioning_part_appendix_no_top.pl
@@ -11,7 +11,7 @@ $result_trees{'sectioning_part_appendix_no_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/sections.pl 
b/tp/t/results/sectioning/sections.pl
index 2add09c235..a504aa7a91 100644
--- a/tp/t/results/sectioning/sections.pl
+++ b/tp/t/results/sectioning/sections.pl
@@ -10,7 +10,7 @@ $result_trees{'sections'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/sections_test.pl 
b/tp/t/results/sectioning/sections_test.pl
index c073762a44..20832db2bd 100644
--- a/tp/t/results/sectioning/sections_test.pl
+++ b/tp/t/results/sectioning/sections_test.pl
@@ -10,7 +10,7 @@ $result_trees{'sections_test'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/sections_test_no_use_nodes.pl 
b/tp/t/results/sectioning/sections_test_no_use_nodes.pl
index 2e8c5c6d4e..fac1f7025e 100644
--- a/tp/t/results/sectioning/sections_test_no_use_nodes.pl
+++ b/tp/t/results/sectioning/sections_test_no_use_nodes.pl
@@ -10,7 +10,7 @@ $result_trees{'sections_test_no_use_nodes'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git 
a/tp/t/results/sectioning/sections_test_no_use_nodes_use_node_directions.pl 
b/tp/t/results/sectioning/sections_test_no_use_nodes_use_node_directions.pl
index f08075a0f1..f6434c6e9f 100644
--- a/tp/t/results/sectioning/sections_test_no_use_nodes_use_node_directions.pl
+++ b/tp/t/results/sectioning/sections_test_no_use_nodes_use_node_directions.pl
@@ -10,7 +10,7 @@ 
$result_trees{'sections_test_no_use_nodes_use_node_directions'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/semi_auto.pl 
b/tp/t/results/sectioning/semi_auto.pl
index 7c716184bd..6d5a2cc851 100644
--- a/tp/t/results/sectioning/semi_auto.pl
+++ b/tp/t/results/sectioning/semi_auto.pl
@@ -10,7 +10,7 @@ $result_trees{'semi_auto'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/setfilename_on_top_and_after_node.pl 
b/tp/t/results/sectioning/setfilename_on_top_and_after_node.pl
index 01f151574f..124547572d 100644
--- a/tp/t/results/sectioning/setfilename_on_top_and_after_node.pl
+++ b/tp/t/results/sectioning/setfilename_on_top_and_after_node.pl
@@ -10,7 +10,7 @@ $result_trees{'setfilename_on_top_and_after_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/shortcontents.pl 
b/tp/t/results/sectioning/shortcontents.pl
index 4f67df32ef..9e8212d2db 100644
--- a/tp/t/results/sectioning/shortcontents.pl
+++ b/tp/t/results/sectioning/shortcontents.pl
@@ -10,7 +10,7 @@ $result_trees{'shortcontents'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/space_in_node.pl 
b/tp/t/results/sectioning/space_in_node.pl
index 8536dd1ddf..2835a13e19 100644
--- a/tp/t/results/sectioning/space_in_node.pl
+++ b/tp/t/results/sectioning/space_in_node.pl
@@ -17,7 +17,7 @@ $result_trees{'space_in_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/top_chapter_sections.pl 
b/tp/t/results/sectioning/top_chapter_sections.pl
index f7c59453fc..923dd849ac 100644
--- a/tp/t/results/sectioning/top_chapter_sections.pl
+++ b/tp/t/results/sectioning/top_chapter_sections.pl
@@ -11,7 +11,7 @@ $result_trees{'top_chapter_sections'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/top_no_argument_and_content.pl 
b/tp/t/results/sectioning/top_no_argument_and_content.pl
index baba681d60..acea8ac9a1 100644
--- a/tp/t/results/sectioning/top_no_argument_and_content.pl
+++ b/tp/t/results/sectioning/top_no_argument_and_content.pl
@@ -10,7 +10,7 @@ $result_trees{'top_no_argument_and_content'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/top_no_argument_and_node.pl 
b/tp/t/results/sectioning/top_no_argument_and_node.pl
index 3bcd01f88c..59c61d0de3 100644
--- a/tp/t/results/sectioning/top_no_argument_and_node.pl
+++ b/tp/t/results/sectioning/top_no_argument_and_node.pl
@@ -10,7 +10,7 @@ $result_trees{'top_no_argument_and_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/top_no_argument_and_top_node.pl 
b/tp/t/results/sectioning/top_no_argument_and_top_node.pl
index 98df049066..91744cad92 100644
--- a/tp/t/results/sectioning/top_no_argument_and_top_node.pl
+++ b/tp/t/results/sectioning/top_no_argument_and_top_node.pl
@@ -10,7 +10,7 @@ $result_trees{'top_no_argument_and_top_node'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/top_node_no_menu_direction.pl 
b/tp/t/results/sectioning/top_node_no_menu_direction.pl
index 4da52fa75c..5a27922cc0 100644
--- a/tp/t/results/sectioning/top_node_no_menu_direction.pl
+++ b/tp/t/results/sectioning/top_node_no_menu_direction.pl
@@ -10,7 +10,7 @@ $result_trees{'top_node_no_menu_direction'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/top_node_part_top.pl 
b/tp/t/results/sectioning/top_node_part_top.pl
index 841cc06a97..fad855bf0e 100644
--- a/tp/t/results/sectioning/top_node_part_top.pl
+++ b/tp/t/results/sectioning/top_node_part_top.pl
@@ -11,7 +11,7 @@ $result_trees{'top_node_part_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/top_node_up_url.pl 
b/tp/t/results/sectioning/top_node_up_url.pl
index a2d1821443..0f0c320e8e 100644
--- a/tp/t/results/sectioning/top_node_up_url.pl
+++ b/tp/t/results/sectioning/top_node_up_url.pl
@@ -11,7 +11,7 @@ $result_trees{'top_node_up_url'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/top_part_chapter.pl 
b/tp/t/results/sectioning/top_part_chapter.pl
index 38c5af2b3f..92e5a07d84 100644
--- a/tp/t/results/sectioning/top_part_chapter.pl
+++ b/tp/t/results/sectioning/top_part_chapter.pl
@@ -11,7 +11,7 @@ $result_trees{'top_part_chapter'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/top_without_node_nodes.pl 
b/tp/t/results/sectioning/top_without_node_nodes.pl
index 63d03b77e7..d7ba89d2ea 100644
--- a/tp/t/results/sectioning/top_without_node_nodes.pl
+++ b/tp/t/results/sectioning/top_without_node_nodes.pl
@@ -11,7 +11,7 @@ $result_trees{'top_without_node_nodes'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/top_without_node_sections.pl 
b/tp/t/results/sectioning/top_without_node_sections.pl
index 76dfd4d1b2..6e6b57d5d2 100644
--- a/tp/t/results/sectioning/top_without_node_sections.pl
+++ b/tp/t/results/sectioning/top_without_node_sections.pl
@@ -11,7 +11,7 @@ $result_trees{'top_without_node_sections'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/transliterated_split_equivalent_nodes.pl 
b/tp/t/results/sectioning/transliterated_split_equivalent_nodes.pl
index d745668104..7fa10b81f0 100644
--- a/tp/t/results/sectioning/transliterated_split_equivalent_nodes.pl
+++ b/tp/t/results/sectioning/transliterated_split_equivalent_nodes.pl
@@ -11,7 +11,7 @@ $result_trees{'transliterated_split_equivalent_nodes'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/two_nodes_at_the_end.pl 
b/tp/t/results/sectioning/two_nodes_at_the_end.pl
index 2349ee7f91..04f3035d77 100644
--- a/tp/t/results/sectioning/two_nodes_at_the_end.pl
+++ b/tp/t/results/sectioning/two_nodes_at_the_end.pl
@@ -11,7 +11,7 @@ $result_trees{'two_nodes_at_the_end'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/two_nodes_between_chapters.pl 
b/tp/t/results/sectioning/two_nodes_between_chapters.pl
index 3b6bf09244..3446d21cc8 100644
--- a/tp/t/results/sectioning/two_nodes_between_chapters.pl
+++ b/tp/t/results/sectioning/two_nodes_between_chapters.pl
@@ -11,7 +11,7 @@ $result_trees{'two_nodes_between_chapters'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/two_unnumbered_no_argument.pl 
b/tp/t/results/sectioning/two_unnumbered_no_argument.pl
index e975ac5841..cd505a5b3a 100644
--- a/tp/t/results/sectioning/two_unnumbered_no_argument.pl
+++ b/tp/t/results/sectioning/two_unnumbered_no_argument.pl
@@ -10,7 +10,7 @@ $result_trees{'two_unnumbered_no_argument'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/unknown_node_in_menu.pl 
b/tp/t/results/sectioning/unknown_node_in_menu.pl
index bf41141735..e2ae95ac84 100644
--- a/tp/t/results/sectioning/unknown_node_in_menu.pl
+++ b/tp/t/results/sectioning/unknown_node_in_menu.pl
@@ -10,7 +10,7 @@ $result_trees{'unknown_node_in_menu'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/unnumbered_before_node_top_top.pl 
b/tp/t/results/sectioning/unnumbered_before_node_top_top.pl
index dcbd5f297e..3a7048c54a 100644
--- a/tp/t/results/sectioning/unnumbered_before_node_top_top.pl
+++ b/tp/t/results/sectioning/unnumbered_before_node_top_top.pl
@@ -11,7 +11,7 @@ $result_trees{'unnumbered_before_node_top_top'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/unnumbered_before_top.pl 
b/tp/t/results/sectioning/unnumbered_before_top.pl
index 8f3b09fbdf..3ec7b09342 100644
--- a/tp/t/results/sectioning/unnumbered_before_top.pl
+++ b/tp/t/results/sectioning/unnumbered_before_top.pl
@@ -10,7 +10,7 @@ $result_trees{'unnumbered_before_top'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/unnumbered_before_top_node.pl 
b/tp/t/results/sectioning/unnumbered_before_top_node.pl
index cfca7c2bd2..47d8efbc45 100644
--- a/tp/t/results/sectioning/unnumbered_before_top_node.pl
+++ b/tp/t/results/sectioning/unnumbered_before_top_node.pl
@@ -11,7 +11,7 @@ $result_trees{'unnumbered_before_top_node'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/unnumbered_no_argument.pl 
b/tp/t/results/sectioning/unnumbered_no_argument.pl
index 62d4bd2a07..047876a3cc 100644
--- a/tp/t/results/sectioning/unnumbered_no_argument.pl
+++ b/tp/t/results/sectioning/unnumbered_no_argument.pl
@@ -10,7 +10,7 @@ $result_trees{'unnumbered_no_argument'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/sectioning/unnumbered_top_without_node_nodes.pl 
b/tp/t/results/sectioning/unnumbered_top_without_node_nodes.pl
index 85df109fd8..7f5b7f291e 100644
--- a/tp/t/results/sectioning/unnumbered_top_without_node_nodes.pl
+++ b/tp/t/results/sectioning/unnumbered_top_without_node_nodes.pl
@@ -11,7 +11,7 @@ $result_trees{'unnumbered_top_without_node_nodes'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/sectioning/unnumbered_top_without_node_sections.pl 
b/tp/t/results/sectioning/unnumbered_top_without_node_sections.pl
index 9ea6ea75e5..102a8016f4 100644
--- a/tp/t/results/sectioning/unnumbered_top_without_node_sections.pl
+++ b/tp/t/results/sectioning/unnumbered_top_without_node_sections.pl
@@ -11,7 +11,7 @@ $result_trees{'unnumbered_top_without_node_sections'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/value/bad_syntax.pl b/tp/t/results/value/bad_syntax.pl
index af749e4d1f..54516a7bda 100644
--- a/tp/t/results/value/bad_syntax.pl
+++ b/tp/t/results/value/bad_syntax.pl
@@ -129,7 +129,7 @@ $result_trees{'bad_syntax'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/comment_on_set_line.pl 
b/tp/t/results/value/comment_on_set_line.pl
index 6479137f44..d1e40756ee 100644
--- a/tp/t/results/value/comment_on_set_line.pl
+++ b/tp/t/results/value/comment_on_set_line.pl
@@ -124,7 +124,7 @@ $result_trees{'comment_on_set_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/empty_set.pl b/tp/t/results/value/empty_set.pl
index bd3a6d3efa..bcbcc83e2f 100644
--- a/tp/t/results/value/empty_set.pl
+++ b/tp/t/results/value/empty_set.pl
@@ -52,7 +52,7 @@ $result_trees{'empty_set'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/empty_value_in_line.pl 
b/tp/t/results/value/empty_value_in_line.pl
index 6a2d478c99..402973abbf 100644
--- a/tp/t/results/value/empty_value_in_line.pl
+++ b/tp/t/results/value/empty_value_in_line.pl
@@ -69,7 +69,7 @@ $result_trees{'empty_value_in_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/ignored_value_definition.pl 
b/tp/t/results/value/ignored_value_definition.pl
index 9d33b45c66..74b557b8db 100644
--- a/tp/t/results/value/ignored_value_definition.pl
+++ b/tp/t/results/value/ignored_value_definition.pl
@@ -99,7 +99,7 @@ $result_trees{'ignored_value_definition'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/not_only_characters.pl 
b/tp/t/results/value/not_only_characters.pl
index 8ed1392e98..c10574c5cc 100644
--- a/tp/t/results/value/not_only_characters.pl
+++ b/tp/t/results/value/not_only_characters.pl
@@ -52,7 +52,7 @@ $result_trees{'not_only_characters'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/set_flag_command_equivalent.pl 
b/tp/t/results/value/set_flag_command_equivalent.pl
index ed8532c49c..c6ea548261 100644
--- a/tp/t/results/value/set_flag_command_equivalent.pl
+++ b/tp/t/results/value/set_flag_command_equivalent.pl
@@ -100,7 +100,7 @@ $result_trees{'set_flag_command_equivalent'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/set_form_feed.pl 
b/tp/t/results/value/set_form_feed.pl
index 44ce64622a..486f45f575 100644
--- a/tp/t/results/value/set_form_feed.pl
+++ b/tp/t/results/value/set_form_feed.pl
@@ -122,7 +122,7 @@ $result_trees{'set_form_feed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/set_in_item_missing_line.pl 
b/tp/t/results/value/set_in_item_missing_line.pl
index 9dc3e21a28..cb7b6e1a24 100644
--- a/tp/t/results/value/set_in_item_missing_line.pl
+++ b/tp/t/results/value/set_in_item_missing_line.pl
@@ -328,7 +328,7 @@ $result_trees{'set_in_item_missing_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/set_on_item_line.pl 
b/tp/t/results/value/set_on_item_line.pl
index 821b718dfa..46859f60f9 100644
--- a/tp/t/results/value/set_on_item_line.pl
+++ b/tp/t/results/value/set_on_item_line.pl
@@ -579,7 +579,7 @@ $result_trees{'set_on_item_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/simple.pl b/tp/t/results/value/simple.pl
index 14541e787f..95a48d0358 100644
--- a/tp/t/results/value/simple.pl
+++ b/tp/t/results/value/simple.pl
@@ -78,7 +78,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/spaces_before_value.pl 
b/tp/t/results/value/spaces_before_value.pl
index 6e1c111548..27fd75d8e1 100644
--- a/tp/t/results/value/spaces_before_value.pl
+++ b/tp/t/results/value/spaces_before_value.pl
@@ -52,7 +52,7 @@ $result_trees{'spaces_before_value'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/value_after_accent.pl 
b/tp/t/results/value/value_after_accent.pl
index f202a4bf65..41c949e9b4 100644
--- a/tp/t/results/value/value_after_accent.pl
+++ b/tp/t/results/value/value_after_accent.pl
@@ -73,7 +73,7 @@ $result_trees{'value_after_accent'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/value_in_index_commands.pl 
b/tp/t/results/value/value_in_index_commands.pl
index 6bfb3517ea..6356a4312f 100644
--- a/tp/t/results/value/value_in_index_commands.pl
+++ b/tp/t/results/value/value_in_index_commands.pl
@@ -369,7 +369,7 @@ $result_trees{'value_in_index_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/value/value_in_invalid_documentencoding.pl 
b/tp/t/results/value/value_in_invalid_documentencoding.pl
index 35ec972133..0f0ce8b001 100644
--- a/tp/t/results/value/value_in_invalid_documentencoding.pl
+++ b/tp/t/results/value/value_in_invalid_documentencoding.pl
@@ -64,7 +64,7 @@ $result_trees{'value_in_invalid_documentencoding'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value/value_in_misc_commands.pl 
b/tp/t/results/value/value_in_misc_commands.pl
index c691559446..80b3b3c871 100644
--- a/tp/t/results/value/value_in_misc_commands.pl
+++ b/tp/t/results/value/value_in_misc_commands.pl
@@ -41,7 +41,7 @@ $result_trees{'value_in_misc_commands'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/value/value_in_node.pl 
b/tp/t/results/value/value_in_node.pl
index 08248c6b2e..c1b713a3db 100644
--- a/tp/t/results/value/value_in_node.pl
+++ b/tp/t/results/value/value_in_node.pl
@@ -41,7 +41,7 @@ $result_trees{'value_in_node'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/value/value_node_directions.pl 
b/tp/t/results/value/value_node_directions.pl
index 8c9cd0de0a..2aa8035c92 100644
--- a/tp/t/results/value/value_node_directions.pl
+++ b/tp/t/results/value/value_node_directions.pl
@@ -41,7 +41,7 @@ $result_trees{'value_node_directions'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/value/value_zero.pl b/tp/t/results/value/value_zero.pl
index 3a23484f68..54bd43fd0b 100644
--- a/tp/t/results/value/value_zero.pl
+++ b/tp/t/results/value/value_zero.pl
@@ -50,7 +50,7 @@ $result_trees{'value_zero'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value_and_macro/comma_value_in_macro_arg.pl 
b/tp/t/results/value_and_macro/comma_value_in_macro_arg.pl
index 43c1602710..652e70bbd2 100644
--- a/tp/t/results/value_and_macro/comma_value_in_macro_arg.pl
+++ b/tp/t/results/value_and_macro/comma_value_in_macro_arg.pl
@@ -154,7 +154,7 @@ $result_trees{'comma_value_in_macro_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value_and_macro/macro_in_value.pl 
b/tp/t/results/value_and_macro/macro_in_value.pl
index e07d18ea3c..9088583ad5 100644
--- a/tp/t/results/value_and_macro/macro_in_value.pl
+++ b/tp/t/results/value_and_macro/macro_in_value.pl
@@ -126,7 +126,7 @@ $result_trees{'macro_in_value'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value_and_macro/value_in_macro_body.pl 
b/tp/t/results/value_and_macro/value_in_macro_body.pl
index 4df318b55b..f538569b26 100644
--- a/tp/t/results/value_and_macro/value_in_macro_body.pl
+++ b/tp/t/results/value_and_macro/value_in_macro_body.pl
@@ -128,7 +128,7 @@ $result_trees{'value_in_macro_body'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/value_and_macro/value_in_macro_formal_arg.pl 
b/tp/t/results/value_and_macro/value_in_macro_formal_arg.pl
index 0c7babb1a3..528e3042db 100644
--- a/tp/t/results/value_and_macro/value_in_macro_formal_arg.pl
+++ b/tp/t/results/value_and_macro/value_in_macro_formal_arg.pl
@@ -108,7 +108,7 @@ $result_trees{'value_in_macro_formal_arg'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/comments.pl b/tp/t/results/verb/comments.pl
index c56cc71f6f..f37eecc244 100644
--- a/tp/t/results/verb/comments.pl
+++ b/tp/t/results/verb/comments.pl
@@ -129,7 +129,7 @@ $result_trees{'comments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/end_of_line.pl b/tp/t/results/verb/end_of_line.pl
index 3eb5174de3..9247d641a3 100644
--- a/tp/t/results/verb/end_of_line.pl
+++ b/tp/t/results/verb/end_of_line.pl
@@ -69,7 +69,7 @@ $result_trees{'end_of_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/multiline.pl b/tp/t/results/verb/multiline.pl
index f88a6b202d..8bf829d06a 100644
--- a/tp/t/results/verb/multiline.pl
+++ b/tp/t/results/verb/multiline.pl
@@ -60,7 +60,7 @@ $result_trees{'multiline'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/nested.pl b/tp/t/results/verb/nested.pl
index 3452539f62..556a1b7af0 100644
--- a/tp/t/results/verb/nested.pl
+++ b/tp/t/results/verb/nested.pl
@@ -69,7 +69,7 @@ $result_trees{'nested'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/simple.pl b/tp/t/results/verb/simple.pl
index ff701c4308..4d989ab62a 100644
--- a/tp/t/results/verb/simple.pl
+++ b/tp/t/results/verb/simple.pl
@@ -43,7 +43,7 @@ $result_trees{'simple'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/verb_and_char_end_of_line_not_closed.pl 
b/tp/t/results/verb/verb_and_char_end_of_line_not_closed.pl
index 49b5d69921..8970d8fe32 100644
--- a/tp/t/results/verb/verb_and_char_end_of_line_not_closed.pl
+++ b/tp/t/results/verb/verb_and_char_end_of_line_not_closed.pl
@@ -60,7 +60,7 @@ $result_trees{'verb_and_char_end_of_line_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/verb_at_end_of_line_not_closed.pl 
b/tp/t/results/verb/verb_at_end_of_line_not_closed.pl
index 7ea1e7ae5a..4c4e75580f 100644
--- a/tp/t/results/verb/verb_at_end_of_line_not_closed.pl
+++ b/tp/t/results/verb/verb_at_end_of_line_not_closed.pl
@@ -54,7 +54,7 @@ $result_trees{'verb_at_end_of_line_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/verb_not_closed.pl 
b/tp/t/results/verb/verb_not_closed.pl
index 19a163f0e3..1759858af9 100644
--- a/tp/t/results/verb/verb_not_closed.pl
+++ b/tp/t/results/verb/verb_not_closed.pl
@@ -43,7 +43,7 @@ $result_trees{'verb_not_closed'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/verb/verb_not_closed_with_char.pl 
b/tp/t/results/verb/verb_not_closed_with_char.pl
index 8554452f88..9e3ab9933f 100644
--- a/tp/t/results/verb/verb_not_closed_with_char.pl
+++ b/tp/t/results/verb/verb_not_closed_with_char.pl
@@ -67,7 +67,7 @@ $result_trees{'verb_not_closed_with_char'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xml_tests/brace_commands_spaces_end_of_lines.pl 
b/tp/t/results/xml_tests/brace_commands_spaces_end_of_lines.pl
index 31dd687a1b..a568773c7f 100644
--- a/tp/t/results/xml_tests/brace_commands_spaces_end_of_lines.pl
+++ b/tp/t/results/xml_tests/brace_commands_spaces_end_of_lines.pl
@@ -285,7 +285,7 @@ $result_trees{'brace_commands_spaces_end_of_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xml_tests/commands_and_spaces.pl 
b/tp/t/results/xml_tests/commands_and_spaces.pl
index 75b6822415..32b10b88b5 100644
--- a/tp/t/results/xml_tests/commands_and_spaces.pl
+++ b/tp/t/results/xml_tests/commands_and_spaces.pl
@@ -129,7 +129,7 @@ $result_trees{'commands_and_spaces'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/xml_tests/comments_end_lines.pl 
b/tp/t/results/xml_tests/comments_end_lines.pl
index 73fa5a4289..a7e336ad38 100644
--- a/tp/t/results/xml_tests/comments_end_lines.pl
+++ b/tp/t/results/xml_tests/comments_end_lines.pl
@@ -1052,7 +1052,7 @@ $result_trees{'comments_end_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xml_tests/comments_on_block_command_lines.pl 
b/tp/t/results/xml_tests/comments_on_block_command_lines.pl
index a7e12f7b19..923bb747ad 100644
--- a/tp/t/results/xml_tests/comments_on_block_command_lines.pl
+++ b/tp/t/results/xml_tests/comments_on_block_command_lines.pl
@@ -2317,7 +2317,7 @@ $result_trees{'comments_on_block_command_lines'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xml_tests/comments_on_misc_command_line.pl 
b/tp/t/results/xml_tests/comments_on_misc_command_line.pl
index 8799ddd40e..9b4a009537 100644
--- a/tp/t/results/xml_tests/comments_on_misc_command_line.pl
+++ b/tp/t/results/xml_tests/comments_on_misc_command_line.pl
@@ -341,7 +341,7 @@ $result_trees{'comments_on_misc_command_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xml_tests/image_inline_or_not.pl 
b/tp/t/results/xml_tests/image_inline_or_not.pl
index ebcf325395..eb88185d1b 100644
--- a/tp/t/results/xml_tests/image_inline_or_not.pl
+++ b/tp/t/results/xml_tests/image_inline_or_not.pl
@@ -93,7 +93,7 @@ $result_trees{'image_inline_or_not'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/xml_tests/lone_bye.pl 
b/tp/t/results/xml_tests/lone_bye.pl
index 49bc6c560c..40a929067e 100644
--- a/tp/t/results/xml_tests/lone_bye.pl
+++ b/tp/t/results/xml_tests/lone_bye.pl
@@ -10,7 +10,7 @@ $result_trees{'lone_bye'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/xml_tests/macro_and_args.pl 
b/tp/t/results/xml_tests/macro_and_args.pl
index c3f3b2681d..654e268e15 100644
--- a/tp/t/results/xml_tests/macro_and_args.pl
+++ b/tp/t/results/xml_tests/macro_and_args.pl
@@ -97,7 +97,7 @@ $result_trees{'macro_and_args'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xml_tests/node_and_bye.pl 
b/tp/t/results/xml_tests/node_and_bye.pl
index ac602d2545..3e2dd742c9 100644
--- a/tp/t/results/xml_tests/node_and_bye.pl
+++ b/tp/t/results/xml_tests/node_and_bye.pl
@@ -11,7 +11,7 @@ $result_trees{'node_and_bye'} = [
       {
         'contents' => [],
         'parent' => {},
-        'type' => 'text_root'
+        'type' => 'before_node_section'
       },
       {
         'args' => [
diff --git a/tp/t/results/xml_tests/node_no_section.pl 
b/tp/t/results/xml_tests/node_no_section.pl
index a40b2875ca..ce275b7854 100644
--- a/tp/t/results/xml_tests/node_no_section.pl
+++ b/tp/t/results/xml_tests/node_no_section.pl
@@ -10,7 +10,7 @@ $result_trees{'node_no_section'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/xml_tests/raw.pl b/tp/t/results/xml_tests/raw.pl
index a18585f356..5d5ea4f18f 100644
--- a/tp/t/results/xml_tests/raw.pl
+++ b/tp/t/results/xml_tests/raw.pl
@@ -156,7 +156,7 @@ $result_trees{'raw'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xml_tests/raw_and_comments.pl 
b/tp/t/results/xml_tests/raw_and_comments.pl
index 5bec71ae0c..e0536c672f 100644
--- a/tp/t/results/xml_tests/raw_and_comments.pl
+++ b/tp/t/results/xml_tests/raw_and_comments.pl
@@ -228,7 +228,7 @@ $result_trees{'raw_and_comments'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xml_tests/spaces_info_lost.pl 
b/tp/t/results/xml_tests/spaces_info_lost.pl
index 9251fb1783..d4ef13b319 100644
--- a/tp/t/results/xml_tests/spaces_info_lost.pl
+++ b/tp/t/results/xml_tests/spaces_info_lost.pl
@@ -122,7 +122,7 @@ $result_trees{'spaces_info_lost'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/accent_on_table_line.pl 
b/tp/t/results/xtable/accent_on_table_line.pl
index acc8b542c0..7e8944ed87 100644
--- a/tp/t/results/xtable/accent_on_table_line.pl
+++ b/tp/t/results/xtable/accent_on_table_line.pl
@@ -188,7 +188,7 @@ $result_trees{'accent_on_table_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/block_commands_in_table.pl 
b/tp/t/results/xtable/block_commands_in_table.pl
index 18c4b4e018..b8a9b82b47 100644
--- a/tp/t/results/xtable/block_commands_in_table.pl
+++ b/tp/t/results/xtable/block_commands_in_table.pl
@@ -10,7 +10,7 @@ $result_trees{'block_commands_in_table'} = {
     {
       'contents' => [],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/xtable/comment_and_itemx_before_item.pl 
b/tp/t/results/xtable/comment_and_itemx_before_item.pl
index 0f3c447c8d..0ac04b810e 100644
--- a/tp/t/results/xtable/comment_and_itemx_before_item.pl
+++ b/tp/t/results/xtable/comment_and_itemx_before_item.pl
@@ -144,7 +144,7 @@ $result_trees{'comment_and_itemx_before_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/definfoenclose_on_table_line.pl 
b/tp/t/results/xtable/definfoenclose_on_table_line.pl
index 0c2b207e5e..80548e5703 100644
--- a/tp/t/results/xtable/definfoenclose_on_table_line.pl
+++ b/tp/t/results/xtable/definfoenclose_on_table_line.pl
@@ -209,7 +209,7 @@ $result_trees{'definfoenclose_on_table_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/empty_item_itemx.pl 
b/tp/t/results/xtable/empty_item_itemx.pl
index ce304d8c70..1aa43a18cb 100644
--- a/tp/t/results/xtable/empty_item_itemx.pl
+++ b/tp/t/results/xtable/empty_item_itemx.pl
@@ -308,7 +308,7 @@ $result_trees{'empty_item_itemx'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/headitem_in_table.pl 
b/tp/t/results/xtable/headitem_in_table.pl
index 225e9ed74f..ff819b141c 100644
--- a/tp/t/results/xtable/headitem_in_table.pl
+++ b/tp/t/results/xtable/headitem_in_table.pl
@@ -165,7 +165,7 @@ $result_trees{'headitem_in_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/inter_item_commands_in_table.pl 
b/tp/t/results/xtable/inter_item_commands_in_table.pl
index 847ea3f461..63f92ee0a7 100644
--- a/tp/t/results/xtable/inter_item_commands_in_table.pl
+++ b/tp/t/results/xtable/inter_item_commands_in_table.pl
@@ -46,7 +46,7 @@ $result_trees{'inter_item_commands_in_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     },
     {
       'args' => [
diff --git a/tp/t/results/xtable/inter_item_commands_in_table_in_example.pl 
b/tp/t/results/xtable/inter_item_commands_in_table_in_example.pl
index 4e10c55c6f..8cd6c78358 100644
--- a/tp/t/results/xtable/inter_item_commands_in_table_in_example.pl
+++ b/tp/t/results/xtable/inter_item_commands_in_table_in_example.pl
@@ -427,7 +427,7 @@ $result_trees{'inter_item_commands_in_table_in_example'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/invalid_command_and_brace_in_table.pl 
b/tp/t/results/xtable/invalid_command_and_brace_in_table.pl
index 194c8937a8..52afc22887 100644
--- a/tp/t/results/xtable/invalid_command_and_brace_in_table.pl
+++ b/tp/t/results/xtable/invalid_command_and_brace_in_table.pl
@@ -111,7 +111,7 @@ $result_trees{'invalid_command_and_brace_in_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/itemx_before_item.pl 
b/tp/t/results/xtable/itemx_before_item.pl
index 083fa0e27a..9a0b7caa5d 100644
--- a/tp/t/results/xtable/itemx_before_item.pl
+++ b/tp/t/results/xtable/itemx_before_item.pl
@@ -120,7 +120,7 @@ $result_trees{'itemx_before_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/lone_end_table.pl 
b/tp/t/results/xtable/lone_end_table.pl
index 6acc1fa3ff..f9a09c0a37 100644
--- a/tp/t/results/xtable/lone_end_table.pl
+++ b/tp/t/results/xtable/lone_end_table.pl
@@ -22,7 +22,7 @@ $result_trees{'lone_end_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/long_item.pl b/tp/t/results/xtable/long_item.pl
index 59101542c2..aae8592117 100644
--- a/tp/t/results/xtable/long_item.pl
+++ b/tp/t/results/xtable/long_item.pl
@@ -171,7 +171,7 @@ $result_trees{'long_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/no_arg_brace_command_on_table_line.pl 
b/tp/t/results/xtable/no_arg_brace_command_on_table_line.pl
index 7a386fef60..f028eea0d3 100644
--- a/tp/t/results/xtable/no_arg_brace_command_on_table_line.pl
+++ b/tp/t/results/xtable/no_arg_brace_command_on_table_line.pl
@@ -126,7 +126,7 @@ $result_trees{'no_arg_brace_command_on_table_line'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/no_argument_for_table.pl 
b/tp/t/results/xtable/no_argument_for_table.pl
index 54309b00dc..287ef4dfb8 100644
--- a/tp/t/results/xtable/no_argument_for_table.pl
+++ b/tp/t/results/xtable/no_argument_for_table.pl
@@ -130,7 +130,7 @@ $result_trees{'no_argument_for_table'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/table_nested.pl 
b/tp/t/results/xtable/table_nested.pl
index 2c4df6e72d..8ab3b108b3 100644
--- a/tp/t/results/xtable/table_nested.pl
+++ b/tp/t/results/xtable/table_nested.pl
@@ -2023,7 +2023,7 @@ $result_trees{'table_nested'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/text_between_item_itemx.pl 
b/tp/t/results/xtable/text_between_item_itemx.pl
index 9e505a4d51..7cb8f94cc1 100644
--- a/tp/t/results/xtable/text_between_item_itemx.pl
+++ b/tp/t/results/xtable/text_between_item_itemx.pl
@@ -165,7 +165,7 @@ $result_trees{'text_between_item_itemx'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'
diff --git a/tp/t/results/xtable/title_and_itemx_before_item.pl 
b/tp/t/results/xtable/title_and_itemx_before_item.pl
index be5f957a55..608b4eda65 100644
--- a/tp/t/results/xtable/title_and_itemx_before_item.pl
+++ b/tp/t/results/xtable/title_and_itemx_before_item.pl
@@ -137,7 +137,7 @@ $result_trees{'title_and_itemx_before_item'} = {
         }
       ],
       'parent' => {},
-      'type' => 'text_root'
+      'type' => 'before_node_section'
     }
   ],
   'type' => 'document_root'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]