>... Additionally, a typo in one page (i.e. invoking<br>>SharedWorker("mypagescript?", "name") instead of<br>>SharedWorker("mypagescript", "name") will keep all subsequent pages in that<br>>domain from loading a worker under that name so long as the original page<br>>resides in the page cache.<br><br>In this case, if typo one is invoked after a correct one, an URL_MISMATCH_ERR will be thrown in SharedWorker constructor algorithm step 5.4.2.<br>In the other hand, a 404 will terminate the algorithm and no SharedWorker is created and nothing will be add to global namespace.<br>I think this example won't be a serious problem anyway, though I'm not sure will this cause other problem or not.<br><br>>Use<br>> new SharedWorker("url.js#name");<br>>and if you want a duplicate, call it<br>> new SharedWorker("url.js#name2");<br><br>This remind me of something:<br><br>From sec4.8.3, SharedWorker constructor algorithm step 5.4.2:<br>If worker global scope's location attribute represents an absolute URL that is not *exactly equal* to the resulting absolute URL, then throw a URL_MISMATCH_ERR exception and abort all these steps.<br><br>Seems the #name part will break this line and throw a URL_MISMATCH_ERR with the duplicated #name2 one.<br>Shall we ignore minor difference between urls? e.g # fragments?<br><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net/?from=footer">没有广告的终身免费邮箱,www.yeah.net</a>
</span>