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>
This commit is contained in:
Azhar Ismagulova 2024-03-13 09:34:42 +00:00 committed by GitHub
parent 716f4a006d
commit 5ea0531775
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -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,