W3C home > Mailing lists > Public > www-svg@w3.org > December 2010

Re: base URL of the SVg document

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 07 Dec 2010 02:09:35 +0100
To: Rik Cabanier <cabanier@adobe.com>
Cc: "www-svg@w3.org" <www-svg@w3.org>
Message-ID: <8v1rf619icdqf4us4aoe6safavfcv9cvsv@hive.bjoern.hoehrmann.de>
* Rik Cabanier wrote:
>I'm not sure if this is the right forum but I'm seeing issues with loading resources.
>If we have a SVG file that is located in a sub directory and it uses resources such as images, we have different behavior where the images should be located.
>
>In the case of webkit and minefield, the URL of the image resource is based of the URL of the SVG file.
>In ie9 however, it is based of the URL of the HTML file.

Well if you have /1/example.html which refers to /2/example.svg and in
/2/example.svg you have a relative reference like "example.png" then
that is resolved independently of the address of the HTML document, so
unless there are other things to consider, like xml:base attributes,
that resolves to /2/example.png.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Tuesday, 7 December 2010 01:10:11 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:47 GMT