JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test"></div>

CSS

INPUT {
  behavior:url(#default#savehistory);
}

JavaScript

// Needed to set up jQuery's lazy on-change mechanics           
$(document.body).change(function() { alert('hi'); });
               
// Add an element
$('#test').append('<input id="newelem"></input>');

// Now, jQuery will hook up an onchange handler to newelem
$('#newelem')[0].focus();
            
// And trigger the crash
window.setTimeout(function() {
    $('#test').empty();
}, 250);