w3c / wcag

Web Content Accessibility Guidelines
https://w3c.github.io/wcag/guidelines/22/
Other
1.09k stars 247 forks source link

Clarify if SC 2.4.4 requires paragraph to be a P element in HTML #2109

Open mraccess77 opened 2 years ago

mraccess77 commented 2 years ago

SC 2.4.4 allows for link purpose within a paragraph. Paragraph is not defined - so generally we fall to the dictionary definition of paragraph which appears to be:

"a distinct section of a piece of writing, usually dealing with a single theme and indicated by a new line, indentation, or numbering."

In that case a link within a span, section, div, p, etc. could still pass as being in a requirement if it meet the above.

Related to issues #1745

detlevhfischer commented 2 years ago

In my book the definition would apply to div the same way as it applies to p. I have included an example for both sentence in p and in div at the bottom of http://3needs.org/en/testing/code/link-issues.html In Jaws, ALT + up arrow behaves the same in both cases (reading sentence up to the link focused). There may be other contexts of course where it might make a difference - not sure.

scottaohara commented 2 years ago

should reference HTML to make it more clear that paragraph is a p, but doesn't have to be a p.

https://html.spec.whatwg.org/multipage/dom.html#paragraphs

mraccess77 commented 2 years ago

JAWS also supports the control+numpad 5 command to read the current paragraph for divs and other flow content.

detlevhfischer commented 2 years ago

JAWS also supports the control+numpad 5 command to read the current paragraph for divs and other flow content.

Strange - that was the first command I tried but that didn't work here (just read the link itself, in both cases)