W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] wording bug in web workers

From: Simon Pieters <simonp@opera.com>
Date: Thu, 10 Dec 2009 22:10:23 +0100
Message-ID: <op.u4qqflwjidj3kv@simon-pieterss-macbook.local>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC