TextRange and Event Model Changes

Between Platform Preview Release 1 and Platform Preview release 2, Microsoft changed the way that JScript functions can access event information. The method described on pages 70-72 has been removed. As a result, this example required modification and now uses the event.property syntax.

Microsoft also changed the way that textRange objects worked 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. These examples now use the element properties rather than the explicit textRange functions.

For more details, see the updated Chapter 8.