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

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.

Show comment
Hide comment
@jcsteh

jcsteh Mar 4, 2016

Contributor
Contributor

jcsteh commented Mar 4, 2016

@yalingliu2

This comment has been minimized.

Show comment
Hide comment
@yalingliu2

yalingliu2 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.

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.

Show comment
Hide comment
@jcsteh

jcsteh Apr 4, 2016

Contributor
Contributor

jcsteh commented Apr 4, 2016

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