This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16130 - [Shadow]: Define what happens if a ShadowRoot is appended into an element as a child.
Summary: [Shadow]: Define what happens if a ShadowRoot is appended into an element as ...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14978
  Show dependency treegraph
 
Reported: 2012-02-27 05:59 UTC by Shinya Kawanaka
Modified: 2012-03-06 04:13 UTC (History)
0 users

See Also:


Attachments

Description Shinya Kawanaka 2012-02-27 05:59:09 UTC
It seems the spec does say anything.
I think HIERARCHY_REQUEST_ERR should be raised.
Comment 1 Dimitri Glazkov 2012-02-27 18:16:13 UTC
Are you sure we need to do anything here? ShadowRoot is a DocumentFragment (since it inherits from a DocumentFragment), and there's a  pretty clear algorithm of what should be done in DOM4 spec: http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node-append
Comment 2 Shinya Kawanaka 2012-02-28 02:43:59 UTC
(In reply to comment #1)
> Are you sure we need to do anything here? ShadowRoot is a DocumentFragment
> (since it inherits from a DocumentFragment), and there's a  pretty clear
> algorithm of what should be done in DOM4 spec:
> http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node-append

I just thought appending a shadow root into an element seems something weird.
I understand the fact that ShadowRoot extends DocumentFragment, but I was thinking ShdaowRoot was a something special. It is not intuitive for me that we can do appending a shadow root.

But this is intentional, I try to understand why ShdowRoot is extended from DocumentFragment.