[whatwg] [WA1] Audio and relative URIs
Anne van Kesteren
annevk at opera.com
Mon Aug 6 01:23:22 PDT 2007
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/>
More information about the whatwg
mailing list