From 4682f104ea24fc257c22dc12db1a3dad1323662a Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 18 Aug 2023 16:54:43 +0200 Subject: docs: link multipage version of HTML spec --- src/emitter.rs | 2 +- src/error.rs | 2 +- src/tokenizer.rs | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/emitter.rs b/src/emitter.rs index 4fc2159..d1180a5 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -521,7 +521,7 @@ impl Comment { pub struct Doctype { /// The [force-quirks flag]. /// - /// [force-quirks flag]: https://html.spec.whatwg.org/#force-quirks-flag + /// [force-quirks flag]: https://html.spec.whatwg.org/multipage/parsing.html#force-quirks-flag pub force_quirks: bool, /// The doctype's name. For HTML documents this is "html". diff --git a/src/error.rs b/src/error.rs index 401937b..3ba8f63 100644 --- a/src/error.rs +++ b/src/error.rs @@ -4,7 +4,7 @@ macro_rules! impl_error { )*) => { /// All [parse errors] this tokenizer can emit. /// - /// [parse errors]: https://html.spec.whatwg.org/#parse-errors + /// [parse errors]: https://html.spec.whatwg.org/multipage/parsing.html#parse-errors #[derive(Debug, Eq, PartialEq)] pub enum Error { $( diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 3a6fb32..469cbd1 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -76,31 +76,31 @@ impl> Tokenizer { pub enum State { /// The [data state]. /// - /// [data state]: https://html.spec.whatwg.org/#data-state + /// [data state]: https://html.spec.whatwg.org/multipage/parsing.html#data-state Data, /// The [PLAINTEXT state]. /// - /// [PLAINTEXT state]: https://html.spec.whatwg.org/#plaintext-state + /// [PLAINTEXT state]: https://html.spec.whatwg.org/multipage/parsing.html#plaintext-state PlainText, /// The [RCDATA state]. /// - /// [RCDATA state]: https://html.spec.whatwg.org/#rcdata-state + /// [RCDATA state]: https://html.spec.whatwg.org/multipage/parsing.html#rcdata-state RcData, /// The [RAWTEXT state]. /// - /// [RAWTEXT state]: https://html.spec.whatwg.org/#rawtext-state + /// [RAWTEXT state]: https://html.spec.whatwg.org/multipage/parsing.html#rawtext-state RawText, /// The [script data state]. /// - /// [script data state]: https://html.spec.whatwg.org/#script-data-state + /// [script data state]: https://html.spec.whatwg.org/multipage/parsing.html#script-data-state ScriptData, /// The [script data escaped state]. /// - /// [script data escaped state]: https://html.spec.whatwg.org/#script-data-escaped-state + /// [script data escaped state]: https://html.spec.whatwg.org/multipage/parsing.html#script-data-escaped-state ScriptDataEscaped, /// The [script data double escaped state]. /// - /// [script data double escaped state]: https://html.spec.whatwg.org/#script-data-double-escaped-state + /// [script data double escaped state]: https://html.spec.whatwg.org/multipage/parsing.html#script-data-double-escaped-state ScriptDataDoubleEscaped, } @@ -145,7 +145,7 @@ impl, O: Offset, E: Emitter> Tokenizer { /// /// See also WHATWG's definition of [appropriate end tag token]. /// - /// [appropriate end tag token]: https://html.spec.whatwg.org/#appropriate-end-tag-token + /// [appropriate end tag token]: https://html.spec.whatwg.org/multipage/parsing.html#appropriate-end-tag-token #[inline] pub(crate) fn current_end_tag_is_appropriate(&mut self) -> bool { self.current_tag_name == self.last_start_tag_name -- cgit v1.2.3