-
Notifications
You must be signed in to change notification settings - Fork 2
Assistive HTML: consider annotating currently-inactive UI HTML elements as 'inert' #271
Description
Is your feature request related to a problem? Please describe.
The HTML in the application's singleton index.html page contains HTML elements to describe multiple views within the application - e.g. the search panel, the meal-planner panel, shopping list panel, and so on.
Only a single view is active at any given time, and so the content of the other views should not be navigable.
The HTMLWG spec defines an inert attribute that can be used to indicate that certain HTML element trees are currently not intended to be part of of the navigable webpage as presented to the user. It is possible that these attributes can be updated by dynamic code (e.g. scripts) in the HTML page.
I haven't yet encountered any problems in web browser user agents as a result of the application's inactive HTML elements lacking the inert property. But now that we're aware of it, it may be worth adding since it could help other user agents and/or assistive technology.
Describe the solution you'd like
- Add the
inertproperty to all of the non-default application views (the default is the search view -- we should not addinertto that, because users opening the application for the first time will be displayed the search UI and it will be navigable/usable and thus not inert). - Update the view-change logic in the application to:
- Remove the
inertproperty from the HTML elements related to the view that has been selected. - Add the
inertproperty to the HTML elements related to the view that was previously selected.
- Remove the
Describe alternatives you've considered
N/A
Additional context
N/A