<meta charset="utf-8">Tim Berners-Lee seems to think this could be a valid use of URI references.<br><br><a href="http://www.w3.org/DesignIssues/Fragment.html">http://www.w3.org/DesignIssues/Fragment.html</a><div>"<span class="Apple-style-span" style="font-family: serif; font-size: 16px; ">The significance of the fragment identifier is a function of the MIME type of the object"</span><br>
<div><br></div><div>Are there any existing semantics defined for fragments on text/java-script objects?</div><div><br></div><div>// the semantics we're discussing, the naming of a instance loaded script</div><div>#name=<foo></div>
<div><br></div><div>// hand wavings at other semantics that could make sense, references to particular items defined in the script</div><div>#function/<global-function-name></div><div>#var/<global-var-name></div>
<div><br></div><div><br></div>> I'd have to objections to this<div>Did you mean to say "i'd have no objectsion to this"?</div><div><br><div class="gmail_quote">On Sun, Aug 16, 2009 at 8:27 AM, Drew Wilson <span dir="ltr"><<a href="mailto:atwilson@google.com">atwilson@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">That suggestion has also been floating around in some internal discussions. I'd have to objections to this approach either, although I'm not familiar enough with URL semantics to know if this is a valid use of URL fragments.<div>
<br></div><div>-atw<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Aug 15, 2009 at 5:29 PM, Jim Jewett <span dir="ltr"><<a href="mailto:jimjjewett@gmail.com" target="_blank">jimjjewett@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> Currently, SharedWorkers accept both a "url" parameter and a "name"<br>
> parameter - the purpose is to let pages run multiple SharedWorkers using the<br>
> same script resource without having to load separate resources from the<br>
> server.<br>
<br>
> [ request that name be scoped to the URL, rather than the entire origin,<br>
> because not all parts of <a href="http://example.com" target="_blank">example.com</a> can easily co-ordinate.]<br>
<br>
Would there be a problem with using URL fragments to distinguish the workers?<br>
<br>
Instead of:<br>
new SharedWorker("url.js", "name");<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>
The normal semantics of fragments should prevent the repeated server fetch.<br>
<font color="#888888"><br>
-jJ<br>
</font></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>