Bug 484254 - [HTML][assist] Add content assist allowed-attributes-for-role feature
Summary: [HTML][assist] Add content assist allowed-attributes-for-role feature
Status: REOPENED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: JS Tools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility, triaged
Depends on:
Blocks:
 
Reported: 2015-12-11 14:35 EST by Carolyn MacLeod CLA
Modified: 2017-05-13 17:04 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carolyn MacLeod CLA 2015-12-11 14:35:43 EST
The ARIA "role" attribute is special in that it can change the semantics of an HTML tag for accessibility purposes.
So specifying a "role" on a tag filters the remaining "aria-*" attributes that can also be set on the tag.
It would be really cool and useful if this relationship was encoded in the HTML content assist.

For example, if a <div role="tree"> then the <div> can also support 
aria-activedescendant, aria-expanded, aria-multiselectable, and aria-required.

There's one more part to this relationship that would be really useful to encode:
some ARIA roles require that certain other attributes are included, for example role="checkbox" requires aria-checked. Consider implementing this also.
Comment 1 Michael Rennie CLA 2017-01-10 15:37:39 EST
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html
Comment 2 Carolyn MacLeod CLA 2017-05-13 15:41:05 EDT
This is even more relevant now that authoring tools are being called out in section 508:
http://www-03.ibm.com/able/guidelines/ci162/accessibility_checklist.html#authoring
Comment 3 Carolyn MacLeod CLA 2017-05-13 16:59:06 EDT
This is similar to Bug 516619 and can probably use the same code with different data.
Comment 4 Carolyn MacLeod CLA 2017-05-13 17:04:29 EDT
See also bug 484255 (similar, but not the same).