Closed
Bug 100515
Opened 24 years ago
Closed 13 years ago
setAttribute(src, URL) does not work if URL is relative
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: hattons, Unassigned)
Details
(Keywords: testcase)
Attachments
(6 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4+) Gecko/20010918
BuildID: 2001091821
When appending an image to a document, different results arrise depending on how
the body element is created. The default body provided by window.open() causes
no image to display. A body created with writeln("<body></body>") causes the
image to display twice. document.createElement("BODY") causes the image frame
to display but only alt text is seen.
Reproducible: Always
Steps to Reproduce:
1.w = window.open("", "w", props)
2.image = document.createElement("img")
3.image.setAttribute("src","romActive.jpg")
4.image.setAttribute("alt","ain\'t here");
4.image.setAttribute("style","BORDER-COLOR: GRAY; BORDER-WIDTH: THICK")
5.w.document.body.appendChild(image)
Actual Results: no image is displayed
Expected Results: Image should be displayed
| Reporter | ||
Comment 1•24 years ago
|
||
| Reporter | ||
Comment 2•24 years ago
|
||
| Reporter | ||
Comment 3•24 years ago
|
||
Updated•24 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•24 years ago
|
||
confirmed . linux build 091905
Comment 5•24 years ago
|
||
setAttribute(src, "relative url") is not working.
attaching testcases with relative and absolute image URLs.
changing summary accordingly
Severity: major → minor
Summary: w.d.body.appendChild(image), none, duplicates, broken, etc → setAttribute(src, URL) does not work if URL is relative
Target Milestone: --- → mozilla0.6
Comment 6•24 years ago
|
||
Comment 7•24 years ago
|
||
Updated•24 years ago
|
Target Milestone: mozilla0.6 → mozilla0.9.6
Comment 8•24 years ago
|
||
Not a mozilla0.9.6 bug, trying for mozilla0.9.8
OS: Linux → All
Hardware: PC → All
Target Milestone: mozilla0.9.6 → mozilla0.9.8
Updated•24 years ago
|
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Updated•24 years ago
|
Updated•24 years ago
|
Priority: -- → P3
Updated•23 years ago
|
Target Milestone: mozilla1.1alpha → ---
Comment 11•20 years ago
|
||
I think this bug was fixed long ago. In Mozilla 1.5 I see both images, in
Mozilla 1.2 only the one with the absolute path (blue border).
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•