From cd3386c56846bab828d04611093f260f462dd967 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 9 Sep 2024 10:07:06 +0200 Subject: [PATCH 1/2] 4.1.1 Parsing Example - should have "(ADDED)" notation in it Fixes #502 --- comments-by-guideline-and-success-criterion.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comments-by-guideline-and-success-criterion.md b/comments-by-guideline-and-success-criterion.md index 9a311f13..ad2ae18a 100644 --- a/comments-by-guideline-and-success-criterion.md +++ b/comments-by-guideline-and-success-criterion.md @@ -1118,7 +1118,7 @@ This success criterion would be satisfied in cases where: * Non-web documents or software are not authored using a markup language. * Non-web documents or software are authored using a markup language, but accessibility information is exposed via platform accessibility APIs, not by making the markup itself available to assistive technologies. -
+
Examples where 4.1.1 Parsing would be satisfied: From 022676c2a33aa2d24f94810e1707e0dc8bc5826e Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 9 Sep 2024 18:02:36 +0200 Subject: [PATCH 2/2] Replace inner HTML --- wcag2ict.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wcag2ict.js b/wcag2ict.js index 9260a2dd..02473ba7 100644 --- a/wcag2ict.js +++ b/wcag2ict.js @@ -307,8 +307,7 @@ function furtherProcessNotesAndExamples() { }) let wcag2ictExamples = document.querySelectorAll("div.example.wcag2ict"); wcag2ictExamples.forEach(example => { - example.textContent =example.textContent.replace("\n\nExample:", "\n\nExample (Added):"); - console.log(example.textContent) + example.innerHTML = example.innerHTML.replace("Example:", "Example (Added):"); }) } function finalCleanup() {