From f8afb8fcfdca864fd7c849f6f5d5c63641e43c48 Mon Sep 17 00:00:00 2001 From: Giacomo Petri Date: Thu, 1 Aug 2024 18:45:27 +0200 Subject: [PATCH 1/2] Update non-empty title HTML reference (#2203) Co-authored-by: Carlos Duarte --- _rules/html-page-non-empty-title-2779a5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/html-page-non-empty-title-2779a5.md b/_rules/html-page-non-empty-title-2779a5.md index c594dc09fe..8dedc650f7 100755 --- a/_rules/html-page-non-empty-title-2779a5.md +++ b/_rules/html-page-non-empty-title-2779a5.md @@ -51,7 +51,7 @@ For each target element, the first [HTML][] `title` element that is a [descendan ## Assumptions -This rule assumes that [Success Criterion 2.4.2 Page Titled](https://www.w3.org/TR/WCAG22/#page-titled) does not require that a document only has one `title` element, nor that it is a child of the `head` element of a document. While this is invalid in HTML, the HTML 5.2 specification describes what should happen in case of multiple titles, and titles outside the `head` element. Because of this, neither of these validation issues causes a conformance problem for WCAG. Regardless of whether this is required by 2.4.2 Page Titled, failing this rule means the success criterion is not satisfied. +This rule assumes that [Success Criterion 2.4.2 Page Titled](https://www.w3.org/TR/WCAG22/#page-titled) does not require that a document only has one `title` element, nor that it is a child of the `head` element of a document. While this is invalid in HTML, the [HTML specification](https://html.spec.whatwg.org/multipage/dom.html#the-title-element-2) describes what should happen in case of multiple titles, and titles outside the `head` element. Because of this, neither of these validation issues causes a conformance problem for WCAG. Regardless of whether this is required by 2.4.2 Page Titled, failing this rule means the success criterion is not satisfied. This rule assumes that the title of the page is not provided by a higher-level protocol. For example, the subject field of an email authored in HTML can provide a title without requiring a `title` element. In such a case, this rule will fail while [Success Criterion 2.4.2 Page Titled](https://www.w3.org/TR/WCAG22/#page-titled) may still be satisfied. From d9a44b4089f35e74dca054501fb329cfef1e2ff2 Mon Sep 17 00:00:00 2001 From: Giacomo Petri Date: Thu, 1 Aug 2024 18:55:37 +0200 Subject: [PATCH 2/2] Links with identical accessible names and same context serve equivalent purpose" [fd3a94]: Reduced images size for failed examples [4,8] (#2178) * Update links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md * Update links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md --------- Co-authored-by: Carlos Duarte --- ...context-serve-equivalent-purpose-fd3a94.md | 36 +++++++------------ 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md b/_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md index fe6557e46e..162a8ca945 100755 --- a/_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md +++ b/_rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md @@ -289,8 +289,8 @@ These two HTML `a` elements have the same [accessible name][] and [context][prog
Contact us - Chat - Phone + Chat + Phone Contact us - Chat - Phone + Chat + Phone Contact us - Chat - Phone + Chat + Phone

- + Contact us - - + + - - + +

@@ -399,8 +389,8 @@ These two HTML `a` elements with the same [accessible name][] and [context][prog

Contact us - Chat - Phone + Chat + Phone Contact Us