Re: Heading inside Caption - all good?

Hi Louise,


> Can I check if this means this is now a viable option? Or do other things need to happen first?


I am not sure yet. I have asked Jan an ancillary question; navigating with 'T', is the text read out, albeit not announced as a heading, which seems OK to me so far (if it *is* read out). Jan also raised an issue for weighing up: an instance of repetition.


I am waiting to hear back from Jan, and perhaps others.


Once I have more feedback I will summarize where, for me, this leaves this technique; hopefully as a useful one : )


Alan


________________________________
From: Louise Lister <Louise.Lister@iop.org>
Sent: Thursday, July 29, 2021 4:19 AM
To: Bristow, Alan; John Foliot
Subject: RE: Heading inside Caption - all good?

Ce message a été envoyé par un expéditeur externe. Veuillez faire preuve de prudence et ne pas cliquer sur les liens ou ouvrir les pièces jointes à moins de reconnaître l'expéditeur et de savoir que le contenu est sûr.

This message was sent from an external sender. Please exercise caution and do not click links or open attachments unless you recognize the sender and know the content is safe.




Hi John and Alan,

Can I check if this means this is now a viable option? Or do other things need to happen first?

If so, it will save us a trying to think up additional similar table caption headings when we could simply transition an existing H2 into a table caption. None of our tables are treated as asides, they are an integral part of the main body of content.

With kind regards
Louise


From: Bristow, Alan <Alan.Bristow@elections.ca>
Sent: 28 July 2021 15:55
To: John Foliot <john@foliot.ca>
Cc: w3c-wai-ig@w3.org
Subject: Re: Heading inside Caption - all good?


Hi John,



Thanks, yes it's part of HTML5 now (Content model > Flow content) https://html.spec.whatwg.org/multipage/tables.html#the-caption-element<https://gbr01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhtml.spec.whatwg.org%2Fmultipage%2Ftables.html%23the-caption-element&data=04%7C01%7Clouise.lister%40iop.org%7C18e689cde7c34addfb2c08d951d8744a%7C8b8986af18bb4882a149fa5a3dd1f995%7C0%7C0%7C637630812372934849%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1UXM6F2hKrj%2BvRt1L%2BJOgG1qmbumDxceTV4XpPc8YPo%3D&reserved=0>



It's just not something I've seen, even though I have seen the same thing done with LEGEND. I just seems to make good sense to me.



Cheers,



Alan



________________________________
From: John Foliot <john@foliot.ca<mailto:john@foliot.ca>>
Sent: Wednesday, July 28, 2021 9:34 AM
To: Bristow, Alan
Cc: w3c-wai-ig@w3.org<mailto:w3c-wai-ig@w3.org>
Subject: Re: Heading inside Caption - all good?

Ce message a été envoyé par un expéditeur externe. Veuillez faire preuve de prudence et ne pas cliquer sur les liens ou ouvrir les pièces jointes à moins de reconnaître l'expéditeur et de savoir que le contenu est sûr.

This message was sent from an external sender. Please exercise caution and do not click links or open attachments unless you recognize the sender and know the content is safe.


Ran your sample code through the W3C validator:

Document checking completed. No errors or warnings to show.

Source

  1.  <!DOCTYPE html>↩
  2.  <html lang="">↩
  3.  <head>↩
  4.  <title>Test</title>↩
  5.  </head>↩
  6.  <body>↩
  7.  <table>↩
  8.  <caption><h4>Cat food preferences</h4></caption>↩
  9.  <tr><td>foo</td></tr>↩
  10. </table>↩
  11. </body>↩
  12. </html>
I'd do some AT testing to ensure it works as expected, but this does seem like a viable option.

JF

On Wed, Jul 28, 2021 at 8:41 AM Bristow, Alan <Alan.Bristow@elections.ca<mailto:Alan.Bristow@elections.ca>> wrote:
​Hi,

With the Content Model in HTML5 for the CAPTION tag being Flow content (which includes H1 - H6), I am proposing to title TABLES as follows:...

<table>
<caption><h4>Cat food preferences</h4></caption>
...
</table>

...rather than a H# tag above the  TABLE and a CAPTION inside it (often with somewhat duplicated/similar text).

Audio AT users previewing the main areas of a page will then hear a TABLE announced (due to the presence of the H# tag), and there is a programmatic relationship between title text and the TABLE due to the use of CAPTION.

If you know of any negative impact to the use of H# inside CAPTION I would be interested to hear. Thanks.

Cheers,

Alan

-Alan Bristow
Web Programmer
Elections Canada
alan.bristow@elections.ca<mailto:alan.bristow@elections.ca>


--
John Foliot | Senior Industry Specialist, Digital Accessibility
"I made this so long because I did not have time to make it shorter." - Pascal "links go places, buttons do things"


________________________________
This email (and attachments) are confidential and intended for the addressee(s) only. If you are not the intended recipient please immediately notify the sender, permanently and securely delete any copies and do not take action with it or in reliance on it. Any views expressed are the author's and do not represent those of IOP, except where specifically stated. IOP takes reasonable precautions to protect against viruses but accepts no responsibility for loss or damage arising from virus infection. For the protection of IOP's systems and staff emails are scanned automatically..

Institute of Physics. Registered charity no. 293851 (England & Wales) and SCO40092 (Scotland)
Registered Office:  37 Caledonian Road, London, N1 9BU<https://goo.gl/maps/DUHbKcbzuUN2>

Your privacy is important to us. For information about how IOP uses your personal data, please see our Privacy Policy<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.iop.org%2Fprivacy%2Findex.html&data=02%7C01%7C%7C6716aa3c6fd84da5102808d5c0b234a0%7Cf9ee42e6bad04e639115f704f9ccceed%7C0%7C0%7C636626793962820374&sdata=RI6OT4MumRlklNzF5i2M9ZxS6P%2FxxLg%2FJwcnMJ%2B0480%3D&reserved=0>

________________________________

Received on Thursday, 29 July 2021 11:46:41 UTC