Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 11ty/guidelines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ const loadRemoteGuidelines = async (version: WcagVersion, stripRespec = true) =>
// so that names parse consistently
$("bdi").remove();

// Remove role="heading" + aria-level from notes/issues, as they cause more harm than good
// (especially in context of content reuse via wcag.json export)
$("[role='note'] .marker").removeAttr("role").removeAttr("aria-level");

if (!stripRespec) return $;

// Re-collapse definition links and notes, to be processed by this build system
Expand Down