Closed Bug 317538 Opened 19 years ago Closed 4 years ago

Relative urls does not work with designMode=on

Categories

(Core :: DOM: Editor, defect)

1.8 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: fredrik, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

When adding images or anchors to your IFRAME that has designMode=on with relative urls the image is not shown, and the anchor is not underlined. 


Reproducible: Always

Steps to Reproduce:
<a href="/test.htm">test</a> does not work but <a href="http://localhost/test.htm">test</a> does work.

<img src="/test.gif"> does not work, but <img src="http://localhost/test.gif"> does work.
Actual Results:  
The image is not shown, and the anchor is not underlined.

Expected Results:  
The image must be shown in designmode, and the anchor must be shown in designmode. This works as expected in IE.
Kinda sounds like the issues going on in bug 295930 / bug 290740, but that's just a guess on my part.

Moving to Core :: Editor component since all the other designMode bugs are there.
Assignee: nobody → mozeditor
Component: General → Editor
Product: Firefox → Core
QA Contact: general
Version: unspecified → 1.8 Branch
(In reply to comment #1)
> Kinda sounds like the issues going on in bug 295930 / bug 290740, but that's
> just a guess on my part.
> Moving to Core :: Editor component since all the other designMode bugs are
> there.

No this bug appears when adding HTML to the IFRAME ex:

document.getElementById('frameid').contentWindow.document.body.innerHTML = '<img src="/test.gif">';

If i add the complete url (http://localhost/test.gif) the image will be properly displayed.

If I test <img src="/test.gif"> in a common HTML page the image will be displayed as expected.
If a <base> tag is inserted into the iframe with the href set, the <base> tag is ignored.  Opera 9 displays images properly when the <base> tag is present.
QA Contact: editor
Assignee: mozeditor → nobody
Blocks: 424615

This is fixed in 2009-03-17 build.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: