code: function _fixCorruptDOMSelection (wsel, wrange) {
    let anchorNode = wsel.anchorNode
    if (!anchorNode || !anchorNode.getBoundingClientRect) return
    let rect = anchorNode.getBoundingClientRect()
    return {
      left: rect.left,
      top: rect.top,
      width: 0,
      height: rect.height,
      right: rect.width,
      bottom: rect.bottom
    }
  }
docs: /*
  If this gets called too without having rendered the DOM selection properly
  it often does not have a valid bounding rectangle.
  If you see this called you probably should fix your application implementation.
  Very likely you did not call Surface.rerenderDOMSelection() before trying to
  use the DOM selection, e.g. for positioning an overlay.