[whatwg] wording bug in web workers
simonp at opera.com
Thu Dec 10 13:10:23 PST 2009
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.
More information about the whatwg