texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Convert/HTML.pm (_contents_inline_el


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/HTML.pm (_contents_inline_element), tp/Texinfo/XS/convert/convert_html.c (contents_inline_element): change element-*contents class name to region-*contents. Not perfect, but better as element is better left for tree elements only.
Date: Sat, 17 Feb 2024 19:36:24 -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 50d9a94880 * tp/Texinfo/Convert/HTML.pm (_contents_inline_element), 
tp/Texinfo/XS/convert/convert_html.c (contents_inline_element): change 
element-*contents class name to region-*contents.  Not perfect, but better as 
element is better left for tree elements only.
50d9a94880 is described below

commit 50d9a94880bbba9ae63015ce3b06610543006bb8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Feb 18 01:36:04 2024 +0100

    * tp/Texinfo/Convert/HTML.pm (_contents_inline_element),
    tp/Texinfo/XS/convert/convert_html.c (contents_inline_element):
    change element-*contents class name to region-*contents.  Not perfect,
    but better as element is better left for tree elements only.
---
 ChangeLog                                                     |  7 +++++++
 tp/Texinfo/Convert/HTML.pm                                    | 11 ++++-------
 tp/Texinfo/XS/convert/convert_html.c                          |  2 +-
 tp/t/results/converters_tests/contents_at_document_begin.pl   |  2 +-
 .../res_html/contents_at_document_begin.html                  |  2 +-
 .../converters_tests/contents_at_document_begin_inline.pl     |  2 +-
 .../res_html/contents_at_document_begin.html                  |  2 +-
 tp/t/results/converters_tests/ref_in_sectioning.pl            |  2 +-
 tp/t/results/converters_tests/things_before_setfilename.pl    |  2 +-
 .../results/formats_encodings/sample_utf8/res_html/index.html |  2 +-
 tp/t/results/html_tests/character_number_leading_toc_stoc.pl  |  4 ++--
 .../html_tests/contents_at_end/res_html/contents_at_end.html  |  2 +-
 .../contents_at_end_inline/res_html/contents_at_end.html      |  2 +-
 .../res_html/contents_in_middle_chapter.html                  |  2 +-
 .../res_html/contents_in_middle_chapter.html                  |  2 +-
 .../res_html/contents_in_middle_section.html                  |  2 +-
 .../res_html/contents_in_middle_section.html                  |  2 +-
 .../html_tests/double_contents/res_html/double_contents.html  |  2 +-
 .../res_html/double_contents.html                             |  2 +-
 .../res_html/index.html                                       |  2 +-
 .../double_contents_book/res_html/double_contents.html        |  2 +-
 .../html_tests/double_contents_chapter/res_html/index.html    |  2 +-
 .../double_contents_inline/res_html/double_contents.html      |  6 +++---
 .../double_contents_inline_chapter/res_html/chapter.html      |  4 ++--
 .../double_contents_inline_chapter/res_html/index.html        |  2 +-
 .../double_contents_inline_nodes/res_html/chapter.html        |  2 +-
 .../double_contents_inline_nodes/res_html/index.html          |  2 +-
 .../double_contents_inline_nodes/res_html/section.html        |  2 +-
 .../double_contents_inline_section/res_html/chapter.html      |  2 +-
 .../double_contents_inline_section/res_html/index.html        |  2 +-
 .../double_contents_inline_section/res_html/section.html      |  2 +-
 .../html_tests/double_contents_nodes/res_html/index.html      |  2 +-
 .../html_tests/double_contents_section/res_html/index.html    |  2 +-
 tp/t/results/html_tests/headings_after_lone_nodes.pl          |  2 +-
 .../no_content_do_contents/res_html/no_content.html           |  2 +-
 tp/t/results/html_tests/shortcontents_no_top.pl               |  2 +-
 .../test_separated_contents_shortcontents/res_html/app.html   |  2 +-
 .../test_separated_contents_shortcontents/res_html/index.html |  2 +-
 .../html_tests/text_before_top_and_contents_after_title.pl    |  2 +-
 .../text_before_top_and_summarycontents_after_title.pl        |  2 +-
 tp/t/results/indices/index_special_region/res_html/index.html |  2 +-
 .../index_special_region_no_insertcopying/res_html/index.html |  2 +-
 tp/t/results/indices/index_table/res_html/index.html          |  2 +-
 .../indices/index_table_chapter_no_node/res_html/index.html   |  2 +-
 .../customize_special_element/res_html/index.html             |  4 ++--
 .../customize_translations/res_html/index.html                |  2 +-
 tp/t/results/languages/appendix_translated.pl                 |  2 +-
 tp/t/results/moresectioning/contents.pl                       |  2 +-
 tp/t/results/moresectioning/contents_and_shortcontents.pl     |  4 ++--
 tp/t/results/moresectioning/section_in_unnumbered_info.pl     |  2 +-
 .../results/moresectioning/section_in_unnumbered_plaintext.pl |  2 +-
 tp/t/results/moresectioning/shortcontents.pl                  |  2 +-
 tp/t/results/sectioning/chapter_before_and_after_part.pl      |  2 +-
 tp/t/results/sectioning/chapter_between_nodes.pl              |  2 +-
 tp/t/results/sectioning/chapter_between_nodes_texi2html.pl    |  2 +-
 tp/t/results/sectioning/chapter_node_before_and_after_part.pl |  2 +-
 tp/t/results/sectioning/contents_and_parts.pl                 |  4 ++--
 tp/t/results/sectioning/contents_in_html_text.pl              |  4 ++--
 tp/t/results/sectioning/no_argument_and_contents.pl           |  2 +-
 tp/t/results/sectioning/node_part_chapter_after_chapter.pl    |  2 +-
 tp/t/results/sectioning/section_before_part.pl                |  2 +-
 tp/t/results/sectioning/section_below_unnumbered.pl           |  2 +-
 .../formatting_epub_package/EPUB/xhtml/formatting.xhtml       |  4 ++--
 .../res_parser/formatting_html_no_split/formatting.html       |  4 ++--
 .../res_parser/formatting_regions/formatting_regions.html     |  4 ++--
 tp/tests/coverage/res_parser/formatting_xhtml/formatting.html |  4 ++--
 .../double_contents_after_title_book/double_contents.html     |  2 +-
 .../double_contents_top.html                                  |  2 +-
 .../res_parser/double_contents_book/double_contents.html      |  6 +++---
 .../res_parser/sectioning_without_anchors/sectioning.html     |  2 +-
 .../res_parser/no_content_do_contents/no_content.html         |  2 +-
 .../res_parser/formatting_enable_encoding/formatting.html     |  4 ++--
 .../formatting_epub_package/EPUB/xhtml/formatting.xhtml       |  4 ++--
 tp/tests/layout/res_parser/formatting_mathjax/formatting.html |  4 ++--
 .../res_parser/formatting_numerical_entities/formatting.html  |  4 ++--
 .../res_parser/formatting_sort_element_counts/formatting.html |  4 ++--
 .../layout/res_parser/formatting_weird_quotes/formatting.html |  4 ++--
 77 files changed, 106 insertions(+), 102 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bf7852a14a..ae16b3c0eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-02-17  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/HTML.pm (_contents_inline_element),
+       tp/Texinfo/XS/convert/convert_html.c (contents_inline_element):
+       change element-*contents class name to region-*contents.  Not perfect,
+       but better as element is better left for tree elements only.
+
 2024-02-17  Patrice Dumas  <pertusus@free.fr>
 
        Add some const for *find_element_from_sv and similar functions.
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index ecd1c0a81d..99a6e3751d 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -4731,16 +4731,15 @@ sub _contents_inline_element($$$)
     my ($special_unit_variety, $special_unit, $class_base,
         $special_unit_direction)
           = $self->command_name_special_unit_information($cmdname);
-    # FIXME is element- the best prefix?
-    my $result = $self->html_attribute_class('div', ["element-${class_base}"]);
+    my $result = $self->html_attribute_class('div', ["region-${class_base}"]);
     my $unit_command = $special_unit->{'unit_command'};
     my $id = $self->command_id($unit_command);
     if (defined($id) and $id ne '') {
       $result .= " id=\"$id\"";
     }
+    $result .= ">\n";
     my $heading = $self->command_text($unit_command);
     $heading = '' if (!defined($heading));
-    $result .= ">\n";
     $result .= &{$self->formatting_function('format_heading_text')}($self,
                                   $cmdname, [$class_base.'-heading'], $heading,
                                   
$self->get_conf('CHAPTER_HEADER_LEVEL'))."\n";
@@ -6478,8 +6477,8 @@ sub _convert_printindex_command($$$$)
           push @td_entry_classes, "index-entry-level-$level";
         }
         $entries_text .= '<tr><td></td>'
-         # FIXME same class used for leading element of the entry and
-         # last element of the entry.  Could be different.
+         # FIXME same class used for leading entry rows here and
+         # last element of the entry with the href below.  Could be different.
          .$self->html_attribute_class('td', \@td_entry_classes).'>'
          . $entry . '</td>'
          # empty cell, no section for this line
@@ -7068,8 +7067,6 @@ sub _preformatted_class($)
   my $pre_class;
   my $pre_classes = $self->preformatted_classes_stack();
   foreach my $class (@$pre_classes) {
-    # FIXME maybe add   or $pre_class eq 'menu'  to override
-    # 'menu' with 'menu-comment'?
     $pre_class = $class unless ($pre_class
                            and $preformatted_code_commands{$pre_class}
                            and !($preformatted_code_commands{$class}
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index df96c69c36..ddbf1de068 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -9707,7 +9707,7 @@ contents_inline_element (CONVERTER *self, const enum 
command_id cmd,
 
               class_base = special_unit_info (self, SUI_type_class,
                                               special_unit_variety);
-              xasprintf (&class, "element-%s", class_base);
+              xasprintf (&class, "region-%s", class_base);
 
               add_string (class, classes);
               free (class);
diff --git a/tp/t/results/converters_tests/contents_at_document_begin.pl 
b/tp/t/results/converters_tests/contents_at_document_begin.pl
index 16fd3b3c33..8e5753cbf9 100644
--- a/tp/t/results/converters_tests/contents_at_document_begin.pl
+++ b/tp/t/results/converters_tests/contents_at_document_begin.pl
@@ -537,7 +537,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a href=
 <p>Content at the beginning.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/converters_tests/contents_at_document_begin/res_html/contents_at_document_begin.html
 
b/tp/t/results/converters_tests/contents_at_document_begin/res_html/contents_at_document_begin.html
index ec49073fce..4851d28276 100644
--- 
a/tp/t/results/converters_tests/contents_at_document_begin/res_html/contents_at_document_begin.html
+++ 
b/tp/t/results/converters_tests/contents_at_document_begin/res_html/contents_at_document_begin.html
@@ -37,7 +37,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a href=
 <p>Content at the beginning.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/converters_tests/contents_at_document_begin_inline.pl 
b/tp/t/results/converters_tests/contents_at_document_begin_inline.pl
index efba0cc72d..d32d631731 100644
--- a/tp/t/results/converters_tests/contents_at_document_begin_inline.pl
+++ b/tp/t/results/converters_tests/contents_at_document_begin_inline.pl
@@ -526,7 +526,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/converters_tests/contents_at_document_begin_inline/res_html/contents_at_document_begin.html
 
b/tp/t/results/converters_tests/contents_at_document_begin_inline/res_html/contents_at_document_begin.html
index 97fedbbeca..87a68c44fa 100644
--- 
a/tp/t/results/converters_tests/contents_at_document_begin_inline/res_html/contents_at_document_begin.html
+++ 
b/tp/t/results/converters_tests/contents_at_document_begin_inline/res_html/contents_at_document_begin.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/converters_tests/ref_in_sectioning.pl 
b/tp/t/results/converters_tests/ref_in_sectioning.pl
index b932ae5692..6afe482b9d 100644
--- a/tp/t/results/converters_tests/ref_in_sectioning.pl
+++ b/tp/t/results/converters_tests/ref_in_sectioning.pl
@@ -2241,7 +2241,7 @@ $result_converted{'html_text'}->{'ref_in_sectioning'} = '
 <h1 class="top" id="for-example-node-_0028node_0029-_0028Top_0029"><span>for 
example <a class="ref" href="#node">See <a data-manual="file name" 
href="file%20name.html#node">title</a> in <cite class="cite">Manual</cite>.</a> 
(see <a class="pxref" href="#node">See <a data-manual="file name" 
href="file%20name.html#node">title</a> in <cite 
class="cite">Manual</cite>.</a>) (see <cite class="cite"><a data-manual="file" 
href="file.html#Top">Manual</a></cite>)<a class="copiable-link" href="#for- 
[...]
 
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/converters_tests/things_before_setfilename.pl 
b/tp/t/results/converters_tests/things_before_setfilename.pl
index 1445f718b1..6df96c6ec9 100644
--- a/tp/t/results/converters_tests/things_before_setfilename.pl
+++ b/tp/t/results/converters_tests/things_before_setfilename.pl
@@ -1337,7 +1337,7 @@ Next: <a href="#chap" accesskey="n" 
rel="next">Chapter</a> &nbsp; [<a href="#SEC
 </div>
 <h1 class="top" id="top-section"><span>top section<a class="copiable-link" 
href="#top-section"> &para;</a></span></h1>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/formats_encodings/sample_utf8/res_html/index.html 
b/tp/t/results/formats_encodings/sample_utf8/res_html/index.html
index ef44ae05b1..16ec311b36 100644
--- a/tp/t/results/formats_encodings/sample_utf8/res_html/index.html
+++ b/tp/t/results/formats_encodings/sample_utf8/res_html/index.html
@@ -50,7 +50,7 @@ Texinfo中文示例
 </p>
 
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
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 e0f868fcbb..25d7ae077f 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
@@ -299,7 +299,7 @@ ul.toc-numbered-mark {list-style: none}
 <body lang="en">
 <div class="top-level-extent" id="top">
 <h1 class="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -309,7 +309,7 @@ ul.toc-numbered-mark {list-style: none}
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/contents_at_end/res_html/contents_at_end.html 
b/tp/t/results/html_tests/contents_at_end/res_html/contents_at_end.html
index b2a547d809..dd942c6f73 100644
--- a/tp/t/results/html_tests/contents_at_end/res_html/contents_at_end.html
+++ b/tp/t/results/html_tests/contents_at_end/res_html/contents_at_end.html
@@ -36,7 +36,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a href=
 <p>Content at end.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/contents_at_end_inline/res_html/contents_at_end.html 
b/tp/t/results/html_tests/contents_at_end_inline/res_html/contents_at_end.html
index 6306a7cced..93b7a12bbc 100644
--- 
a/tp/t/results/html_tests/contents_at_end_inline/res_html/contents_at_end.html
+++ 
b/tp/t/results/html_tests/contents_at_end_inline/res_html/contents_at_end.html
@@ -49,7 +49,7 @@ Previous: <a href="#Top" accesskey="p" rel="prev">Contents at 
end</a>, Up: <a hr
 
 <p>The chapter
 </p>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/contents_in_middle_chapter/res_html/contents_in_middle_chapter.html
 
b/tp/t/results/html_tests/contents_in_middle_chapter/res_html/contents_in_middle_chapter.html
index 0ae7fafbb1..a94a0c3cd9 100644
--- 
a/tp/t/results/html_tests/contents_in_middle_chapter/res_html/contents_in_middle_chapter.html
+++ 
b/tp/t/results/html_tests/contents_in_middle_chapter/res_html/contents_in_middle_chapter.html
@@ -36,7 +36,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a href=
 <p>Content in chapter.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/contents_in_middle_chapter_inline/res_html/contents_in_middle_chapter.html
 
b/tp/t/results/html_tests/contents_in_middle_chapter_inline/res_html/contents_in_middle_chapter.html
index 51259ae39b..d043eca1ec 100644
--- 
a/tp/t/results/html_tests/contents_in_middle_chapter_inline/res_html/contents_in_middle_chapter.html
+++ 
b/tp/t/results/html_tests/contents_in_middle_chapter_inline/res_html/contents_in_middle_chapter.html
@@ -48,7 +48,7 @@ Previous: <a href="#Top" accesskey="p" rel="prev">Contents in 
chapter</a>, Up: <
 <h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link" 
href="#Chapter-1"> &para;</a></span></h2>
 
 <p>The chapter with contents
-</p><div class="element-contents" id="SEC_Contents">
+</p><div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/contents_in_middle_section/res_html/contents_in_middle_section.html
 
b/tp/t/results/html_tests/contents_in_middle_section/res_html/contents_in_middle_section.html
index 15605ae8e2..7130abf492 100644
--- 
a/tp/t/results/html_tests/contents_in_middle_section/res_html/contents_in_middle_section.html
+++ 
b/tp/t/results/html_tests/contents_in_middle_section/res_html/contents_in_middle_section.html
@@ -36,7 +36,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a href=
 <p>Content in section.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/contents_in_middle_section_inline/res_html/contents_in_middle_section.html
 
b/tp/t/results/html_tests/contents_in_middle_section_inline/res_html/contents_in_middle_section.html
index 529f1563b5..26609a86ed 100644
--- 
a/tp/t/results/html_tests/contents_in_middle_section_inline/res_html/contents_in_middle_section.html
+++ 
b/tp/t/results/html_tests/contents_in_middle_section_inline/res_html/contents_in_middle_section.html
@@ -62,7 +62,7 @@ Next: <a href="#section1" accesskey="n" rel="next">section 
1</a>, Up: <a href="#
 <h3 class="section" id="section-1"><span>1.1 section<a class="copiable-link" 
href="#section-1"> &para;</a></span></h3>
 
 <p>The section with contents
-</p><div class="element-contents" id="SEC_Contents">
+</p><div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents/res_html/double_contents.html 
b/tp/t/results/html_tests/double_contents/res_html/double_contents.html
index 2a0a28702c..db8c64968e 100644
--- a/tp/t/results/html_tests/double_contents/res_html/double_contents.html
+++ b/tp/t/results/html_tests/double_contents/res_html/double_contents.html
@@ -37,7 +37,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a href=
 <p>Double contents.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_after_title_show_title/res_html/double_contents.html
 
b/tp/t/results/html_tests/double_contents_after_title_show_title/res_html/double_contents.html
index 6e75ed8c72..6b054b6137 100644
--- 
a/tp/t/results/html_tests/double_contents_after_title_show_title/res_html/double_contents.html
+++ 
b/tp/t/results/html_tests/double_contents_after_title_show_title/res_html/double_contents.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/index.html
 
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/index.html
index b3c6f99ad3..8c321f4b74 100644
--- 
a/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/index.html
+++ 
b/tp/t/results/html_tests/double_contents_after_title_show_title_nodes/res_html/index.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_book/res_html/double_contents.html 
b/tp/t/results/html_tests/double_contents_book/res_html/double_contents.html
index 36c12917b7..260346847e 100644
--- a/tp/t/results/html_tests/double_contents_book/res_html/double_contents.html
+++ b/tp/t/results/html_tests/double_contents_book/res_html/double_contents.html
@@ -33,7 +33,7 @@ ul.toc-numbered-mark {list-style: none}
 Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
 </div>
 <h1 class="top" id="Double-contents"><span>Double contents<a 
class="copiable-link" href="#Double-contents"> &para;</a></span></h1>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_chapter/res_html/index.html 
b/tp/t/results/html_tests/double_contents_chapter/res_html/index.html
index bd8fe02974..3723dc98f9 100644
--- a/tp/t/results/html_tests/double_contents_chapter/res_html/index.html
+++ b/tp/t/results/html_tests/double_contents_chapter/res_html/index.html
@@ -37,7 +37,7 @@ Next: <a href="chapter.html#chapter" accesskey="n" 
rel="next">Chapter 1</a> &nbs
 <p>Double contents.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline/res_html/double_contents.html 
b/tp/t/results/html_tests/double_contents_inline/res_html/double_contents.html
index 76a075b851..20d1684677 100644
--- 
a/tp/t/results/html_tests/double_contents_inline/res_html/double_contents.html
+++ 
b/tp/t/results/html_tests/double_contents_inline/res_html/double_contents.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
@@ -61,7 +61,7 @@ Previous: <a href="#Top" accesskey="p" rel="prev">Double 
contents</a>, Up: <a hr
 </div>
 <h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link" 
href="#Chapter-1"> &para;</a></span></h2>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
@@ -87,7 +87,7 @@ Previous: <a href="#Top" accesskey="p" rel="prev">Double 
contents</a>, Up: <a hr
 Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
 </div>
 <h3 class="section" id="section-with-contents"><span>1.1 section with 
contents<a class="copiable-link" href="#section-with-contents"> 
&para;</a></span></h3>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline_chapter/res_html/chapter.html 
b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/chapter.html
index 35033e97a8..f6914dfe47 100644
--- 
a/tp/t/results/html_tests/double_contents_inline_chapter/res_html/chapter.html
+++ 
b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/chapter.html
@@ -34,7 +34,7 @@ Previous: <a href="index.html" accesskey="p" 
rel="prev">Double contents</a>, Up:
 </div>
 <h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link" 
href="#Chapter-1"> &para;</a></span></h2>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
@@ -60,7 +60,7 @@ Previous: <a href="index.html" accesskey="p" 
rel="prev">Double contents</a>, Up:
 Up: <a href="#chapter" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="index.html#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>]</p>
 </div>
 <h3 class="section" id="section-with-contents"><span>1.1 section with 
contents<a class="copiable-link" href="#section-with-contents"> 
&para;</a></span></h3>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline_chapter/res_html/index.html 
b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/index.html
index 76523a12a5..d609ecc552 100644
--- a/tp/t/results/html_tests/double_contents_inline_chapter/res_html/index.html
+++ b/tp/t/results/html_tests/double_contents_inline_chapter/res_html/index.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline_nodes/res_html/chapter.html 
b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/chapter.html
index fb1cec5666..2d1e916478 100644
--- a/tp/t/results/html_tests/double_contents_inline_nodes/res_html/chapter.html
+++ b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/chapter.html
@@ -35,7 +35,7 @@ Previous: <a href="index.html" accesskey="p" 
rel="prev">Double contents</a>, Up:
 <hr>
 <h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link" 
href="#Chapter-1"> &para;</a></span></h2>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline_nodes/res_html/index.html 
b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/index.html
index 27c66c36ce..afc9944a9e 100644
--- a/tp/t/results/html_tests/double_contents_inline_nodes/res_html/index.html
+++ b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/index.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline_nodes/res_html/section.html 
b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/section.html
index 1c1dedda5c..0ce5ece429 100644
--- a/tp/t/results/html_tests/double_contents_inline_nodes/res_html/section.html
+++ b/tp/t/results/html_tests/double_contents_inline_nodes/res_html/section.html
@@ -33,7 +33,7 @@ Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 
1</a> &nbsp; [<a href=
 </div>
 <hr>
 <h3 class="section" id="section-with-contents"><span>1.1 section with 
contents<a class="copiable-link" href="#section-with-contents"> 
&para;</a></span></h3>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline_section/res_html/chapter.html 
b/tp/t/results/html_tests/double_contents_inline_section/res_html/chapter.html
index 0e94772a2a..40ab6ed080 100644
--- 
a/tp/t/results/html_tests/double_contents_inline_section/res_html/chapter.html
+++ 
b/tp/t/results/html_tests/double_contents_inline_section/res_html/chapter.html
@@ -34,7 +34,7 @@ Previous: <a href="index.html" accesskey="p" 
rel="prev">Double contents</a>, Up:
 </div>
 <h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link" 
href="#Chapter-1"> &para;</a></span></h2>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline_section/res_html/index.html 
b/tp/t/results/html_tests/double_contents_inline_section/res_html/index.html
index f22c9a937b..b920b28ec2 100644
--- a/tp/t/results/html_tests/double_contents_inline_section/res_html/index.html
+++ b/tp/t/results/html_tests/double_contents_inline_section/res_html/index.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_inline_section/res_html/section.html 
b/tp/t/results/html_tests/double_contents_inline_section/res_html/section.html
index 45fb7779a5..eae32a2441 100644
--- 
a/tp/t/results/html_tests/double_contents_inline_section/res_html/section.html
+++ 
b/tp/t/results/html_tests/double_contents_inline_section/res_html/section.html
@@ -32,7 +32,7 @@ ul.toc-numbered-mark {list-style: none}
 Up: <a href="chapter.html" accesskey="u" rel="up">Chapter 1</a> &nbsp; [<a 
href="index.html#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>]</p>
 </div>
 <h3 class="section" id="section-with-contents"><span>1.1 section with 
contents<a class="copiable-link" href="#section-with-contents"> 
&para;</a></span></h3>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/html_tests/double_contents_nodes/res_html/index.html 
b/tp/t/results/html_tests/double_contents_nodes/res_html/index.html
index 60a1bf7701..d29bf75c9e 100644
--- a/tp/t/results/html_tests/double_contents_nodes/res_html/index.html
+++ b/tp/t/results/html_tests/double_contents_nodes/res_html/index.html
@@ -38,7 +38,7 @@ Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a h
 <p>Double contents.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/double_contents_section/res_html/index.html 
b/tp/t/results/html_tests/double_contents_section/res_html/index.html
index 28130aca50..6e5954e790 100644
--- a/tp/t/results/html_tests/double_contents_section/res_html/index.html
+++ b/tp/t/results/html_tests/double_contents_section/res_html/index.html
@@ -37,7 +37,7 @@ Next: <a href="chapter.html" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a h
 <p>Double contents.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/html_tests/headings_after_lone_nodes.pl 
b/tp/t/results/html_tests/headings_after_lone_nodes.pl
index fc9f28e1f1..194f22b19e 100644
--- a/tp/t/results/html_tests/headings_after_lone_nodes.pl
+++ b/tp/t/results/html_tests/headings_after_lone_nodes.pl
@@ -1662,7 +1662,7 @@ Next: <a href="#chap" accesskey="n" rel="next">Chap</a> 
&nbsp; [<a href="#SEC_Co
 </div>
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/html_tests/no_content_do_contents/res_html/no_content.html 
b/tp/t/results/html_tests/no_content_do_contents/res_html/no_content.html
index bd6184ec4e..e56aaee5dd 100644
--- a/tp/t/results/html_tests/no_content_do_contents/res_html/no_content.html
+++ b/tp/t/results/html_tests/no_content_do_contents/res_html/no_content.html
@@ -36,7 +36,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a href=
 <p>No content.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/html_tests/shortcontents_no_top.pl 
b/tp/t/results/html_tests/shortcontents_no_top.pl
index 205fecb7e7..349754edd9 100644
--- a/tp/t/results/html_tests/shortcontents_no_top.pl
+++ b/tp/t/results/html_tests/shortcontents_no_top.pl
@@ -252,7 +252,7 @@ ul.toc-numbered-mark {list-style: none}
 <div class="section-level-extent" id="sec">
 <h3 class="section"><span>2.1 sec<a class="copiable-link" href="#sec"> 
&para;</a></span></h3>
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
diff --git 
a/tp/t/results/html_tests/test_separated_contents_shortcontents/res_html/app.html
 
b/tp/t/results/html_tests/test_separated_contents_shortcontents/res_html/app.html
index 5bebf8a32a..bf52480d64 100644
--- 
a/tp/t/results/html_tests/test_separated_contents_shortcontents/res_html/app.html
+++ 
b/tp/t/results/html_tests/test_separated_contents_shortcontents/res_html/app.html
@@ -35,7 +35,7 @@ Previous: <a href="chap.html" accesskey="p" 
rel="prev">chapter</a>, Up: <a href=
 <hr>
 <h2 class="appendix" id="appendix"><span>Appendix A appendix<a 
class="copiable-link" href="#appendix"> &para;</a></span></h2>
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
diff --git 
a/tp/t/results/html_tests/test_separated_contents_shortcontents/res_html/index.html
 
b/tp/t/results/html_tests/test_separated_contents_shortcontents/res_html/index.html
index 400f4ee666..b9af8f7f88 100644
--- 
a/tp/t/results/html_tests/test_separated_contents_shortcontents/res_html/index.html
+++ 
b/tp/t/results/html_tests/test_separated_contents_shortcontents/res_html/index.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
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 8facc8d37c..95ff6f2820 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
@@ -297,7 +297,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
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 265611cd17..5c8b518362 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
@@ -296,7 +296,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
diff --git a/tp/t/results/indices/index_special_region/res_html/index.html 
b/tp/t/results/indices/index_special_region/res_html/index.html
index cef93ec3fe..f62d490111 100644
--- a/tp/t/results/indices/index_special_region/res_html/index.html
+++ b/tp/t/results/indices/index_special_region/res_html/index.html
@@ -47,7 +47,7 @@ ul.toc-numbered-mark {list-style: none}
 Next: <a href="Copying-and-indices.html" accesskey="n" rel="next">Copying and 
indices</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>][<a href="#Top" title="Index" 
rel="index">Index</a>]</p>
 </div>
 <h1 class="top" id="Top-1"><span>Top<a class="copiable-link" href="#Top-1"> 
&para;</a></span></h1>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/indices/index_special_region_no_insertcopying/res_html/index.html
 
b/tp/t/results/indices/index_special_region_no_insertcopying/res_html/index.html
index c35ec7662b..a3c8955bcc 100644
--- 
a/tp/t/results/indices/index_special_region_no_insertcopying/res_html/index.html
+++ 
b/tp/t/results/indices/index_special_region_no_insertcopying/res_html/index.html
@@ -41,7 +41,7 @@ ul.toc-numbered-mark {list-style: none}
 Next: <a href="Copying-and-indices.html" accesskey="n" rel="next">Copying and 
indices</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>]</p>
 </div>
 <h1 class="top" id="Top-1"><span>Top<a class="copiable-link" href="#Top-1"> 
&para;</a></span></h1>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/indices/index_table/res_html/index.html 
b/tp/t/results/indices/index_table/res_html/index.html
index 79d1296937..e9fdf04751 100644
--- a/tp/t/results/indices/index_table/res_html/index.html
+++ b/tp/t/results/indices/index_table/res_html/index.html
@@ -35,7 +35,7 @@ Next: <a href="node-with-ftable-and-vtable.html" 
accesskey="n" rel="next">first
 <hr>
 <h1 class="top" id="Test-for-indices"><span>Test for indices<a 
class="copiable-link" href="#Test-for-indices"> &para;</a></span></h1>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/indices/index_table_chapter_no_node/res_html/index.html 
b/tp/t/results/indices/index_table_chapter_no_node/res_html/index.html
index dd391edd9d..6b32f3aa88 100644
--- a/tp/t/results/indices/index_table_chapter_no_node/res_html/index.html
+++ b/tp/t/results/indices/index_table_chapter_no_node/res_html/index.html
@@ -34,7 +34,7 @@ ul.toc-numbered-mark {list-style: none}
 </div>
 <h1 class="top" id="Test-for-indices"><span>Test for indices<a 
class="copiable-link" href="#Test-for-indices"> &para;</a></span></h1>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/init_files_tests/customize_special_element/res_html/index.html 
b/tp/t/results/init_files_tests/customize_special_element/res_html/index.html
index e438c9a5f5..80a385d2cf 100644
--- 
a/tp/t/results/init_files_tests/customize_special_element/res_html/index.html
+++ 
b/tp/t/results/init_files_tests/customize_special_element/res_html/index.html
@@ -36,7 +36,7 @@ Next: <a href="Chapter.html" accesskey="n" 
rel="next">chap</a> &nbsp; [<a href="
 <hr>
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
-<div class="element-shortcontents">
+<div class="region-shortcontents">
 
 <div class="shortcontents">
 <ul class="toc-numbered-mark">
@@ -45,7 +45,7 @@ Next: <a href="Chapter.html" accesskey="n" 
rel="next">chap</a> &nbsp; [<a href="
 </ul>
 </div>
 </div>
-<div class="element-contents" id="t_contents">
+<div class="region-contents" id="t_contents">
 <h2 class="contents-heading">The <em class="emph">Table of Contents</em></h2>
 
 <div class="contents">
diff --git 
a/tp/t/results/init_files_tests/customize_translations/res_html/index.html 
b/tp/t/results/init_files_tests/customize_translations/res_html/index.html
index 44a438068a..c737d77a36 100644
--- a/tp/t/results/init_files_tests/customize_translations/res_html/index.html
+++ b/tp/t/results/init_files_tests/customize_translations/res_html/index.html
@@ -34,7 +34,7 @@ ul.toc-numbered-mark {list-style: none}
 </div>
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/languages/appendix_translated.pl 
b/tp/t/results/languages/appendix_translated.pl
index 13d53ff448..448a433f04 100644
--- a/tp/t/results/languages/appendix_translated.pl
+++ b/tp/t/results/languages/appendix_translated.pl
@@ -330,7 +330,7 @@ ul.toc-numbered-mark {list-style: none}
 <div class="top-level-extent" id="Top">
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Índice general</h2>
 
 <div class="contents">
diff --git a/tp/t/results/moresectioning/contents.pl 
b/tp/t/results/moresectioning/contents.pl
index d3512c0b17..1174f2d0aa 100644
--- a/tp/t/results/moresectioning/contents.pl
+++ b/tp/t/results/moresectioning/contents.pl
@@ -753,7 +753,7 @@ ul.toc-numbered-mark {list-style: none}
 <div class="top-level-extent" id="top">
 <h1 class="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/moresectioning/contents_and_shortcontents.pl 
b/tp/t/results/moresectioning/contents_and_shortcontents.pl
index 747268535e..66615e842e 100644
--- a/tp/t/results/moresectioning/contents_and_shortcontents.pl
+++ b/tp/t/results/moresectioning/contents_and_shortcontents.pl
@@ -783,7 +783,7 @@ ul.toc-numbered-mark {list-style: none}
 <div class="top-level-extent" id="top">
 <h1 class="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -801,7 +801,7 @@ ul.toc-numbered-mark {list-style: none}
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/moresectioning/section_in_unnumbered_info.pl 
b/tp/t/results/moresectioning/section_in_unnumbered_info.pl
index b3aefe5c6a..0041967976 100644
--- a/tp/t/results/moresectioning/section_in_unnumbered_info.pl
+++ b/tp/t/results/moresectioning/section_in_unnumbered_info.pl
@@ -6696,7 +6696,7 @@ Next: <a href="#chapter" accesskey="n" 
rel="next">chapter</a> &nbsp; [<a href="#
 <p>Menu:
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/moresectioning/section_in_unnumbered_plaintext.pl 
b/tp/t/results/moresectioning/section_in_unnumbered_plaintext.pl
index d2de5b91db..a90b51d88a 100644
--- a/tp/t/results/moresectioning/section_in_unnumbered_plaintext.pl
+++ b/tp/t/results/moresectioning/section_in_unnumbered_plaintext.pl
@@ -6520,7 +6520,7 @@ Next: <a href="#chapter" accesskey="n" 
rel="next">chapter</a> &nbsp; [<a href="#
 <p>Menu:
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/moresectioning/shortcontents.pl 
b/tp/t/results/moresectioning/shortcontents.pl
index 941572f09c..96cf7b7707 100644
--- a/tp/t/results/moresectioning/shortcontents.pl
+++ b/tp/t/results/moresectioning/shortcontents.pl
@@ -748,7 +748,7 @@ ul.toc-numbered-mark {list-style: none}
 <div class="top-level-extent" id="top">
 <h1 class="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
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 c561a53ea3..be7723e8f6 100644
--- a/tp/t/results/sectioning/chapter_before_and_after_part.pl
+++ b/tp/t/results/sectioning/chapter_before_and_after_part.pl
@@ -372,7 +372,7 @@ ul.toc-numbered-mark {list-style: none}
 <div class="chapter-level-extent" id="chapter-2">
 <h2 class="chapter"><span>2 chapter 2<a class="copiable-link" 
href="#chapter-2"> &para;</a></span></h2>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/sectioning/chapter_between_nodes.pl 
b/tp/t/results/sectioning/chapter_between_nodes.pl
index 4143787a66..014c98db09 100644
--- a/tp/t/results/sectioning/chapter_between_nodes.pl
+++ b/tp/t/results/sectioning/chapter_between_nodes.pl
@@ -625,7 +625,7 @@ Previous: <a href="#Top" accesskey="p" rel="prev">top 
section</a>, Up: <a href="
 
 <p>section.
 </p>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/sectioning/chapter_between_nodes_texi2html.pl 
b/tp/t/results/sectioning/chapter_between_nodes_texi2html.pl
index afcc501d1e..8b08a6aef7 100644
--- a/tp/t/results/sectioning/chapter_between_nodes_texi2html.pl
+++ b/tp/t/results/sectioning/chapter_between_nodes_texi2html.pl
@@ -652,7 +652,7 @@ ul.toc-numbered-mark {list-style: none}
 
 <p>section.
 </p>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h1 class="contents-heading">Table of Contents</h1>
 
 <div class="contents">
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 752f33293f..ea223dff32 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
@@ -573,7 +573,7 @@ Previous: <a href="#Top" accesskey="p" 
rel="prev">chapter</a>, Up: <a href="#Top
 <div class="chapter-level-extent" id="after">
 <h2 class="chapter" id="chapter-2"><span>2 chapter 2<a class="copiable-link" 
href="#chapter-2"> &para;</a></span></h2>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/sectioning/contents_and_parts.pl 
b/tp/t/results/sectioning/contents_and_parts.pl
index 95f5532096..a6a82e41ac 100644
--- a/tp/t/results/sectioning/contents_and_parts.pl
+++ b/tp/t/results/sectioning/contents_and_parts.pl
@@ -970,7 +970,7 @@ Next: <a href="#chapter-1-node" accesskey="n" 
rel="next">chapter 1</a> &nbsp; [<
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -986,7 +986,7 @@ Next: <a href="#chapter-1-node" accesskey="n" 
rel="next">chapter 1</a> &nbsp; [<
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/sectioning/contents_in_html_text.pl 
b/tp/t/results/sectioning/contents_in_html_text.pl
index 42f2497ced..9601167608 100644
--- a/tp/t/results/sectioning/contents_in_html_text.pl
+++ b/tp/t/results/sectioning/contents_in_html_text.pl
@@ -311,7 +311,7 @@ $result_converted{'html_text'}->{'contents_in_html_text'} = 
'<div class="top-lev
 <div class="chapter-level-extent" id="Chap2">
 <h2 class="chapter"><span>2 Chap2<a class="copiable-link" href="#Chap2"> 
&para;</a></span></h2>
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -321,7 +321,7 @@ $result_converted{'html_text'}->{'contents_in_html_text'} = 
'<div class="top-lev
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/sectioning/no_argument_and_contents.pl 
b/tp/t/results/sectioning/no_argument_and_contents.pl
index 659480de92..abf706da02 100644
--- a/tp/t/results/sectioning/no_argument_and_contents.pl
+++ b/tp/t/results/sectioning/no_argument_and_contents.pl
@@ -223,7 +223,7 @@ ul.toc-numbered-mark {list-style: none}
 <div class="top-level-extent" id="for-example">
 <h1 class="top"><span>for example<a class="copiable-link" href="#for-example"> 
&para;</a></span></h1>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
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 fb0e9d3cc2..0baeb0310f 100644
--- a/tp/t/results/sectioning/node_part_chapter_after_chapter.pl
+++ b/tp/t/results/sectioning/node_part_chapter_after_chapter.pl
@@ -1159,7 +1159,7 @@ Next: <a href="#chapter-node" accesskey="n" 
rel="next">chapter node</a> &nbsp; [
 <h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
 
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/sectioning/section_before_part.pl 
b/tp/t/results/sectioning/section_before_part.pl
index 6faff1d6c7..d2fe36bd21 100644
--- a/tp/t/results/sectioning/section_before_part.pl
+++ b/tp/t/results/sectioning/section_before_part.pl
@@ -208,7 +208,7 @@ ul.toc-numbered-mark {list-style: none}
 <h1 class="part"><span>part<a class="copiable-link" href="#part"> 
&para;</a></span></h1>
 <hr>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/t/results/sectioning/section_below_unnumbered.pl 
b/tp/t/results/sectioning/section_below_unnumbered.pl
index a7bb1f45b2..eba3530d86 100644
--- a/tp/t/results/sectioning/section_below_unnumbered.pl
+++ b/tp/t/results/sectioning/section_below_unnumbered.pl
@@ -753,7 +753,7 @@ Next: <a href="#Unn" accesskey="n" rel="next">Unn</a> 
&nbsp; [<a href="#SEC_Cont
 </p>
 
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
 
b/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
index 975c23e145..8a4c78bd0f 100644
--- 
a/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
+++ 
b/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
@@ -3124,7 +3124,7 @@ html ''
 
 
 
-<a class="node" id="Top"></a><a class="top" id="Top-section"></a><div 
class="element-shortcontents" id="SEC_Shortcontents">
+<a class="node" id="Top"></a><a class="top" id="Top-section"></a><div 
class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -3134,7 +3134,7 @@ html ''
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html 
b/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
index e2fa2a4647..d1227321ec 100644
--- a/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
+++ b/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
@@ -927,7 +927,7 @@ Next: <a href="#chapter" accesskey="n" 
rel="next">chapter</a> &nbsp; [<a href="#
 
 
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -937,7 +937,7 @@ Next: <a href="#chapter" accesskey="n" 
rel="next">chapter</a> &nbsp; [<a href="#
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html 
b/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
index d3f5847dd2..4ade98762c 100644
--- a/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
+++ b/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
@@ -3130,7 +3130,7 @@ html ''
 Next: <a href="#constructs" accesskey="n" rel="next">constructs</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a 
href="#constructs" title="Index" rel="index">Index</a>]</p>
 </div>
 <h1 class="top" id="Top-section"><span>Top section<a class="copiable-link" 
href="#Top-section"> &para;</a></span></h1>
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -3141,7 +3141,7 @@ Next: <a href="#constructs" accesskey="n" 
rel="next">constructs</a> &nbsp; [<a h
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html 
b/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
index c6803e45db..7933232bf4 100644
--- a/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
+++ b/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
@@ -3146,7 +3146,7 @@ Next: <a href="#chapter" accesskey="n" 
rel="next">chapter</a> &nbsp; [<a href="#
 
 
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -3156,7 +3156,7 @@ Next: <a href="#chapter" accesskey="n" 
rel="next">chapter</a> &nbsp; [<a href="#
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/customization/res_parser/double_contents_after_title_book/double_contents.html
 
b/tp/tests/customization/res_parser/double_contents_after_title_book/double_contents.html
index 6a5076e162..cdcbe79572 100644
--- 
a/tp/tests/customization/res_parser/double_contents_after_title_book/double_contents.html
+++ 
b/tp/tests/customization/res_parser/double_contents_after_title_book/double_contents.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/customization/res_parser/double_contents_after_title_book_chapter/double_contents_top.html
 
b/tp/tests/customization/res_parser/double_contents_after_title_book_chapter/double_contents_top.html
index b0d06c0683..4fccb8c24b 100644
--- 
a/tp/tests/customization/res_parser/double_contents_after_title_book_chapter/double_contents_top.html
+++ 
b/tp/tests/customization/res_parser/double_contents_after_title_book_chapter/double_contents_top.html
@@ -25,7 +25,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/customization/res_parser/double_contents_book/double_contents.html 
b/tp/tests/customization/res_parser/double_contents_book/double_contents.html
index 44423d7817..6d02889088 100644
--- 
a/tp/tests/customization/res_parser/double_contents_book/double_contents.html
+++ 
b/tp/tests/customization/res_parser/double_contents_book/double_contents.html
@@ -26,7 +26,7 @@ ul.toc-numbered-mark {list-style: none}
 </head>
 
 <body lang="en">
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
@@ -55,7 +55,7 @@ ul.toc-numbered-mark {list-style: none}
 <li> <a href="#section">1.1 section with contents</a> </li>
 </ul>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
@@ -78,7 +78,7 @@ ul.toc-numbered-mark {list-style: none}
 [<a href="#chapter" title="Previous section in reading order" accesskey="p" 
rel="prev"> &lt; </a>] &nbsp; [<a href="#SEC_Contents" title="Table of 
contents" rel="contents">Contents</a>]</p>
 </div>
 <h3 class="section" id="section-with-contents"><span>1.1 section with 
contents<a class="copiable-link" href="#section-with-contents"> 
&para;</a></span></h3>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.html 
b/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.html
index 80b5636b37..317ea89713 100644
--- 
a/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.html
+++ 
b/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.html
@@ -32,7 +32,7 @@ ul.toc-numbered-mark {list-style: none}
 Next: <a href="#First-node" accesskey="n" rel="next">first node chapter</a>, 
Previous: <a href="dir.html#Top" accesskey="p" rel="prev">(dir)</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
 </div>
 <a class="top" id="SEC_Top"></a>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/formatting/res_parser/no_content_do_contents/no_content.html 
b/tp/tests/formatting/res_parser/no_content_do_contents/no_content.html
index a5ad4fec81..fbecccf23a 100644
--- a/tp/tests/formatting/res_parser/no_content_do_contents/no_content.html
+++ b/tp/tests/formatting/res_parser/no_content_do_contents/no_content.html
@@ -37,7 +37,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter 
1</a> &nbsp; [<a href=
 <p>No content.
 </p>
 
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html 
b/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
index c7d85ee511..db0d4944f5 100644
--- a/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
@@ -3162,7 +3162,7 @@ Menu comment
 </table>
 
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -3172,7 +3172,7 @@ Menu comment
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
 
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
index 48c18615d0..9c2351fb82 100644
--- 
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
+++ 
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
@@ -3126,7 +3126,7 @@ html ''
 
 
 
-<a class="node" id="Top"></a><a class="top" id="Top-section"></a><div 
class="element-shortcontents" id="SEC_Shortcontents">
+<a class="node" id="Top"></a><a class="top" id="Top-section"></a><div 
class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -3136,7 +3136,7 @@ html ''
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/tests/layout/res_parser/formatting_mathjax/formatting.html 
b/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
index 2eba65a529..77e0be8fc1 100644
--- a/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
@@ -3149,7 +3149,7 @@ Next: <a href="#chapter" accesskey="n" 
rel="next">chapter</a> &nbsp; [<a href="#
 
 
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -3159,7 +3159,7 @@ Next: <a href="#chapter" accesskey="n" 
rel="next">chapter</a> &nbsp; [<a href="#
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html 
b/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
index 2bc7cc4c74..959af7337f 100644
--- a/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
@@ -3162,7 +3162,7 @@ Menu comment
 </table>
 
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -3172,7 +3172,7 @@ Menu comment
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git 
a/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html 
b/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
index 704b9fe5aa..ddc373e0a5 100644
--- a/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
@@ -927,7 +927,7 @@ ul.toc-numbered-mark {list-style: none}
 
 
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -937,7 +937,7 @@ ul.toc-numbered-mark {list-style: none}
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">
diff --git a/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html 
b/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
index d384c3334a..c33f20353b 100644
--- a/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
@@ -3162,7 +3162,7 @@ Menu comment
 </table>
 
 
-<div class="element-shortcontents" id="SEC_Shortcontents">
+<div class="region-shortcontents" id="SEC_Shortcontents">
 <h2 class="shortcontents-heading">Short Table of Contents</h2>
 
 <div class="shortcontents">
@@ -3172,7 +3172,7 @@ Menu comment
 </ul>
 </div>
 </div>
-<div class="element-contents" id="SEC_Contents">
+<div class="region-contents" id="SEC_Contents">
 <h2 class="contents-heading">Table of Contents</h2>
 
 <div class="contents">



reply via email to

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