fe(`<div id="textDiv">aaa</div>`);
    assert_throws_js(TypeError, () => { document.caretPositionFromPoint(); });
    assert_throws_js(TypeError, () => { document.caretPositionFromPoint(5); });
    assert_throws_js(TypeError, () => { document.caretPositionFromPoint("foo", 5); });
  }, "document.caretPositionFromPoint() throws when called without the correct parameters");

  test(() => {
    container.setHTMLUnsafe(`<div id="textDiv">aaa</div>`);
    const doc = document.implementation.createHTMLDocument("")