E-mail List Archives
Re: Empty <P> Tags For Spacing
From: Duff Johnson
Date: Feb 8, 2022 8:12AM
- Next message: Karen McCall: "Re: Empty
Tags For Spacing"
- Previous message: Cherish Prazeres: "Accessible website chat vendor"
- Next message in Thread: Karen McCall: "Re: Empty
Tags For Spacing"
- Previous message in Thread: Lars Ballieu Christensen: "Re: Empty
Tags For Spacing"
- View all messages in this Thread
That's an interesting perspective.
Do blank lines (zero characters between <p> and </p>) actually constitute... âcontentâ?
I agree - of course - that they aren't best-practice, but it's not obvious (at least to me) why they are relevant to accessibility such that its a WCAG failure to include them.
I would rather expect that the correct thing for AT to do is to ignore them in all cases. If one does not take this view then other nasty possibilities arise⦠such as authors using âdummyâ empty h# elements to âhelp" with document structure⦠or using empty <tr> to somehow âseparateâ tables⦠and on and on. Yuck.
I'sll toss out a strawman: in order to be represented by AT a given structure element should contain, at minimum, a space character.
Duff.
> On Feb 8, 2022, at 09:51, Lars Ballieu Christensen < <EMAIL REMOVED> > wrote:
>
> In my opinion, use of p-elements to achieve a certain visual presentation is a WCAG 2.1 violation (1.3.1); p-elements are intended to define paragraphs.. As blank lines are not semantically paragraphs, such use represents incorrect markup of content.
>
>
> On 08/02/2022, 15.01, "WebAIM-Forum on behalf of Duff Johnson" < <EMAIL REMOVED> on behalf of <EMAIL REMOVED> > wrote:
>
>> On Feb 8, 2022, at 01:05, Steve Green < <EMAIL REMOVED> > wrote:
>>
>> I'm not convinced it's a WCAG non-conformance, and I'm not sure it's even a nuisance. Does it have any impact on anyone?
>
> â¦and even if it does have an impact it seems like a AT problem, not a file-format issue.
>
>> Empty <P> tags are a big problem in PDFs, though. They cause JAWS (and possibly other screen readers) to say "blank", which we regard as a user experience issue, not a WCAG non-conformance.
>
> IMO, this is a description of what screen-readers are choosing to do⦠and they should choose otherwise. That a PDF might include an empty <P> does not force AT to present it.
>
>> More importantly, if they occur in lists, they break the list structure, which definitely is a WCAG non-conformance. We see this a lot in PDFs created in Word and PowerPoint.
>
> Yes; people use paragraphs within lists. It is for this reason that PDF 2.0 includes the concept of a âContinued listâ to provide support for this very common use-case.
>
> Duff.
> > > > >
>
>
> > > >
- Next message: Karen McCall: "Re: Empty
Tags For Spacing"
- Previous message: Cherish Prazeres: "Accessible website chat vendor"
- Next message in Thread: Karen McCall: "Re: Empty
Tags For Spacing"
- Previous message in Thread: Lars Ballieu Christensen: "Re: Empty
Tags For Spacing"
- View all messages in this Thread