// META: script=websocket.sub.jstest(function(){varwsocket;varspaceUrl="web platform.test";assert_throws("SYNTAX_ERR",function(){wsocket=CreateWebSocketWithSpaceInUrl(spaceUrl)});},"Create Secure WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown")