-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
With quotes in the right place, I can generate invalid HTML like so:
<nav class="md-nav" aria-label=""B">
Bug description
If I have a page like
# Page
## "B
The above header has an unescaped quote mark in the aria label (see the generated HTML snippet at the top of the report)
### C
I would expect the quotation mark to be escaped in the aria-label.
Related links
- Reporting a bug
- escape aria-labels to prevent breaking HTML markup #8053 (fix) Sanitize aria-label on toc-items #8052 (missing reproduction)
Reproduction
9.6.6-unescaped-aria-label-mark.zip
Steps to reproduce
- run
mkdocs build
- inspect HTML file
index.html
, and observe invalid HTML
Browser
No response
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues and discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction using the built-in info plugin.
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open