0

I just found out that addEventListener() is dramatically failling on Chrome (28).

My working example is a text-to-speech fiddle where I want to listen and the end of a sound file's play to play the next soundfile. In Firefox, all fine. In Chrome, the script break within the first addEventListener.

What is going wrong, how to fix it ?

Do you have a cross-browser proof alternative way to listen at the end of an event ?

Hugolpz
  • 17,296
  • 26
  • 100
  • 187
  • Working fine in Chrome 31. – Fabrício Matté Nov 27 '13 at 00:35
  • @Fabricio : you get the 2 console mesage, and you can click as many times as you want on the span to get the sound play and the `alert("hello")`? – Hugolpz Nov 27 '13 at 00:37
  • Exactly yes. BTW consider using data-attributes for storing element metadata. – Fabrício Matté Nov 27 '13 at 00:37
  • Yet, my trouble is now: how many browser / mobile browser will fails on this one. ;__; – Hugolpz Nov 27 '13 at 00:39
  • 1
    Browsers that support HTML5 ` – Fabrício Matté Nov 27 '13 at 00:47
  • Just upgraded to Chromium Version 30.0.1599.114 Ubuntu 13.04 (30.0.1599.114-0ubuntu0.13.04.2), still failing. Hope the 31 will fix it. – Hugolpz Nov 28 '13 at 14:11

0 Answers0