Browser feature detection can't work for this, because ace already does feature detection, and when it's broken, it's broken in a rather subtle way, because of a bug in ace code, not because of missing browser features.
So the best way is either to report a bug or use browser version sniffing.