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

On Thursday, March 29, 2007, 6:29:21 PM, Anne wrote:

AvK> On Thu, 29 Mar 2007 18:26:35 +0200, Jeff Schiller <codedread@gmail.com>
AvK> wrote:
>> When dealing with svg:a, a question arose:  If we have a document:
>>
>> <html ...>
>>   <head><base target="_top" .../></head><body>
>>   <svg ...><a xlink:href="foo.svg">click</a></svg>
>> </body></html>
>>
>> Should clicking the svg:a link obey the html:base target attribute?
>>
>> More context here: https://bugzilla.mozilla.org/show_bug.cgi?id=375696#c9
>>
>> In other words, is there any CDF documentation that describes
>> resolving link targets and relative URIs in a HTML-SVG compound
>> document?

AvK> No, but clicking <svg:a> should observe the <html:base> element for  
AvK> resolving URIs. Not entirely sure about target="" as there's no concept of
AvK> that in the DOM... (<html:base> usually maps to document.baseURI.)

Anne, what would you expect for the inverse case:

<svg xml:base="whatever">
  <foreignObject>
   <html><head><title>xml:base test</title></head>
   <body><p>
    <a href="relative-URI">test</a>
   </p></body></html>
  </foreignObject>
</svg>

would the html:a pick up the xml:base from the surrounding context?


-- 
 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 18:35:44 UTC