Removing anonymous children from bound elements

1 view
Skip to first unread message

Colby Russell

unread,
Apr 13, 2010, 1:31:16 AM4/13/10
to
Given parent, which is a bound element, and anon, which is an anonymous
child of the bound element, how can I get rid of anon?
parent.removeChild(anon) doesn't work for obvious reasons.

--
Colby Russell

Boris Zbarsky

unread,
Apr 13, 2010, 11:42:10 PM4/13/10
to
On 4/13/10 1:31 AM, Colby Russell wrote:
> Given parent, which is a bound element, and anon, which is an anonymous
> child of the bound element, how can I get rid of anon?

You can't. XBL is not designed to do that. What's the use case?

-Boris

Colby Russell

unread,
Apr 18, 2010, 5:34:40 PM4/18/10
to

Delete in the DOM Inspector. Bug 310370.

--
Colby Russell

Boris Zbarsky

unread,
Apr 19, 2010, 11:01:36 AM4/19/10
to
On 4/18/10 5:34 PM, Colby Russell wrote:
> Delete in the DOM Inspector. Bug 310370.

Ah. I'd start off by not allowing deletion of anonymous content for
now, probably.... There's really just no way to do it, and often enough
it's not even clear what it would mean to do it.

-Boris

Colby Russell

unread,
Apr 19, 2010, 3:18:06 PM4/19/10
to

Follow ups begin with bug 310370, comment #30
<https://bugzilla.mozilla.org/show_bug.cgi?id=310370#c30>.

--
Colby Russell

Reply all
Reply to author
Forward
0 new messages