W3C home > Mailing lists > Public > public-fx@w3.org > April to June 2012

Re: filter: url() question

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 26 May 2012 08:09:14 -0700
Message-ID: <CAAWBYDAz_7bA6+5uAPz7qa0KaQ_r40XQELk6BX3n-YMWdaiYgQ@mail.gmail.com>
To: Stephen White <senorblanco@chromium.org>
Cc: "public-fx@w3.org" <public-fx@w3.org>
On Fri, May 25, 2012 at 8:34 AM, Stephen White <senorblanco@chromium.org> wrote:
> A question about the url() syntax for CSS Filter Effects:  Should SVG nodes
> in an external file referenced by url() be added to the DOM?  Ie., should it
> be possible to find them by ID from JavaScript?
> For example, the Firefox implementation of this feature seems to work for
> SVG nodes contained in the same file (since they're already in the DOM at
> load time, getElementById() works), but not for externally-referenced files.
>  The filter is applied, but getElementById() returns NULL, even for the
> filter node whose ID was used as the fragment identifier in the URL.
> Is this the intended behaviour?

Yes, this is intended behavior. They're not included into the
document, they're merely referenced.

Received on Saturday, 26 May 2012 15:10:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:40 UTC