W3C home > Mailing lists > Public > public-cdf@w3.org > March 2007

Re: Resolving Relative URIs and Link Targets in a Compound Document

From: Jeff Schiller <codedread@gmail.com>
Date: Thu, 29 Mar 2007 15:08:57 -0500
Message-ID: <da131fde0703291308t4b59d3b6l4e0926fed1678212@mail.gmail.com>
To: "Chris Lilley" <chris@w3.org>
Cc: public-cdf@w3.org, tor@acm.org, "Jonathan Watt" <jwatt@jwatt.org>, "Anne van Kesteren" <annevk@opera.com>


You're right.  http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.5 says:

"An embedded document is entirely independent of the document in which
it is embedded. For instance, relative URIs within the embedded
document resolve according to the base URI of the embedded document,
not that of the main document. An embedded document is only rendered
within another document (e.g., in a subwindow); it remains otherwise

I think this resolves my original question in the Mozilla bug for the
case of CDR.  If the relative URIs are independent of the parent
document, then so are the base targets.  Thus:

<svg ...><a xlink:href="foo.html">Click</a></svg>

<html ...><head><base target="_top" ...></head>
  <body><object data="button.svg"/></body>

When the link is clicked on in the SVG doc, we would never use the
HTML's base target.


On 3/29/07, Chris Lilley <chris@w3.org> wrote:
> On Thursday, March 29, 2007, 6:29:01 PM, Jeff wrote:
> JS> Also, should this be dealt differently in CDR or CDI cases?  CDI seems
> JS> more natural to inherit the parent document's base URI/target, but not
> JS> too sure about CDR...
> How would there be an in-scope html:base element for SVG, in CDR?
> The question seems to me to be entirely a CDI one.
> --
>  Chris Lilley                    mailto:chris@w3.org
>  Interaction Domain Leader
>  Co-Chair, W3C SVG Working Group
>  W3C Graphics Activity Lead
>  Co-Chair, W3C Hypertext CG
Received on Thursday, 29 March 2007 20:09:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:02:22 UTC