Skip to content

HTML Export: empty <h2> heading generated before each section h #2111

@cyberbaloo

Description

@cyberbaloo

Bug Report

Problematic behavior
The HTML export generates an empty <h2> before each section heading

<h2></h2>
<h2 class="bn-inline-content">Commandes pour Windows</h2>

Expected behavior/code
A single <h2> per section heading, without parasitic empty element

<h2 class="bn-inline-content">Commandes pour Windows</h2>

Steps to Reproduce

  1. Open a Docs document containing level 2 headings
  2. Export the document to HTML format
  3. Inspect the source code — an empty <h2> precedes each section heading

Possible Solution
Fix the HTML export generation to not emit an empty <h2> before the actual heading

Critères RGAA

Critère 9.1 : Dans chaque page web, l'information est-elle structurée par l'utilisation appropriée de titres ?

Impact
A blind user navigating by headings hears an empty heading before each section title. This disrupts navigation and creates a false entry in the document structure.

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions