IDs for H1 - ADA Compliance

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
Jess77
Sr. Propeller Head
Posts: 154
Joined: Thu May 01, 2014 3:19 pm
Location: Florida
Contact:

IDs for H1 - ADA Compliance

Post by Jess77 »

How do you get Flare to assign each H1 an ID at runtime?

I am using a tri-pane skin. One of the tests we are failing is telling the screen reader to skip the tri-pane frame and begin reading the H1 on each page.

There is a way to put a command in the tri-pane file that tells the screen reader to jump to the H1 - provided that the H1 has an ID of some kind. Given that I have thousands of H1s, I cannot reasonably add H1s manually.

Is there a way to add an ID to the H1 style? (with a variable that creates an ID)
The ID does not matter. The only requirement is that each H1 tag begins with "<H1 id="#">" in the output.
Jessica N.
Certified MadCap Advanced Developer for Flare
jjw
Sr. Propeller Head
Posts: 133
Joined: Thu May 08, 2014 4:18 pm
Location: Melbourne

Re: IDs for H1 - ADA Compliance

Post by jjw »

Could you use something like rehype-slug to process the output? It's a plugin for rehype that adds ids to html headings using the heading slug as the id. I don't think you can restrict it to specific heading levels though.
Post Reply