Skip to content

associationlist and related roles have tediously long names #1662

Open
@cookiecrook

Description

@cookiecrook

associationlist and related roles have tediously long names. These look like ObjC naming conventions: associationlist:item:value: ;-)

associationlist: A section containing associationlistitemkey and associationlistitemvalue elements.
associationlistitemkey: A single key item in an association list.
associationlistitemvalue: A single value item in an association list.

I don't have a particular preference other than "not what's there" but in the interest of forwarding the discussion, I'd suggest the following:

  1. Remove associationlist entirely. I don't think there needs to be any distinction between list and associationlist in the Accessibility APIs.
  2. listitemkey and listitemvalue may be sufficient. It's possible listitemvalue could be an alias of listitem… I'm not certain, but the existence of a key may be all that's needed to distinguish between standard lists (~html:ol/html:ul) and these (~html:dl)

Activity

pkra

pkra commented on Dec 16, 2021

@pkra
Member

Related: #961

added this to the ARIA 1.3 milestone on Dec 16, 2021
smhigley

smhigley commented on Dec 16, 2021

@smhigley
Contributor

+1 to the first option

brennanyoung

brennanyoung commented on Feb 1, 2022

@brennanyoung
Contributor

It would simplify matters to permit the key/value roles inside list, whatever they may be called. (I agree the currently suggested names are too long).

What happens if people use key & value elements and plain listitem elements in the same list? Is that a problem?

If this is about parity with HTML, it should not be allowed, but I can imagine cases where it would be useful to do so. (e.g. if there is a placeholder listitem for an as-yet-unknown key-value pair).

pkra

pkra commented on Apr 28, 2022

@pkra
Member

I'm in favor of the OP.

I have a slight preference for keeping listitemvalue (or whatever name we come up with) separate from listitem because of the different (possible) structure of 1 DT followed by multiple DDs.

self-assigned this
on May 5, 2022
scottaohara

scottaohara commented on May 5, 2022

@scottaohara
Member

@jnurthen going to add myself here as a second assignee. we can discuss / i can do the associated HTML AAM stuffs.

self-assigned this
on May 5, 2022
added a commit that references this issue on May 11, 2022
fda6c4c
added
featuremay add new concept(s) to ARIA which will require implementations or APG changes
on Jul 1, 2022

7 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

featuremay add new concept(s) to ARIA which will require implementations or APG changes

Type

No type

Projects

  • Status

    James Nurthen

Relationships

None yet

Development

No branches or pull requests

Issue actions

    associationlist and related roles have tediously long names · Issue #1662 · w3c/aria

    Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

    Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant