Closed Bug 354394 Opened 19 years ago Closed 18 years ago

document.open/write/close removes event listeners

Categories

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

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 357651

People

(Reporter: erik, Unassigned)

Details

(Keywords: regression, testcase)

Attachments

(1 file)

Using document.write (etc) removes any event listeners added to the body. Using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 Steps to reproduce: 1. Create a frame 2. document.open() 3. document.write('hi') 4. document.close() 5. documen.onclick = f; after about a half second document.onclick is reset to undefined Expected behavior: document.onclick should not be removed Possible workaround includes using document.addEventListener instead.
Summary: document.open/write/close removes events → document.open/write/close removes event listeners
I can't reproduce this anymore, marking fixed thanks to bug 357651.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Yeah, this seems ok now. I wonder when it was fixed?
Resolution: FIXED → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: