Home:ALL Converter>Modernizr testing draganddrop on IE8

Modernizr testing draganddrop on IE8

Ask Time:2012-09-22T23:07:06         Author:only_dimon

Json Formatter

I'm testing drag and drop API supporting with

    if (!Modernizr.draganddrop) {
    alert('No!');
}
else { 
    alert('Yes');
     } 

But somehow it shows 'Yes' in IE8, which of course don't support html5 D&D API.

Thanks in advance

Author:only_dimon,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12544944/modernizr-testing-draganddrop-on-ie8
yy