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

Derive the name of a graphic from a URL where no alt or title attribute is provided #51

Closed
nvaccessAuto opened this issue Jan 1, 2010 · 3 comments

Comments

@nvaccessAuto
Copy link

Reported by jteh on 2008-03-21 03:02
Unfortunately, there are many web pages which do not provide alt or title attributes for images. Currently, NVDA provides no text for the graphic at all in these cases. For graphics included in links, the name of the graphic should be derived from the URL of either the link or the graphic itself. For graphics which are not part of links, the URL of the graphic is the only option.

The URL should be filtered somewhat in an attempt to strip unnecessary information. I propose that the filename portion of the URL be used with the extension stripped. If a "#" and/or "?" portion is included, this should be maintained, as it may be required to distinguish two links.

Test Case

  • See attachment; includes untagged graphics alone, inside of a link and with an onClick event.
@nvaccessAuto
Copy link
Author

Attachment untagged_images.html added by jteh on 2008-03-21 03:03
Description:
Test case; includes untagged graphics alone, inside a link and with an onClick event.

@nvaccessAuto
Copy link
Author

Comment 1 by jteh on 2008-05-20 00:57
Recent versions of the gecko_ia2 virtual buffer back-end include the URL of graphics in the buffer. However, they do not filter the URL as suggested here. I have recently written some C++ code to do this, which Mick will add to the library soon.

Note that until recently, the URL of the image (as opposed to the URL of a link) was not exposed by Gecko. MozillaBug:429659 fixes this, exposing the image URL in the "src" IA2 object attribute.

@nvaccessAuto
Copy link
Author

Comment 2 by jteh on 2008-05-29 03:24
This has now been implemented in virtualBufferLibrary (revision 35 in the main bzr branch). It is available in the NVDA Miscellaneous Dependencies Package as of version 2008-05-29-01.
Changes:
State: closed

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

No branches or pull requests

1 participant