Accessible name computation and web-platform-tests

Hello,

I'm currently implementing the accessible name computation for HTML
elements following https://w3c.github.io/accname/ and comparing the results
with
https://github.com/web-platform-tests/wpt/tree/574af55b103d2e732efa72af2719121f96db38f3/accname
..

There's currently one test case that confuses me:
<h2>
  Country of origin:
  <input role="combobox" type="text" title="Choose your country."
value="United States">
</h2>
from
https://github.com/web-platform-tests/wpt/blob/574af55b103d2e732efa72af2719121f96db38f3/accname/name_heading-combobox-focusable-alternative-manual.html

The test expects the accessible name for the h2 element to be "Country of
origin: United States". However, I'm not sure which path in
https://w3c.github.io/accname/#mapping_additional_nd_te is taken to arrive
at this computation as I arrive at "Countr of origin: Choose your country".

From my understanding we use 2F since h2 allows name from content and then
we concetanate the text node and the accessible name of the input. However
for the input I would use 2D which isn't defined in this document as far as
I can tell. So I looked into
https://w3c.github.io/html-aam/#input-type-text-input-type-password-input-type-search-input-type-tel-input-type-url-and-textarea-element
and
there it says I should use the `title`. There's no mention of using the
`value` attribute.

What I could see is 2E being used for the input (combobox) and then the
`value` being considered as the selected option.

I would appreciate it if somebody could clarify this. So far the documents
have been very clear to me.

Kind regards,
Sebastian

Received on Sunday, 20 October 2019 14:45:34 UTC