diff --git a/components/script/dom/stylesheet.rs b/components/script/dom/stylesheet.rs index bf708685426..8bb6faa0c90 100644 --- a/components/script/dom/stylesheet.rs +++ b/components/script/dom/stylesheet.rs @@ -39,8 +39,8 @@ impl StyleSheet { } impl StyleSheetMethods for StyleSheet { - // https://drafts.csswg.org/cssom/#dom-stylesheet-type - fn Type_(&self) -> DOMString { + /// + fn Type(&self) -> DOMString { self.type_.clone() } diff --git a/components/script_bindings/webidls/StyleSheet.webidl b/components/script_bindings/webidls/StyleSheet.webidl index cb8290cc30b..7e0636cf7c0 100644 --- a/components/script_bindings/webidls/StyleSheet.webidl +++ b/components/script_bindings/webidls/StyleSheet.webidl @@ -5,7 +5,7 @@ // https://drafts.csswg.org/cssom/#the-stylesheet-interface [Exposed=Window] interface StyleSheet { - readonly attribute DOMString type_; + readonly attribute DOMString type; readonly attribute DOMString? href; readonly attribute Element? ownerNode;