Enable to update id attribute for Document.getElementById(). (#740)