Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66678

Headings out of order in Book activity

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.4, 3.7.2
    • Fix Version/s: None
    • Component/s: Book
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE

      Description

      Description: When creating a book activity and chapters (without subchapters) the heading hierarchy is as follows

      h1 - Course heading

      h2 - Activity heading

      h3 - Chapter heading

      h5 - Table of contents

      Unless a subchapter is used within a chapter, there is never an h4 assigned so the hierarchy is missing a heading level.

      Replicated in Boost theme.

      Steps to replicate:

      1. Access a test course and create a book activity with default settings
      2. Add a chapter and some content, then save
      3. View the chapter and use a browser extension tool like HeadingsMap to check the heading levels.

      Observed:

      Chapter hierarchy is missing an h4, Table of Contents header skips straight to an h5

      Expected:

      Chapter hierarchy maintained and Table of Contents is an h4 instead

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              prankin Phillip Rankin
              Participants:
              Component watchers:
              David Jones, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: