Closed
Bug 407747
Opened 18 years ago
Closed 18 years ago
The attribute "alt" in the tag "img"
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: keepun, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
|
452 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
The attribute "alt" in the tag "img" doesn’t replace if not found attributes “width” and “height”.
For example:
<html>
<body>
<a href="/any_url/">
<img src="/not_found_imge/aaa.gif" alt="First image" title="First image" /><br />
<img src="/not_found_imge/bbb.gif" width="100%" height="16%" alt="Second image" title="Second image" />
</a>
<script language="JavaScript" type="text/javascript">
var imgs = document.images;
for (var i = 0; i < imgs.length; i++)
{
alert(imgs[i].title); // For test
//imgs[i].alt = 'Alternative string';
}
</script>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•18 years ago
|
||
I have no idea what this testcase is meant to show tho.
Version: Firefox 2.0.0.11 (in a Firefox 3.0 all OK)
<html>
<body>
<a href="/any_url/">
<img src="/not_found_imge/aaa.gif" alt="First image" title="First image" /><br
/>
<img src="/not_found_imge/bbb.gif" width="100%" height="16%" alt="Second image"
title="Second image" />
</a>
<script language="JavaScript" type="text/javascript">
var imgs = document.images;
for (var i = 0; i < imgs.length; i++)
{
alert(imgs[i].title); // For test
imgs[i].alt = 'Alternative string';
}
</script>
</body>
</html>
Comment 4•18 years ago
|
||
Updated•18 years ago
|
Attachment #292420 -
Attachment is obsolete: true
Comment 5•18 years ago
|
||
I can reproduce the problem with Firefox 2.0.0.11 on Linux (the text only
changes for the second image), but it works fine in a trunk build.
FYI, Firefox 2.x only takes security and crash fixes (and regressions from
those fixes) at this point.
-> WORKSFORME
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•