aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-18 16:54:43 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 13:41:55 +0200
commit4682f104ea24fc257c22dc12db1a3dad1323662a (patch)
tree8815652555207038cc0837f25b9ef35068bbc16a /src/tokenizer.rs
parent0c495ba984436cccc6caeed66639a2b61095dbad (diff)
docs: link multipage version of HTML spec
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs16
1 files changed, 8 insertions, 8 deletions
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<R: Reader, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> {
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<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> {
///
/// 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