Repository navigation
Name XCCDF report rule-details dialogs from their visible heading - #2489
Open
liangzaihuanyv wants to merge 1 commit into
Open
liangzaihuanyv wants to merge 1 commit into
liangzaihuanyv wants to merge 1 commit into
Conversation
Associate each rule-details dialog with the heading in its own cloned panel. Retain the rule ID fallback when the rule has no title, and regenerate the checked-in report resource from the JavaScript change. Fixes OpenSCAP#2488
|
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.



Resolves #2488.
The generated XCCDF HTML report displays a heading when a rule's details are opened, but does not expose it as the accessible name of the dialog. This change assigns the cloned heading a per-dialog ID and references it with
aria-labelledby. It keeps the existing rule-ID fallback when no title is available. Focus management, Bootstrap, and assessment behavior are unchanged.Regenerated the checked-in report resource with the unmodified report-resource generator. With pristine inputs, the same toolchain reproduced the upstream resource byte for byte.
Validation: An independent local rerun used the same synthetic XCCDF fixture and report stylesheets for both versions. The offline Chrome check had 22 failures across 65 assertions for the original report and passed all 65 for the updated report. Coverage includes opening a dialog for a different rule and retaining the existing rule-ID fallback. The OpenSCAP CLI, full test suite, and upstream CI were not run.
Disclosure: AI assistance was used for the patch and local verification.