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

IE11: aria-describedby on buttons inside iFrames not respected #5784

Closed
segedyjr opened this Issue Mar 1, 2016 · 3 comments

Comments

Projects
None yet
4 participants
@segedyjr
Copy link

segedyjr commented Mar 1, 2016

Normally, NVDA correctly reads the describedby element associated with a button, as in the example on this web page: http://3needs.org/en/testing/code/aria-describedby-1.html

However, if that page is inserted into an iFrame, the describedby element is no longer read in IE 11. This can be seen by creating the following page:

<html><body>
<iframe src="http://3needs.org/en/testing/code/aria-describedby-1.html"></iframe>
</body></html>

The search for a describedby element seems to occur only in the elements outside the iFrame. If you change the page to the following...

<html><body>
<iframe src="http://3needs.org/en/testing/code/aria-describedby-1.html"></iframe>
<div id="descriptionClose">My description.</div>
</body></html>

NVDA will identify the div outside the iFrame as the describedby element rather than the describedby element inside the iFrame.

This is probably a problem with IE 11, but I figured I'd at least let the issue be known.

@jcsteh

This comment has been minimized.

Copy link
Contributor

jcsteh commented Mar 4, 2016

@yalingliu2

This comment has been minimized.

Copy link

yalingliu2 commented Apr 4, 2016

The bug is in virtualBuffers/MSHTML.py, class MSHTMLTextInfo(VirtualBufferTextInfo), method _normalizeControlField. The code looking up variable descNode is using the root html document, it does not consider the button may be in an embedded iframe. The attrs parameter of the method has iframe related information which may be used to retrieve the correct description from the iframe.

@jcsteh

This comment has been minimized.

Copy link
Contributor

jcsteh commented Apr 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.