Closed Bug 140681 Opened 22 years ago Closed 3 years ago

window.open().document does not inherit base href

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
Windows 98
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: jruderman, Unassigned)

Details

(Whiteboard: DUPEME)

Attachments

(1 file)

If I create a new document using window.open() with no parameters, the new
document should inherit my document's base href.  This causes relative links
break if I use DOM 2 to copy part of a document into a new window.

My "view scripts" bookmarklet turns <script src=> elements into <iframe>s in the
new document.  Since the src attribute is relative in many pages, this bug
prevented the script from working on those pages.  I worked around the problem
by by doing a document.open() immediately followed by a document.close() before
doing any DOM 2 stuff.  (http://www.squarefree.com/bookmarklets/webdevel.html)
Attached file testcase
I also worked around this bug in the clone document bookmarklet.
Mass-reassigning bugs.
Assignee: jst → dom_bugs
Whiteboard: DUPEME
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
Assignee: general → nobody
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

This has now become "by design".

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

Attachment

General

Creator:
Created:
Updated:
Size: