Forum Moderators: phranque
As an alternative, is there any possibility of throwing in a quick script to test for whatever specific functionality you need, independent of browser version?
<div id="testCE" contentEditable="true"></div>
<script>
if ($('#testCE').is("[contentEditable='true']"))
$('#testCE').html('1');
if ($('#testCE').html() == '1')
alert('compatible');
else
alert('not compatible');
</script> <div id="testCE" contentEditable="true"></div>
<script>
var testCE = document.getElementById('testCE');
if (testCE.isContentEditable)
testCE.innerHTML = '1';
if (testCE.innerHTML == '1')
alert('compatible');
else
alert('not compatible');
</script> Adding cookies? The excitement of GDPR has made a few of us think twice about that. :)
var contentEditableSupport = "contentEditable" in document.documentElement; <script>
var isOldMobile = contentEditableSupport = false;
isOldMobile = navigator.userAgent.match(/iPhone OS [432]/);
if (!isOldMobile)
contentEditableSupport = 'contentEditable' in document.documentElement;
alert(contentEditableSupport);
</script>