mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
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:
parent
716f4a006d
commit
5ea0531775
2 changed files with 5 additions and 3 deletions
|
@ -221,8 +221,10 @@ unsafe fn html_constructor(
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the constructor object for the element associated with the given local name.
|
/// Returns the constructor object for the element associated with the
|
||||||
/// This list should only include elements marked with the [HTMLConstructor] extended attribute.
|
/// 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(
|
pub fn get_constructor_object_from_local_name(
|
||||||
name: LocalName,
|
name: LocalName,
|
||||||
cx: JSContext,
|
cx: JSContext,
|
||||||
|
|
|
@ -1281,7 +1281,7 @@ impl TreeSink for Sink {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://html.spec.whatwg.org/multipage/#html-integration-point>
|
/// <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 {
|
fn is_mathml_annotation_xml_integration_point(&self, handle: &Dom<Node>) -> bool {
|
||||||
let elem = handle.downcast::<Element>().unwrap();
|
let elem = handle.downcast::<Element>().unwrap();
|
||||||
elem.get_attribute(&ns!(), &local_name!("encoding"))
|
elem.get_attribute(&ns!(), &local_name!("encoding"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue