mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Expose Element.AttachShadow under dom.shadowdom.enabled pref
This commit is contained in:
parent
091fcbecd1
commit
ffdc9d255f
3 changed files with 10 additions and 1 deletions
|
@ -2642,6 +2642,13 @@ impl ElementMethods for Element {
|
|||
let doc = document_from_node(self);
|
||||
doc.enter_fullscreen(self)
|
||||
}
|
||||
|
||||
// XXX Hidden under dom.shadowdom.enabled pref. Only exposed to be able
|
||||
// to test partial Shadow DOM support for UA widgets.
|
||||
// https://dom.spec.whatwg.org/#dom-element-attachshadow
|
||||
fn AttachShadow(&self) -> Fallible<DomRoot<ShadowRoot>> {
|
||||
self.attach_shadow()
|
||||
}
|
||||
}
|
||||
|
||||
impl VirtualMethods for Element {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue