aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/htmlconstructor.rs
diff options
context:
space:
mode:
authorAzhar Ismagulova <31756707+azharcodeit@users.noreply.github.com>2024-03-13 09:34:42 +0000
committerGitHub <noreply@github.com>2024-03-13 09:34:42 +0000
commit5ea05317757579afa7428f81b5688609341594b1 (patch)
tree9a2ae0cb0bbcfb451eb9f547e9e8b302ab25a848 /components/script/dom/bindings/htmlconstructor.rs
parent716f4a006d3e2c3d920eea82caf82521d4e7f86c (diff)
downloadservo-5ea05317757579afa7428f81b5688609341594b1.tar.gz
servo-5ea05317757579afa7428f81b5688609341594b1.zip
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 <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/bindings/htmlconstructor.rs')
-rw-r--r--components/script/dom/bindings/htmlconstructor.rs6
1 files changed, 4 insertions, 2 deletions
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,