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

Headings out of order in Book activity

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.6.4, 3.7.2
    • Book
    • None
    • MOODLE_36_STABLE, MOODLE_37_STABLE

      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

        1. without subchapter.png
          45 kB
          Phillip Rankin
        2. with subchapter.png
          54 kB
          Phillip Rankin

            Unassigned Unassigned
            prankin Phillip Rankin
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.