Sorry, it's my mistake. It should be xhr.supportsXHR.