Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does personalization semantics work as an ARIA module? #54

Open
michael-n-cooper opened this issue Mar 7, 2018 · 3 comments
Open

Does personalization semantics work as an ARIA module? #54

michael-n-cooper opened this issue Mar 7, 2018 · 3 comments
Assignees
Labels
implementation Approaches to add personalization semantics to content

Comments

@michael-n-cooper
Copy link
Member

When I submitted #50 I intended to include a description of how to use the personalization semantics vocabulary could be expressed as ARIA attributes. But as I thought about what the section would have to say I realized it would not work as currently conceived. Several other people have also asked about the structure with respect to ARIA, so I wanted to put a description of the issues in one place.

There are several challenges to implementing personalization semantics as an ARIA module:

  1. The function of ARIA is to define semantics that map to Accessibility APIs. However, nearly all the features in personalization semantics do not map to AAPIs. I do not think we expect tools will access the semantics through accessibility APIs, so there would be no need or value in adding that layer to the mix. Unless we can make a compelling argument that accessibility API mappings are possible and needed, I don't think the ARIA WG will support this as an ARIA module.
  2. Most of the personalization semantics properties require values. This means they would need to be implemented as attributes in ARIA / HTML. Currently we expect that would be done with the "aui" prefix like aui-action="compose". However, HTML does not permit attributes with this prefix. The use of attributes with the "aria" prefix took years to negotiate. In order to create aui attributes, we would need to convince the Web Platform Working Group to accept attributes with the "aui" prefix, which could be a long negotiation and ultimately not succeed. Alternatively we could try to convince the ARIA Working Group to allow us to use the "aria" prefix, but for the reason above I'm not sure that would succeed.
  3. It might be possible to recast the personalization semantics properties into a form that does not require values. Then it would be possible to use them as values of an existing attribute like role, using the "aui" prefix in some form like role="aui-compose". But it would take some exploration to determine whether the role attribute is suitable for this. We could propose a new attribute for personalization, which has the advantage of only requiring one new attribute instead of an indefinite set, but that still has a long path. And this approach would only work if we can find a way to make all personalization features work without requiring values.

We will need to determine the resolution to those issues to be able to describe how to use personalization semantics as an ARIA module. If we are not able to address those issues, we will have to conclude that personalization semantics does not map to ARIA. Currently that leaves HTML Microdata as the most likely way to apply the vocabulary to content.

@johnfoliot
Copy link
Contributor

johnfoliot commented Mar 14, 2018

FWIW, I personally prefer the idea behind Option 3, but with the option of exploring a new single attribute: "intent" (a cousin of, and similar to @ role). To my mind @ role defines the "what", where-as a new @ intent attribute would define the "why".

I think approaching WebPlat with the idea of a single new attribute would likely be openly received by that WG.

Additionally, if this TF proceeds on that path, I would then question whether this TF needs to remain working under the ARIA WG banner (perhaps being re-sponsored by APA or the AG WG?) - but that is a separate issue.

@joanmarie
Copy link

The other problem with using role is that role maps to something on platform accessibility APIs. Using it for other purposes raises two concerns in my mind:

  1. Risk of breaking accessibility for assistive technology users.
  2. We'll have to add all the new "roles" to an AAM which seems rather pointless since those new "roles" aren't even intended for ATs and thus don't need mappings; the mappings would just be to try to prevent the previous item.

I dig @johnfoliot's idea of a new property like intent. Neat suggestion!!

@johnfoliot
Copy link
Contributor

johnfoliot commented Mar 14, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implementation Approaches to add personalization semantics to content
Projects
None yet
Development

No branches or pull requests

4 participants