No major engine allows whitespace in the type when checking for "module". This was also reflected in the relevant web platform test, but not in the spec. The spec has been changed to match this behaviour: 23c723e3e9
23c723e3e9