Chromium Code Reviews
DescriptionProhibit createShadowRoot({mode: 'open'}) on existing shadow root.
This implements Shadow DOM spec 8.2.2-2.
https://w3c.github.io/webcomponents/spec/shadow/#widl-Element-createShadowRoot-ShadowRoot-ShadowRootInit-shadowRootInitDict
> createShadowRoot
...
> 2. If the context object already hosts the shadow tree, throws InvalidStateError exception.
Calling createShadowRoot() without init dictionary to create multple shadow roots are
still allowed for compatibility.
BUG=459136
TEST=fast/dom/shadow/create-shadow-root-with-parameter.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198388
Patch Set 1 #
Messages
Total messages: 10 (4 generated)
|
|||||||||||||||||||||||||||||||||||||