Closed Bug 201954 Opened 21 years ago Closed 21 years ago

Images written using dynamic html do not get rendered

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Windows 98
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 198989

People

(Reporter: pete, Assigned: jdunn)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4a) Gecko/20030401
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4a) Gecko/20030401

Worked correctly in previous release of Mozilla (1.3), also ok in Netscape 7 and IE.

(somewhere in page)
<DIV id=MYPIC></DIV>

(later)
<SCRIPT>
var picarea = document.getElementById("MYPIC");
mypic.innerHTML="<IMG src='http://127.0.0.1/mynewpic.jpg' width=90 height=90>";
</SCRIPT>

Image does not get rendered. If the location is copied and pasted as a new URL
in a new window it is found. If you select "view image" you get "page not found".


Reproducible: Always

Steps to Reproduce:
1. Adapt code given above.
2.
3.



Expected Results:  
Rendered the image!

This also applies to <BUTTON> elements using images and written dynamically.
with the exception that the testcase seems to be wrong,
mypic.innerHTML should be picarea.innterHTML
(note IE even had a problem with your testcase)

My test doesn't use "localhost" but with a valid image
web image, everything seems to work.
Looks like bug 198989
Depends on: 198989
I have tested application using absolute paths as suggested in 198989 and this
is indeed the problem - images render when using absolute path names. Therefore
this bug should be cancelled or transferred to 198989 as it is a duplicate.



*** This bug has been marked as a duplicate of 198989 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: