Conversation
…ed marker Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/96f102c7-9c22-473d-aa0f-12fce59a898c Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pethers
April 21, 2026 21:24
View session
pethers
approved these changes
Apr 21, 2026
Contributor
🏷️ Automatic Labeling SummaryThis PR has been automatically labeled based on the files changed and PR metadata. Applied Labels: html-css,translation,size-s,news Label Categories
For more information, see |
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Contributor
There was a problem hiding this comment.
Pull request overview
Restores repository-wide HTML normalization consistency for the 2026-04-21 government-propositions news articles so they satisfy the tests/html-consistency.test.ts contract (notably the <body data-rm-normalized="v9"> marker).
Changes:
- Added
data-rm-normalized="v9"to the<body>element in both affected articles. - Normalized the language switcher block to only include the available EN/SV variants for this date/type.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| news/2026-04-21-government-propositions-en.html | Adds normalization marker on <body> and aligns language switcher to EN/SV-only output for this page. |
| news/2026-04-21-government-propositions-sv.html | Adds normalization marker on <body> and aligns language switcher to EN/SV-only output for this page. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two newly-added articles bypassed the normalization pipeline, leaving their
<body>without thedata-rm-normalizedattribute and breakingtests/html-consistency.test.ts.Changes
scripts/cleanup-html-consistency.pyon the offending files, which:data-rm-normalized="v9"on<body><article>(standard chrome layout)Files touched
news/2026-04-21-government-propositions-en.htmlnews/2026-04-21-government-propositions-sv.htmlNo script, template, or test logic was modified — only content was reconciled with the existing normalizer contract.