Ticket #51 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: jteh Owned by:
Priority: major Milestone: 2009.1
Component: Virtual buffers Version: development
Keywords: Cc:
Operating system: Blocked by:
Blocking:

Description

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.

Attachments

untagged_images.html Download (320 bytes) - added by jteh 2 years ago.
Test case; includes untagged graphics alone, inside a link and with an onClick event.

Change History

Changed 2 years ago by jteh

Test case; includes untagged graphics alone, inside a link and with an onClick event.

Changed 2 years ago by jteh

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.

Changed 2 years ago by jteh

  • status changed from new to closed
  • resolution set to fixed

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.

Note: See TracTickets for help on using tickets.