Open
Bug 301638
Opened 19 years ago
Updated 2 years ago
Removing src attribute of an <img> should hide the image
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
NEW
People
(Reporter: Biesinger, Unassigned)
References
Details
Attachments
(1 file)
|
726 bytes,
text/html
|
Details |
See the attached testcase. Removing the src attribute seems to have no effect, not even if the image is removed from & reinserted into the document. win2k, 1.7.8 winxp, seamonkey nightly 2005070205
| Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
See http://lxr.mozilla.org/seamonkey/source/content/html/content/src/nsHTMLImageElement.cpp#141 -- changing that should probably be enough... Also see http://lxr.mozilla.org/seamonkey/source/content/html/content/src/nsHTMLInputElement.cpp#451 for the equivalent <input type="image"> thing.
Comment 3•19 years ago
|
||
And the problem, of course, is that we can't just call ImageURIChanged there since we're not looking at a null URI. We probably want to call CancelImageRequests and then trigger a reframe or something...
Depends on: moz-broken
| Reporter | ||
Comment 4•19 years ago
|
||
triggering the reframe should now be done automatically, via the state change notifications.
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Comment 7•10 years ago
|
||
"A user agent that obtains images immediately must also synchronously update the image data of an img element whenever that element ... has its src, ... attribute set, changed, or removed," http://www.whatwg.org/specs/web-apps/current-work/multipage/edits.html#the-img-element
Comment 8•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
| Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•