alidStateError when synchronously constructing a custom element');

 promise_test(async function () {
     const result = await construct_custom_element_in_parser(this, (document) => document.writeln('<b>some text</b>'));
     assert_throws_dom('InvalidStateError', result.window.DOMException, () => { throw result.exception; }, 'Must throw an InvalidStateError');
     assert_equals(result.document.querySelector('b'), null, 'Must not insert new content');
     assert_false(result.document.documentElement.inne