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

NEW
Unassigned

Status

()

Core
DOM: Core & HTML
--
minor
16 years ago
4 years ago

People

(Reporter: Jesse Ruderman, Unassigned)

Tracking

Trunk
x86
Windows 98
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: DUPEME)

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
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)
(Reporter)

Comment 1

16 years ago
Created attachment 81351 [details]
testcase
(Reporter)

Comment 2

16 years ago
I also worked around this bug in the clone document bookmarklet.
Mass-reassigning bugs.
Assignee: jst → dom_bugs

Updated

10 years ago
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general

Updated

4 years ago
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.