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

<noscript> element is included in accessible name as plain text #133

Open
ymrl opened this issue Jun 11, 2024 · 0 comments
Open

<noscript> element is included in accessible name as plain text #133

ymrl opened this issue Jun 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ymrl
Copy link
Owner

ymrl commented Jun 11, 2024

I found it on Apple webpage, it seems including <noscript> element in accessible name as like a plain text.

screenshot:  “Apple Integilence“ image arranged as heading level 3, and the name is ”Apple Inteligence <picuture class="...

The HTML Structure:

<h3>
  <picture ...>
    <source ...>
    <img src="..." alt="Apple Intelligence">
  </picture>
  <noscript>
    <picture ...>
      <source ...>
      <img src="..." alt="Apple Intelligence">
     </source>
  </picture>
</h3>

I think it is the best that it shows without <noscript>, but there is no way to tell dom-accessibility-api whether JavaScript is enabled or not.

What we can do for this?
<noscript> should handled as a HTML element? but because accessible name calculatior cannot know JavaScript enabled, it will be shows Apple Intelligence Apple Intelligence as accessible name. (however, if really Javascript is disabled, it seems to be real...)

@ymrl ymrl added the bug Something isn't working label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant