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

Chris,

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
independent."

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:

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

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

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

Regards,
Jeff

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