The Document.clear() method does nothing, but doesn't raise any error.
Document.clear()
external void clear();