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

HTML disabled text field using aria-label not reading aria-label #7029

Closed
michelhebert opened this issue Mar 29, 2017 · 5 comments
Closed

HTML disabled text field using aria-label not reading aria-label #7029

michelhebert opened this issue Mar 29, 2017 · 5 comments

Comments

@michelhebert
Copy link

michelhebert commented Mar 29, 2017

Hi,

I'm running into an issue in IE11 where a disabled text field using aria-label is still reading it's <label> content instead of the aria-label value.

Based on the ARIA spec, aria-label should take precedence.

JSFiddle example: https://jsfiddle.net/33xw9snp/

Code used in the JSFiddle example:

<form>
  <fieldset>
    <legend>
        Please enter your phone number
    </legend>
    <div>
      <label for="phone-number">Phone number</label>
      <input type="text" id="phone-number" disabled>
    </div>
    <div>
      <label for="phone-extension">Ext.</label>
      <input type="text" id="phone-extension" aria-label="Extension" disabled>
    </div>
  </fieldset>
</form>

I haven't seen an issue opened/closed for this, so here you go.

Thanks!
Michel

@Adriani90
Copy link
Collaborator

@michelhebertI cannot reproduce this issue in IE11 and NVDA 2019.1. Could you please test if you are still having this problem?

@Adriani90
Copy link
Collaborator

Ok the initial author does not seem to be available anymore.

@ehollig
Copy link
Collaborator

ehollig commented Apr 15, 2019

@michelhebert are you still experiencing this issue in Internet Explorer? @Adriani90 was not able to from #7029 (comment)

@michelhebert
Copy link
Author

michelhebert commented Aug 15, 2019

@ehollig Still here, just a little delayed in responding. I just updated NVDA 2019.2 and ran it against the example with IE11. I'm still seeing the same issue.

What does NVDA output in the viewer for you?

I get the following:

    Please enter your phone number     
Phone number
edit  unavailable
 
Ext.
edit  unavailable

@Adriani90
Copy link
Collaborator

Closing as duplicate of #12177 which contains more discussion and is reproducible in every browser just like this one as well.

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

No branches or pull requests

3 participants