Skip to content

Comments

Fix nested heading tags in blog_sv.html#985

Merged
pethers merged 2 commits intomasterfrom
copilot/fix-errors-in-blog-sv-html
Jan 17, 2026
Merged

Fix nested heading tags in blog_sv.html#985
pethers merged 2 commits intomasterfrom
copilot/fix-errors-in-blog-sv-html

Conversation

Copy link
Contributor

Copilot AI commented Jan 17, 2026

The Swedish blog page contained 12 invalid nested heading structures that caused HTML validation failures.

Issue

Headings were malformed with nested tags combining Swedish and English text:

<!-- Before: Invalid nested headings -->
<h3>Övervakning <h3>Monitoring & Logging</h3> Loggning</h3>
<h2>Styrning <h2>Governance & Compliance</h2> Efterlevnad</h2>

Changes

  • Fixed all 12 nested heading tags to use proper Swedish translations
  • Maintained semantic heading hierarchy (h2 for sections, h3 for subsections)
  • Preserved accessibility and WCAG 2.1 AA compliance
<!-- After: Valid Swedish headings -->
<h3>Övervakning & Loggning</h3>
<h2>Styrning & Efterlevnad</h2>

All affected headings:

  • Access & Respons
  • Utveckling & Operations
  • Övervakning & Loggning
  • Infrastruktur & Access
  • Enheter & Fjärraccess
  • Affärskontinuitet & Risk
  • Backup & Återställning (2 instances)
  • Styrning & Efterlevnad
  • Efterlevnad & Regulatoriskt
  • Datahantering & Klassificering
  • Styrning & Hantering
Original prompt

blog_sv.html contains some errors that need to be fixed

Running Validator
"file:/github/workspace/./blog_sv.html":1161.43-1161.71: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1161.102-1161.106: error: Stray end tag "h3".
"file:/github/workspace/./blog_sv.html":1180.44-1180.69: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1180.110-1180.114: error: Stray end tag "h2".
"file:/github/workspace/./blog_sv.html":1217.27-1217.30: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1217.65-1217.69: error: Stray end tag "h3".
"file:/github/workspace/./blog_sv.html":1225.47-1225.72: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1225.108-1225.112: error: Stray end tag "h2".
"file:/github/workspace/./blog_sv.html":1251.44-1251.72: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1251.112-1251.116: error: Stray end tag "h3".
"file:/github/workspace/./blog_sv.html":1270.51-1270.76: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1270.113-1270.117: error: Stray end tag "h2".
"file:/github/workspace/./blog_sv.html":1272.43-1272.71: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1272.108-1272.112: error: Stray end tag "h3".
"file:/github/workspace/./blog_sv.html":1276.22-1276.25: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1276.62-1276.66: error: Stray end tag "h3".
"file:/github/workspace/./blog_sv.html":1322.42-1322.67: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1322.108-1322.112: error: Stray end tag "h2".
"file:/github/workspace/./blog_sv.html":1324.48-1324.76: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1324.119-1324.123: error: Stray end tag "h3".
"file:/github/workspace/./blog_sv.html":1362.50-1362.78: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1362.131-1362.135: error: Stray end tag "h3".
"file:/github/workspace/./blog_sv.html":1386.45-1386.73: error: Heading cannot be a child of another heading.
"file:/github/workspace/./blog_sv.html":1386.112-1386.116: error: Stray end tag "h3".

Custom agent used: ui-enhancement-specialist
Expert in HTML/CSS, web accessibility (WCAG 2.1 AA), responsive design, and UI/UX optimization for static websites and translations.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@sonarqubecloud
Copy link

Copilot AI changed the title [WIP] Fix markup errors in blog_sv.html Fix nested heading tags in blog_sv.html Jan 17, 2026
Copilot AI requested a review from pethers January 17, 2026 01:51
@pethers pethers marked this pull request as ready for review January 17, 2026 02:02
@pethers pethers merged commit 207f1af into master Jan 17, 2026
10 checks passed
@pethers pethers deleted the copilot/fix-errors-in-blog-sv-html branch January 17, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants