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)

defect

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
Attached file using default document
Status: UNCONFIRMED → NEW
Ever confirmed: true
confirmed . linux build 091905
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
Target Milestone: mozilla0.6 → mozilla0.9.6
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
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Keywords: nsbeta1
Keywords: testcase
Pushing out to mozilla1.1.
Target Milestone: mozilla0.9.9 → mozilla1.1
Priority: -- → P3
Target Milestone: mozilla1.1alpha → ---
Mass-reassigning bugs.
Assignee: jst → dom_bugs
Attached file updated testcase
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
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.

Attachment

General

Created:
Updated:
Size: