SVG: Support attaching event listeners to animation events
Reported by
paul.leb...@gmail.com,
Aug 27
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 Steps to reproduce the problem: See the following fiddle: https://jsfiddle.net/s1qa6v98/7/ Attaching event handlers to SVG animation events ("start", "repeat", "end") does not work in Chrome. Chrome requires that you use the "onX" properties. However other events, like "click", can be attached that way. Firefox is the opposite. It doesn't support the "onX" properties, and instead requires that you use `addEventListener". if ("onrepeat" in anim) { // Required for Chrome anim.onrepeat = function(evt) { console.log("onrepeat"); }; } else { // Required for Firefox anim.addEventListener("repeat", function(evt) { console.log("repeat"); }); } What is the expected behavior? That addEventListener("start"/"repeat"/"end", fn) works. What went wrong? addEventListener("start"/"repeat"/"end", fn) doesn't work. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 68.0.3440.106 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version:
,
Aug 27
Hmm, I actually see now that that table has "none" where I would expect it to say "(same)", which make the situation even more interesting...
,
Aug 27
fs@, so what is the status of the bug? WontFix, or something to do?
,
Aug 27
My bad. I just assumed it was "begin"/"end/"repeat" because it worked in FF, and I didn't double check the names in the spec. I just checked that the correct names work in both Chrome and FF. You can close this, with my apologies.
,
Aug 27
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 27
,
Aug 27
Thanks. No need to apologize. We appreciate everyone who tries to correct our system.
,
Sep 10
The NextAction date has arrived: 2018-09-10
,
Sep 10
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by f...@opera.com
, Aug 27