Ticket #139 (closed enhancement: invalid)
AlternateText should be rendered as "title" instead of "alt"
| Reported by: | kmeirlaen | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.1 |
| Component: | QForms | Version: | |
| Keywords: | Cc: |
Description
QImageButton is using AlternateText? to render an "alt" tag when rendering the Image.
The "alt" tag is however not supported in FireFox?. Instead of Alt, the "title" should be rendered, which is supported by both browsers:
--- original code ---
if ($this->strAlternateText)
$strToReturn .= sprintf('alt="%s" ', $this->strAlternateText);
--- end ---
--- suggested code ---
if ($this->strAlternateText)
$strToReturn .= sprintf('title="%s" ', $this->strAlternateText);
--- end ---
There may be MORE controls using the alt attribute for images. If somebody could go through the code and search/replace the occurences?
