mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Format script component
This commit is contained in:
parent
2ca7a13473
commit
c37a345dc9
357 changed files with 25485 additions and 18076 deletions
|
@ -28,9 +28,11 @@ impl DOMStringMap {
|
|||
|
||||
pub fn new(element: &HTMLElement) -> DomRoot<DOMStringMap> {
|
||||
let window = window_from_node(element);
|
||||
reflect_dom_object(Box::new(DOMStringMap::new_inherited(element)),
|
||||
&*window,
|
||||
DOMStringMapBinding::Wrap)
|
||||
reflect_dom_object(
|
||||
Box::new(DOMStringMap::new_inherited(element)),
|
||||
&*window,
|
||||
DOMStringMapBinding::Wrap,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,6 +55,10 @@ impl DOMStringMapMethods for DOMStringMap {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#the-domstringmap-interface:supported-property-names
|
||||
fn SupportedPropertyNames(&self) -> Vec<DOMString> {
|
||||
self.element.supported_prop_names_custom_attr().iter().cloned().collect()
|
||||
self.element
|
||||
.supported_prop_names_custom_attr()
|
||||
.iter()
|
||||
.cloned()
|
||||
.collect()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue