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

UIA: Reporting landmark shouldn't rely on localized landmark property #7328

Closed
LeonarddeR opened this issue Jun 27, 2017 · 9 comments · Fixed by #7333
Closed

UIA: Reporting landmark shouldn't rely on localized landmark property #7328

LeonarddeR opened this issue Jun 27, 2017 · 9 comments · Fixed by #7333
Milestone

Comments

@LeonarddeR
Copy link
Collaborator

In Edge, NVDA relies on UIAHandler.UIA_LocalizedLandmarkTypePropertyId to retrieve landmark information. In Dutch, landmark translations are fairly poor. For example, main translates to vast, which back translates to fixed (as in fixed size). Reporting landmarks in Dutch breaks anyway.

There is also UIAHandler.UIA_LandmarkTypePropertyId. We might be able to use that instead?

@josephsl
Copy link
Collaborator

josephsl commented Jun 27, 2017 via email

@jcsteh
Copy link
Contributor

jcsteh commented Jun 28, 2017 via email

@michaelDCurran
Copy link
Member

landMarkType only has a hand full of constants. I guess we should at least support the constants it does have. but from memory some pretty important ones are missing currently. If role is exposed via ariaProperties then we could also just use that.

@derekriemer
Copy link
Collaborator

derekriemer commented Jun 28, 2017 via email

@LeonarddeR
Copy link
Collaborator Author

landMarkType only has a hand full of constants. I guess we should at least support the constants it does have. but from memory some pretty important ones are missing currently.

Banner, complementary and contentinfo are missing.

@LeonarddeR
Copy link
Collaborator Author

If role is exposed via ariaProperties then we could also just use that.

It is. So we can just go the role way using aria properties, or use the excisting landmark constants and fallback to role for the landmarks which don't have a constant. Personally, I prefer the first approach.

@jcsteh
Copy link
Contributor

jcsteh commented Jun 28, 2017 via email

@LeonarddeR
Copy link
Collaborator Author

So does LocalizedLandmark still work for the missing landmarks?

Yes

And if so, what does (non-localized) Landmark return in that case?

The number 80000, UIA_CustomLandmarkTypeId

Note that we should still probably use LocalizedLandmark for quick nav, since there can be multiple ARIA roles and I don't think there's a way to do a token match with UIA conditions.

Sounds like we are on one line here.

@LeonarddeR
Copy link
Collaborator Author

Note that we should still probably use LocalizedLandmark for quick nav.

Coming back to this, it turns out that we can use the unlocalized Landmark property without problems, since it is not 0 for landmarks.

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

Successfully merging a pull request may close this issue.

6 participants