Skip to content

Commit 103df69

Browse files
author
bors-servo
authored
Auto merge of #313 - hcpl:fix-whatwg-links, r=SimonSapin
Fix WHATWG links
2 parents e8f7743 + 6237166 commit 103df69

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

STRUCTURE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ The module structure is also documented in the output produced by `cargo doc`, a
66

77
`src/driver.rs`: Provides the highest-level interfaces to the parser, i.e. "here's a string, give me a DOM"
88

9-
`src/tokenizer/`: The first stage of HTML parsing, corresponding to WHATWG's [section 12.2.4 "Tokenization"](https://html.spec.whatwg.org/multipage/syntax.html#tokenization)
9+
`src/tokenizer/`: The first stage of HTML parsing, corresponding to WHATWG's [section 12.2.5 "Tokenization"](https://html.spec.whatwg.org/multipage/#tokenization)
1010

11-
`src/tree_builder/`: The second (and final) stage, corresponding to [section 12.2.5 "Tree Construction"](https://html.spec.whatwg.org/multipage/syntax.html#tree-construction)
11+
`src/tree_builder/`: The second (and final) stage, corresponding to [section 12.2.6 "Tree Construction"](https://html.spec.whatwg.org/multipage/#tree-construction)
1212

13-
`src/serialize/`: Turning trees back into strings. Corresponds to [section 12.3 "Serialising HTML fragments"](https://html.spec.whatwg.org/multipage/syntax.html#serialising-html-fragments)
13+
`src/serialize/`: Turning trees back into strings. Corresponds to [section 12.3 "Serialising HTML fragments"](https://html.spec.whatwg.org/multipage/#serialising-html-fragments)
1414

1515
`dom_sink/`: Types that html5ever can use to represent the DOM, if you do not provide your own DOM implementation.
1616

html5ever/src/tree_builder/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl<Handle, Sink> TreeBuilder<Handle, Sink>
208208
current_line: 1,
209209
};
210210

211-
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-html-fragments
211+
// https://html.spec.whatwg.org/multipage/#parsing-html-fragments
212212
// 5. Let root be a new html element with no attributes.
213213
// 6. Append the element root to the Document node created above.
214214
// 7. Set up the parser's stack of open elements so that it contains just the single element root.
@@ -219,7 +219,7 @@ impl<Handle, Sink> TreeBuilder<Handle, Sink>
219219
tb
220220
}
221221

222-
// https://html.spec.whatwg.org/multipage/syntax.html#concept-frag-parse-context
222+
// https://html.spec.whatwg.org/multipage/#concept-frag-parse-context
223223
// Step 4. Set the state of the HTML parser's tokenization stage as follows:
224224
pub fn tokenizer_state_for_context_elem(&self) -> tok_state::State {
225225
let elem = self.context_elem.as_ref().expect("no context element");
@@ -1078,7 +1078,7 @@ impl<Handle, Sink> TreeBuilder<Handle, Sink>
10781078
}
10791079
}
10801080

1081-
// https://html.spec.whatwg.org/multipage/syntax.html#reset-the-insertion-mode-appropriately
1081+
// https://html.spec.whatwg.org/multipage/#reset-the-insertion-mode-appropriately
10821082
fn reset_insertion_mode(&mut self) -> InsertionMode {
10831083
for (i, mut node) in self.open_elems.iter().enumerate().rev() {
10841084
let last = i == 0usize;

markup5ever/interface/tree_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub trait TreeSink {
123123
/// an associated document fragment called the "template contents" should
124124
/// also be created. Later calls to self.get_template_contents() with that
125125
/// given element return it.
126-
/// https://html.spec.whatwg.org/multipage/#htmltemplateelement
126+
/// https://html.spec.whatwg.org/multipage/#the-template-element
127127
fn create_element(&mut self, name: QualName, attrs: Vec<Attribute>, flags: ElementFlags)
128128
-> Self::Handle;
129129

0 commit comments

Comments
 (0)