On an <object> with data="data:image/svg+xml,<?xml..." i am not allowd to access the objectElement.contentDocument.
The followin error is given:
94%3C/text%3E%3C/g%3E%3C/svg%3E from frame with URL http://local.domain.tld/html/. Domains must match.
Since the object was created from the current document, one would expect to be able to access it.
Created attachment 14804 [details]
HTML file that creates an SVG object and attempts to access its contentDocument
Confirmed with a local debug build of WebKit r21911 with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).
This is a consequence of WebKit treating data URLs as having a unique origin. There's been some debate about whether we should change that behavior globally. If/when we do that, this bug will be fixed as a consequence.