next-csrf
Version:
CSRF mitigation library for Next.js
13 lines (12 loc) • 451 B
JavaScript
export default {
element: 'table',
mutate: function mutate(element, wrapper, _document) {
// IE9 has a problem replacing TBODY contents with innerHTML.
// https://stackoverflow.com/a/8097055/515124
// element.innerHTML = '<tr><td>cell</td></tr>';
var fragment = _document.createDocumentFragment();
fragment.innerHTML = '<tr><td>cell</td></tr>';
element.appendChild(fragment);
}
};
//# sourceMappingURL=focus-table.js.map