سؤال

Edit SOLVED: Initially I got under the impression that Ace will be completely unusable due to editable code cutting off on 2nd line. So I thought 'let's not even load it in IE'. Turns our the bug was fixed, Ace works just fine in 9 (or close enough, not quite as nice as in FF or Chrome though).

ORIGINAL QUESTION: I find myself having to prevent Ace editor from loading in IE and wonder what specific browser features need detection? Trying to avoid browser sniffing.

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top