Defining target of links for embedded content

Hi,

When embedding hypertext content using an <object> element (e.g. through
object or iframe), there is no way I've found to instruct that links in
that included content should be loaded in a given browsing context.

For instance, if in page A, I include an SVG image B, I can't force
links in image B to replace the browsing context of page A from within
page A (but only by adding a target="_parent" in image B).

It makes it pretty awkward to include an externally referenced SVG image
that has links in it (except if the author of that SVG image happened to
use the target attributes.)

It may be that the seamless attribute on iframe probably has that effect
(although I can't really tell by reading
http://dev.w3.org/html5/markup/iframe.html#iframe.attrs.seamless since
"seamlessly" doesn't seem to be defined), but it probably brings more
effects than needed. It also doesn't apply to the <object> element.

Maybe a targethref attribute on iframe, object, etc would solve that
problem?

Dom

Received on Wednesday, 23 February 2011 16:50:56 UTC