[whatwg] wording bug in web workers

Web Workers says in the SharedWorker constructor algorithm:

"Otherwise, if name is the empty string and there exists a  
SharedWorkerGlobalScope object whose closing flag is false, and whose  
location attribute is exactly equal to scriptURL, then let worker global  
scope be that SharedWorkerGlobalScope object."

The location attribute is an object implementing WorkerLocation, which is  
not a URL, so with a literal interpretation it will never be equal to  
scriptURL. I guess it should say something like "whose location attribute  
represents an absolute URL that is exactly equal to scriptURL" instead.

-- 
Simon Pieters
Opera Software

Received on Thursday, 10 December 2009 13:10:23 UTC