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)
I also worked around this bug in the clone document bookmarklet.
Assignee: jst → dom_bugs
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.