Closed Bug 273425 Opened 21 years ago Closed 21 years ago

setTimeout/setInterval doesn't work if designMode is on

Categories

(Core :: DOM: Editor, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ljmatkins, Assigned: mozeditor)

Details

Attachments

(1 file)

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
Attached file a simple testcase
I'm fairly certain that this is by design -- scripts are disabled for a document being edited, more or less.
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.
I believe this bug should be resolved as invalid. If someone disagrees feel free to comment and reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: