edCallback when inserting a custom element');

test_with_window(function (contentWindow, contentDocument) {
    const element = define_custom_element_in_window(contentWindow, 'custom-element', []);
    contentDocument.body.innerHTML = `<table><tfoot><tr><td><custom-element>hello</custom-element></td></tr></tfoot></table>`;
    const tfoot = contentDocument.querySelector('tfoot');
    assert_array_equals(element.takeLog().types(), ['constructed', 'connected']);
    assert_equals(tfoot.innerHTML, '<tr><td><cu