Problem/Motivation
The per-node audit page (/node/{nid}/content-first-audit) rendered by NodeAuditController shows only a flat count per check (e.g., "3" for empty blocks or "2" for missing alt attributes). This gives editors no actionable detail: they cannot tell which images are missing their alt attribute, nor which block-level tags are empty. The report is accurate but not useful enough to act on without manually inspecting the page.
Proposed resolution
-
Empty block breakdown. Extend
EmptyBlockTagCheck(and its storage/display layer) to return a per-tag breakdown rather than a single integer. For example, instead of "5", the report should show "3<p>, 2<div>are empty". TheAuditFieldsformat callable and the table row inNodeAuditControllershould be updated to render this structured detail. -
Affected images detail. For the
missing_alt_countandempty_alt_countchecks, capture thesrc(and, where present, the surrounding context such as a file name) of each offending<img>;element.
Display these as an expandable list or a sub-row in the node audit table so editors can identify and fix the specific images.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | empty_alt_invalid_headings.png | 56.43 KB | eduardo morales alberti |
| #3 | missing_alt.png | 39.94 KB | eduardo morales alberti |
| #3 | empty_blocks.png | 38.24 KB | eduardo morales alberti |
| #3 | issue_details.png | 184.73 KB | eduardo morales alberti |
Issue fork content_first-3593674
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
eduardo morales albertiIssue node details Page:




Empty blocks:
Missing alt:
Empty alt, invalid headings:
Comment #4
eduardo morales albertiReady to review
Comment #6
lpeidro commentedThe functionality works as expected. We applied two changes to the cache configuration:
It is ready to merge.
Comment #8
eduardo morales albertiFixed and merged!