mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Bug 1404842 - Implement Element.attachShadow and Element.slot
Tag #1375
This commit is contained in:
parent
efb5979ad5
commit
67c4d022dc
48 changed files with 134 additions and 818 deletions
|
|
@ -228,16 +228,28 @@ partial interface Element {
|
|||
NodeList querySelectorAll(DOMString selectors);
|
||||
};
|
||||
|
||||
// http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-interface
|
||||
// https://dom.spec.whatwg.org/#dictdef-shadowrootinit
|
||||
dictionary ShadowRootInit {
|
||||
required ShadowRootMode mode;
|
||||
};
|
||||
|
||||
// https://dom.spec.whatwg.org/#element
|
||||
partial interface Element {
|
||||
[Throws,Func="nsDocument::IsWebComponentsEnabled"]
|
||||
ShadowRoot createShadowRoot();
|
||||
[Func="nsDocument::IsWebComponentsEnabled"]
|
||||
NodeList getDestinationInsertionPoints();
|
||||
// Shadow DOM v1
|
||||
[Throws, Pref="nsDocument::IsWebComponentsEnabled"]
|
||||
ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict);
|
||||
[Func="nsDocument::IsWebComponentsEnabled"]
|
||||
readonly attribute ShadowRoot? shadowRoot;
|
||||
[Pref="nsDocument::IsWebComponentsEnabled"]
|
||||
readonly attribute HTMLSlotElement? assignedSlot;
|
||||
[CEReactions, Unscopable, SetterThrows, Pref="nsDocument::IsWebComponentsEnabled"]
|
||||
attribute DOMString slot;
|
||||
|
||||
// [deprecated] Shadow DOM v0
|
||||
[Throws, Pref="nsDocument::IsWebComponentsEnabled"]
|
||||
ShadowRoot createShadowRoot();
|
||||
[Pref="nsDocument::IsWebComponentsEnabled"]
|
||||
NodeList getDestinationInsertionPoints();
|
||||
};
|
||||
|
||||
Element implements ChildNode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue