From 5ea05317757579afa7428f81b5688609341594b1 Mon Sep 17 00:00:00 2001 From: Azhar Ismagulova <31756707+azharcodeit@users.noreply.github.com> Date: Wed, 13 Mar 2024 09:34:42 +0000 Subject: rustdoc: Fix warnings in `components/script/dom` (#31632) * fix: fixed warnings in components/script/dom * fix: resolved comment by setting explicit link to HTMLConstructor * fix: changed the format of WHATWG link * Fix line breaking * Remove trailing white space --------- Co-authored-by: Martin Robinson --- components/script/dom/bindings/htmlconstructor.rs | 6 ++++-- components/script/dom/servoparser/mod.rs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'components/script/dom') 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")) -- cgit v1.2.3