diff --git a/components/script/dom/bindings/htmlconstructor.rs b/components/script/dom/bindings/htmlconstructor.rs index 5b6c92727a9..d34ee6eba0b 100644 --- a/components/script/dom/bindings/htmlconstructor.rs +++ b/components/script/dom/bindings/htmlconstructor.rs @@ -221,8 +221,10 @@ unsafe fn html_constructor( Ok(()) } -/// Returns the constructor object for the element associated with the given local name. -/// This list should only include elements marked with the [HTMLConstructor] extended attribute. +/// Returns the constructor object for the element associated with the +/// given local name. This list should only include elements marked with the +/// [HTMLConstructor](https://html.spec.whatwg.org/multipage/#htmlconstructor) +/// extended attribute. pub fn get_constructor_object_from_local_name( name: LocalName, cx: JSContext, diff --git a/components/script/dom/servoparser/mod.rs b/components/script/dom/servoparser/mod.rs index bb450a32296..82f2f737823 100644 --- a/components/script/dom/servoparser/mod.rs +++ b/components/script/dom/servoparser/mod.rs @@ -1281,7 +1281,7 @@ impl TreeSink for Sink { } /// - /// Specifically, the cases. + /// Specifically, the `` cases. fn is_mathml_annotation_xml_integration_point(&self, handle: &Dom) -> bool { let elem = handle.downcast::().unwrap(); elem.get_attribute(&ns!(), &local_name!("encoding"))