Closed
Bug 354394
Opened 19 years ago
Closed 18 years ago
document.open/write/close removes event listeners
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 357651
People
(Reporter: erik, Unassigned)
Details
(Keywords: regression, testcase)
Attachments
(1 file)
503 bytes,
text/html
|
Details |
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.
Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
This regressed between 2005-8-19 and 2005-08-20:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2005-8-19+07&maxdate=2005-8-20+09&cvsroot=%2Fcvsroot
I guess a regression from bug 303981 or bug 303765?
Updated•19 years ago
|
Keywords: regression,
testcase
Updated•19 years ago
|
Summary: document.open/write/close removes events → document.open/write/close removes event listeners
Comment 3•18 years ago
|
||
I can't reproduce this anymore, marking fixed thanks to bug 357651.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 4•18 years ago
|
||
Yeah, this seems ok now. I wonder when it was fixed?
Updated•15 years ago
|
Resolution: FIXED → DUPLICATE
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•