mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Fix commonmark Markdown warnings in docs, part 1
Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
This commit is contained in:
@@ -49,13 +49,13 @@ use uuid::Uuid;
|
||||
pub struct HTMLScriptElement {
|
||||
htmlelement: HTMLElement,
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#already-started
|
||||
/// <https://html.spec.whatwg.org/multipage/#already-started>
|
||||
already_started: Cell<bool>,
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#parser-inserted
|
||||
/// <https://html.spec.whatwg.org/multipage/#parser-inserted>
|
||||
parser_inserted: Cell<bool>,
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#non-blocking
|
||||
/// <https://html.spec.whatwg.org/multipage/#non-blocking>
|
||||
///
|
||||
/// (currently unused)
|
||||
non_blocking: Cell<bool>,
|
||||
@@ -190,7 +190,7 @@ impl FetchResponseListener for ScriptContext {
|
||||
}
|
||||
}
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#fetch-a-classic-script
|
||||
/// <https://html.spec.whatwg.org/multipage/#fetch-a-classic-script>
|
||||
/// step 4-9
|
||||
fn process_response_eof(&mut self, response: Result<(), NetworkError>) {
|
||||
// Step 5.
|
||||
@@ -226,7 +226,7 @@ impl FetchResponseListener for ScriptContext {
|
||||
|
||||
impl PreInvoke for ScriptContext {}
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#fetch-a-classic-script
|
||||
/// <https://html.spec.whatwg.org/multipage/#fetch-a-classic-script>
|
||||
fn fetch_a_classic_script(script: &HTMLScriptElement,
|
||||
kind: ExternalScriptKind,
|
||||
url: ServoUrl,
|
||||
@@ -286,7 +286,7 @@ fn fetch_a_classic_script(script: &HTMLScriptElement,
|
||||
}
|
||||
|
||||
impl HTMLScriptElement {
|
||||
/// https://html.spec.whatwg.org/multipage/#prepare-a-script
|
||||
/// <https://html.spec.whatwg.org/multipage/#prepare-a-script>
|
||||
pub fn prepare(&self) {
|
||||
// Step 1.
|
||||
if self.already_started.get() {
|
||||
@@ -500,7 +500,7 @@ impl HTMLScriptElement {
|
||||
}
|
||||
}
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#execute-the-script-block
|
||||
/// <https://html.spec.whatwg.org/multipage/#execute-the-script-block>
|
||||
pub fn execute(&self, result: Result<ClassicScript, NetworkError>) {
|
||||
// Step 1.
|
||||
let doc = document_from_node(self);
|
||||
|
||||
Reference in New Issue
Block a user