E-mail List Archives
Re: heading as child of another heading - valid?
From: Tomlins Diane
Date: Mar 30, 2018 1:22PM
- Next message: Tomlins Diane: "Re: heading as child of another heading - valid?"
- Previous message: Steve Faulkner: "Re: heading as child of another heading - valid?"
- Next message in Thread: Tomlins Diane: "Re: heading as child of another heading - valid?"
- Previous message in Thread: Steve Faulkner: "Re: heading as child of another heading - valid?"
- View all messages in this Thread
> Is it possible that that markup is modified by scripting, so that's not what Nu saw?
Nope, there's no scripting affecting this code. I even copy/pasted in the completely rendered code, same results.
>(And what's up with those heading levels? Should it actually be an H2, or an H4? Or H-something-else-entirely?)
Well.. yes, the heading levels are all out of whack too, that's just another battle I fight every day with our field people.
Diane R Tomlins
HCA IT&S | Digital Media
Accessibility SME
sb
Sarah E. Bourne
Director of IT Accessibility
Executive Office of Technology Services and Security (EOTSS)
1 Ashburton Place, 8th Floor, Boston, MA 02108
Office: (617) 626-4502
<EMAIL REMOVED> | www.mass.gov/eotss
-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Tomlins Diane
Sent: Friday, March 30, 2018 2:31 PM
To: <EMAIL REMOVED>
Subject: [WebAIM] heading as child of another heading - valid?
I ran into this bit of code the other day on one of our sites (for an accordion, which is bad enough in and of itself):
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseImage1" aria-expanded="true" aria-controls="collapseImage1">
<img class="centered" alt="" src="/util/images/campaigns/virtual-care/header.png">
<h2 style="text-align: center;">Healthcare excellence at your fingertips. <i aria-hidden="true" class="icon-plus-sign-2"></i></h2>
</a>
</h4>
An H2 nested INSIDE an H4. When I ran it through the Nu validator, it didn't flag this nesting as an error, not even a warning. Why is this not flagged??
I found some old references on the web where the older validator DID flag it with " Heading cannot be a child of another heading", so is it somehow not an issue any longer? I've been writing HTML for a very long time, and I would flag this as invalid.
Does this cause any issues for AT? I only have NVDA as my frame of reference.
Thanks!
Diane R Tomlins
HCA IT&S | Digital Media
Accessibility SME
- Next message: Tomlins Diane: "Re: heading as child of another heading - valid?"
- Previous message: Steve Faulkner: "Re: heading as child of another heading - valid?"
- Next message in Thread: Tomlins Diane: "Re: heading as child of another heading - valid?"
- Previous message in Thread: Steve Faulkner: "Re: heading as child of another heading - valid?"
- View all messages in this Thread