text: // polyfill for document.createRange
  if (global.document) {
    document.createRange = () => ({
      setStart: () => {},
      setEnd: () => {},
      commonAncestorContainer: {
        nodeName: "BODY",
        ownerDocument: document
      }
    });
  }
  