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

[whatwg] EventSource: resolving URLs

From: Adam Barth <w3c@adambarth.com>
Date: Fri, 3 Dec 2010 00:10:12 -0800
Message-ID: <AANLkTikm7q5oCPCR8DpvKJvxjKqCdn0Nayb6qyDW_3eM@mail.gmail.com>
First script is the most common thing to use to resolve relative URLs.
 Some APIs do it differently because, well, the web platform is
awesome.  I don't think there's any problem with using the interface's
document instead in this case.


On Thu, Dec 2, 2010 at 5:48 AM, Anne van Kesteren <annevk at opera.com> wrote:
> Per the EventSource specification URLs are resolved against the "first
> script". However, implementations -- Opera and Chrome -- appear to resolve
> URLs in the same way they are resolved for XMLHttpRequest. I.e. against the
> Document the interface object is associated with.
> That is why this testcase is failing:
> http://tc.labs.opera.com/apis/EventSource/eventsource-constructor-url-multi-window.htm
> It makes some sense to me to resolve URLs in the same way as XMLHttpRequest.
> Does "first script" really make sense here? I also wonder if "first script"
> is actually ever used for this. (Did not put time in investigating that for
> now.)
> --
> Anne van Kesteren
> http://annevankesteren.nl/
Received on Friday, 3 December 2010 00:10:12 UTC

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