Use more internal mutability for DOM objects.