diff --git a/sipi-app/views/static/js/htmx.js b/sipi-app/views/static/js/htmx.js index 834c677..5a5ad2b 100644 --- a/sipi-app/views/static/js/htmx.js +++ b/sipi-app/views/static/js/htmx.js @@ -1091,7 +1091,6 @@ var htmx = (function() { if (elt && elt.closest) { return elt.closest(selector) } else { - // TODO remove when IE goes away do { if (elt == null || matches(elt, selector)) { return elt @@ -2866,7 +2865,7 @@ var htmx = (function() { function makeEvent(eventName, detail) { let evt if (window.CustomEvent && typeof window.CustomEvent === 'function') { - // TODO: `composed: true` here is a hack to make global event handlers work with events in shadow DOM + // This breaks expected encapsulation but needs to be here until decided otherwise by core devs evt = new CustomEvent(eventName, { bubbles: true, cancelable: true, composed: true, detail }) } else { @@ -2899,7 +2898,6 @@ var htmx = (function() { * be called internally at every extendable execution point in htmx. * * @param {Element} elt - * @param {(extension:HtmxExtension) => void} toDo * @returns void */ function withExtensions(elt, toDo) {