Changes - Eliza

Microsoft changed the way that textRange objects work and replaced the rangeFromElement() function with the createTextRange() and moveToElementText() functions. They also improved on the pasteHTML() function, creating the innerText, outerText, innerHTML, and outerHTML properties for elements to make it much easier to change document content.

Eliza now uses the element properties rather than the explicit textRange functions to display the conversation. The functions for comparing the user's input to the set of keywords has changed only very slightly - fortunately, the search functions still work almost precisely the way they did before. The only necessary change was using createTextRange() and moveToElementText together instead of the single rangeFromElement() function used previouly.

For more details on the new textRange object and models for accessing document content, see the updated Chapter 8.