W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2007

[whatwg] [WA1] Audio and relative URIs

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 06 Aug 2007 10:23:22 +0200
Message-ID: <op.twmpk82g64w2qv@annevk-t60.oslo.opera.com>
On Mon, 06 Aug 2007 08:37:04 +0200, Devi Web Development  
<devi.webmaster at gmail.com> wrote:
> On 8/3/07, Ian Hickson <ian at hixie.ch> wrote:
>> On Tue, 19 Jul 2005, Christian Biesinger wrote:
>>>> The Audio() constructor takes a single argument, a URI (or IRI), which
>>>> is resolved using the script context's window.location.href
>>>
>>> Does this mean that a possible <base href> should indeed be ignored  
>>> here?
>
> I don't see why this should ignore the base tag. I would expect it to
> use document.baseURI as described in
>
> http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407#core-Node3-baseURI
>
> which takes into account the <base href=""/> tag.

Yes, but window.location.href does not. It probably makes sense to make it  
work exactly like:

   var i = new Image()
   i.src = url


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Monday, 6 August 2007 01:23:22 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC