function FallbackCompositionState(root) {
  this.root = root;
  this.startSelection = ReactInputSelection.getSelection(root);
  this.startValue = this.getText();
}
Helper class stores information about selection and document state
so we can figure out what changed at a later date.

@param {DOMEventTarget} root