aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/str.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-10-13 12:54:10 -0600
committerbors-servo <metajack+bors@gmail.com>2015-10-13 12:54:10 -0600
commit9fca41c7a7498cb6e27b914c45290dc4639d6f8b (patch)
tree33406261a2e1f8855802591d179c89caa796d17d /components/util/str.rs
parent8cb3c5f6287146f8a5c351b72fb135de5b283b33 (diff)
parentfa606bf1c87ef9f95555391c9243a3cc1383d9ce (diff)
downloadservo-9fca41c7a7498cb6e27b914c45290dc4639d6f8b.tar.gz
servo-9fca41c7a7498cb6e27b914c45290dc4639d6f8b.zip
Auto merge of #7997 - eefriedman:html-spec-multipage, r=jdm
Link to the HTML multipage spec, not the single-page one. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7997) <!-- Reviewable:end -->
Diffstat (limited to 'components/util/str.rs')
-rw-r--r--components/util/str.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/util/str.rs b/components/util/str.rs
index 35f7ff4efcf..78bc8824707 100644
--- a/components/util/str.rs
+++ b/components/util/str.rs
@@ -75,8 +75,8 @@ fn read_numbers<I: Iterator<Item=char>>(mut iter: Peekable<I>) -> Option<i64> {
/// Shared implementation to parse an integer according to
-/// <https://html.spec.whatwg.org/#rules-for-parsing-integers> or
-/// <https://html.spec.whatwg.org/#rules-for-parsing-non-negative-integers>
+/// <https://html.spec.whatwg.org/multipage/#rules-for-parsing-integers> or
+/// <https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-negative-integers>
fn do_parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i64> {
let mut input = input.skip_while(|c| {
HTML_SPACE_CHARACTERS.iter().any(|s| s == c)
@@ -101,7 +101,7 @@ fn do_parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i64> {
}
/// Parse an integer according to
-/// <https://html.spec.whatwg.org/#rules-for-parsing-integers>.
+/// <https://html.spec.whatwg.org/multipage/#rules-for-parsing-integers>.
pub fn parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i32> {
do_parse_integer(input).and_then(|result| {
result.to_i32()
@@ -109,7 +109,7 @@ pub fn parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i32> {
}
/// Parse an integer according to
-/// <https://html.spec.whatwg.org/#rules-for-parsing-non-negative-integers>
+/// <https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-negative-integers>
pub fn parse_unsigned_integer<T: Iterator<Item=char>>(input: T) -> Option<u32> {
do_parse_integer(input).and_then(|result| {
result.to_u32()