This change adds the `clear()`, `captureEvents()` and `releaseEvents()` methods to the document object. These methods are obsolete, but are still included in the HTML specification, which says they must do nothing.