[Bug 17023] [Shadow]: Can an InsertionPoint be a shadow host?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17023

--- Comment #8 from Dimitri Glazkov <dglazkov@chromium.org> 2012-05-11 04:56:50 UTC ---
(In reply to comment #6)
> In the current WebKit implementation:
>   1. A shadow root attached to InsertionPoint is simply ignored and not used at
> all. InsertionPoints still works as InsertionPoint.

It's not ignored. Things just work exactly as expected. Since an active
insertion point is not rendered, there's no way to render shadow dom subtree.
It could totally be created and operated on. It's just never rendered.

>   2. We don't throw any exception when attaching a shadowRoot to
> insertionPoints.

Why would we throw an exception? It's similar to throwing an exception when
you're trying to append a child to an element with style "display:none".

> 
> For 1). it sounds reasonable for me.
> For 2). It might be worth discussing whether we should throw exception or not.
> 
> (In reply to comment #5)
> > It doesn’t matter if what WebKit does is deliberate or not… I believe it is
> > just being an example of what the semantics should be.
> > 
> > I don’t like the suggested behavior in Comment 1 (if I understand it.) It seems
> > inconsistent.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 11 May 2012 04:56:53 UTC