Skip to content

Conversation

@smhigley
Copy link
Contributor

@smhigley smhigley commented Sep 25, 2025

Closes #2631

Right now, the spec says that aria-valuenow should default to 0 even if on an element like <input type="text"> with a native value.

This PR updates the spec to specify that the native value should be used if it exists and aria-valuenow is undefined, falling back on 0 if both are absent.

A few questions to resolve include:

  • should element.ariaValueNow be mapped to value if aria-valuenow is not present, or should it be an AAM thing?
  • This came up because of role=spinbutton, but I think it's equally appropriate if less frequent on other aria-valuenow-supporting roles. Does that seem reasonable?

Test, Documentation and Implementation tracking

Once this PR has been reviewed and has consensus from the working group, tests should be written and issues should be opened on browsers. Add N/A and check when not applicable.

  • "author MUST" tests:
  • "user agent MUST" tests:
  • Browser implementations (link to issue or commit):
    • WebKit:
    • Gecko:
    • Blink:
  • ACT review?
  • Does this need AT implementations?
  • Related APG Issue/PR:
  • MDN Issue/PR:

Preview | Diff

@netlify
Copy link

netlify bot commented Sep 25, 2025

Deploy Preview for wai-aria ready!

Name Link
🔨 Latest commit 1e5fb49
🔍 Latest deploy log https://app.netlify.com/projects/wai-aria/deploys/68d57875c3489600084bf3eb
😎 Deploy Preview https://deploy-preview-2643--wai-aria.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Projects

Development

Successfully merging this pull request may close these issues.

[aria-valuenow]: default to native value when one exists

2 participants