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

[whatwg] EventSource: resolving URLs

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 02 Dec 2010 14:48:02 +0100
Message-ID: <op.vm29ybar64w2qv@anne-van-kesterens-macbook-pro.local>
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:


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
Received on Thursday, 2 December 2010 05:48:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:02 UTC