W3C home > Mailing lists > Public > www-svg@w3.org > January 2010

RE: removeChild and <use> question

From: Patrick Dengler <patd@microsoft.com>
Date: Tue, 12 Jan 2010 21:51:24 +0000
To: Jeff Schiller <codedread@gmail.com>, Boris Zbarsky <bzbarsky@mit.edu>, www-svg <www-svg@w3.org>
Message-ID: <4A2DB3AE4504E944AF122BBFBA7FBA1F3E77D9A4@TK5EX14MBXC112.redmond.corp.microsoft.com>
We also saw similar inconsistent behaviors with events on <use>

We found that the behavior of <use> referring to an element which is currently not the part of DOM but added later to DOM via DOM manipulation are handled differently in different browsers.

These seem like good topics for our next conference call.

-----Original Message-----
From: www-svg-request@w3.org [mailto:www-svg-request@w3.org] On Behalf Of Jeff Schiller
Sent: Tuesday, January 12, 2010 1:31 PM
To: Boris Zbarsky; www-svg
Subject: Re: removeChild and <use> question


Thanks for the explanations.

On Tue, Jan 12, 2010 at 3:28 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 1/12/10 4:08 PM, Jeff Schiller wrote:
>> would result in someUsePointingToFoo still holding a reference to a
>> <use>  element, but it is now detached from the DOM
> Not at all.  It's in the DOM just fine.  However its cloned instance tree is
> now gone.  It's the same as if you had a <use xlink:href="#foo"> and had no
> node with id="foo" in the document.

Ok, I took Patrick's email to mean that the use element itself was
removed from the DOM.  This is what I found odd.

Received on Tuesday, 12 January 2010 21:53:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:25 UTC