function isIgnoredType(type) {
  if (type == "nosuchtype") {
    return true;
  }

  if (type != "document") {
    return false;
  }

  // "document" is ignored only on workers.
  return GLOBAL.isWorker();
}
Author: Mathias Bynens <http://mathiasbynens.be/>
Author: Ms2ger <mailto:Ms2ger@gmail.com>

Spec: <https://xhr.spec.whatwg.org/#the-responsetype-attribute>