Closed
Bug 273425
Opened 20 years ago
Closed 20 years ago
setTimeout/setInterval doesn't work if designMode is on
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: ljmatkins, Assigned: mozeditor)
Details
Attachments
(1 file)
|
418 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 The attached testcase shows this doesn't work. It should raise a javascript alert dialog after 2000 ms but instead does nothing. Reproducible: Always Steps to Reproduce: 1. Load the attached test case in your browser 2. Wait in vain for the javascript alert
| Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
I'm fairly certain that this is by design -- scripts are disabled for a document being edited, more or less.
| Reporter | ||
Comment 3•20 years ago
|
||
Hmm, I think you're right, seeing as the editor is very likely to encounter scripts not designed with editing in mind. Also if you *really* need to do something like this, you can always put the editable document in an iframe and just use setInterval/setTimeout on the parent document instead.
Comment 4•20 years ago
|
||
I believe this bug should be resolved as invalid. If someone disagrees feel free to comment and reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•