Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

Cari Bantuan

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Pelajari Lebih Lanjut

Javascript function "setTimeout" not working inside svg script tag

  • 3 balas
  • 1 memiliki masalah ini
  • 21 kunjungan
  • Balasan terakhir oleh sebitnt

more options

Hello,

I am trying to execute some script inside an script tag of an svg graphic. All is working fine except for the "setTimeout" function. I am pretty sure that this had worked a few year before. Here is my example code:

https://pastebin.com/mkdMiQ83

I would expect to see an alert window every second. This is working in IE11 but not in the latest Firefox. Is this a bug or a feature? :-) I just wanted to ask here first before creating a bug report. Thank you for your answers in advance!

Hello, I am trying to execute some script inside an script tag of an svg graphic. All is working fine except for the "setTimeout" function. I am pretty sure that this had worked a few year before. Here is my example code: [https://pastebin.com/mkdMiQ83 https://pastebin.com/mkdMiQ83] I would expect to see an alert window every second. This is working in IE11 but not in the latest Firefox. Is this a bug or a feature? :-) I just wanted to ask here first before creating a bug report. Thank you for your answers in advance!

Diperbarui oleh sebitnt pada

Solusi terpilih

It works for me.

Baca jawaban ini dalam konteks 👍 0

Semua Balasan (3)

more options

The code has been removed. Here it is: https://pastebin.com/mkdMiQ83

more options

Solusi Terpilih

It works for me.

more options

Thank you for trying! I was fiddeling around with this problem for some hours now. After reading your answer and restarting Firefox, the problem is gone. Strange, but it is working now. Thank you!