Closed Bug 50213 Opened 24 years ago Closed 21 years ago

<img> with invalid src (and w or h unspecified) doesn't resize from 0 size when src changed by javascript

Categories

(Core :: Layout, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: waterson, Assigned: waterson)

References

Details

(Keywords: testcase)

Attachments

(1 file)

See attached test case. To reproduce:

1. Open test case.
2. Click button.

Expected behavior: see a squished image appear
Actual: nothing happens
My guess is that this is a layout problem, and has to do with replaced frames. I
tried another test case where the initial image points to a valid image file
(instead of "about:blank") and it worked.
Status: NEW → ASSIGNED
Component: DOM Level 0 → Layout
Summary: document.images[0].src = '...' does not work → document.images[0].src = '...' does not work if original image invalid
Target Milestone: --- → Future
Will this bug fixed before Mozilla ver. 1.0 ?
Since there is no testcase, I can only guess but I think this is the same as bug
22820.
Attached file testcase
Keywords: testcase
Summary: document.images[0].src = '...' does not work if original image invalid → <img> with invalid src (and w or h unspecified) doesn't resize from 0 size when src changed by javascript
This is in fact a dup of bug 22820, but I regressed that.... the new bug on the
issue is bug 198435.
Depends on: 198435
Fixed by bug 198435
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 202650 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: