搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Javascript function "setTimeout" not working inside svg script tag

  • 3 回覆
  • 1 有這個問題
  • 6 次檢視
  • 最近回覆由 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!

由 sebitnt 於 修改

被選擇的解決方法

It works for me.

從原來的回覆中察看解決方案 👍 0

所有回覆 (3)

more options

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

有幫助嗎?

more options

選擇的解決方法

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!

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題