JSFiddle - React, Tailwind, and code Playground

HTML

<p>When I try to assign property type, IE8 throws error</p>
<p><code>
if ( value !== undefined ) {
    if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
        return ret;

    } else {
        <b>return ( elem[ name ] = value );</b>
} 
   </code></p>

<input type="text" id="check"/><br/>
<input type="button" value="crash IE8!">

JavaScript

$('input[type=button]').click(function(){
        $('#check').val(5).prop('type', 'hidden');
});