aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
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
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')
-rw-r--r--components/script/dom/bindings/htmlconstructor.rs6
-rw-r--r--components/script/dom/servoparser/mod.rs2
2 files changed, 5 insertions, 3 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,
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 {
}
/// <https://html.spec.whatwg.org/multipage/#html-integration-point>
- /// Specifically, the <annotation-xml> cases.
+ /// Specifically, the `<annotation-xml>` cases.
fn is_mathml_annotation_xml_integration_point(&self, handle: &Dom<Node>) -> bool {
let elem = handle.downcast::<Element>().unwrap();
elem.get_attribute(&ns!(), &local_name!("encoding"))