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)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jruderman, Unassigned)
Details
(Whiteboard: DUPEME)
Attachments
(1 file)
526 bytes,
text/html
|
Details |
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•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
I also worked around this bug in the clone document bookmarklet.
Updated•20 years ago
|
Whiteboard: DUPEME
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
Updated•10 years ago
|
Assignee: general → nobody
Comment 4•6 years ago
|
||
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
Comment 5•3 years ago
|
||
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.
Description
•