on when the element has no popover attribute.');

  popover.setAttribute('popover', 'auto');
  popover.remove();

  assert_throws_dom('InvalidStateError', () => popover.togglePopover(),
    'togglePopover() should throw an exception when the element is disconnected.');
  assert_throws_dom('InvalidStateError', () => popover.togglePopover(true),
    'togglePopover(true) should throw an exception when the element is disconnected.');
  assert_throws_dom('InvalidStateError', () => popover.togglePopover(false),
 