diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-01-06 03:04:21 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-01-06 03:04:21 +0530 |
commit | 8b855e44568ea4482df57118b662ade013e41e6c (patch) | |
tree | b74bc96a64f950d3288eb8717bca1b07b9a1262f /components/script/dom | |
parent | e3dd36f0f3cb894d0eacedc99134e715135882bf (diff) | |
parent | b5e121a31205836ed73d64a7caa2b379c07c6a01 (diff) | |
download | servo-8b855e44568ea4482df57118b662ade013e41e6c.tar.gz servo-8b855e44568ea4482df57118b662ade013e41e6c.zip |
Auto merge of #9160 - nerith:spec, r=jdm
Update FileAPI spec links
The links in components/script/dom/blob.rs were pointing to the old location.
Fixes #9157.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9160)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/blob.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index 141516e333f..d47fbde3f25 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -16,7 +16,7 @@ use std::cmp::{max, min}; use std::sync::mpsc::Sender; use util::str::DOMString; -// http://dev.w3.org/2006/webapi/FileAPI/#blob +// https://w3c.github.io/FileAPI/#blob #[dom_struct] pub struct Blob { reflector_: Reflector, @@ -28,7 +28,7 @@ pub struct Blob { fn is_ascii_printable(string: &str) -> bool { // Step 5.1 in Sec 5.1 of File API spec - // http://dev.w3.org/2006/webapi/FileAPI/#constructorBlob + // https://w3c.github.io/FileAPI/#constructorBlob string.chars().all(|c| c >= '\x20' && c <= '\x7E') } @@ -49,12 +49,12 @@ impl Blob { BlobBinding::Wrap) } - // http://dev.w3.org/2006/webapi/FileAPI/#constructorBlob + // https://w3c.github.io/FileAPI/#constructorBlob pub fn Constructor(global: GlobalRef) -> Fallible<Root<Blob>> { Ok(Blob::new(global, None, "")) } - // http://dev.w3.org/2006/webapi/FileAPI/#constructorBlob + // https://w3c.github.io/FileAPI/#constructorBlob pub fn Constructor_(global: GlobalRef, blobParts: DOMString, blobPropertyBag: &BlobBinding::BlobPropertyBag) @@ -81,7 +81,7 @@ impl Blob { } impl BlobMethods for Blob { - // https://dev.w3.org/2006/webapi/FileAPI/#dfn-size + // https://w3c.github.io/FileAPI/#dfn-size fn Size(&self) -> u64 { match self.bytes { None => 0, @@ -89,12 +89,12 @@ impl BlobMethods for Blob { } } - // https://dev.w3.org/2006/webapi/FileAPI/#dfn-type + // https://w3c.github.io/FileAPI/#dfn-type fn Type(&self) -> DOMString { DOMString::from(self.typeString.clone()) } - // https://dev.w3.org/2006/webapi/FileAPI/#slice-method-algo + // https://w3c.github.io/FileAPI/#slice-method-algo fn Slice(&self, start: Option<i64>, end: Option<i64>, @@ -146,12 +146,12 @@ impl BlobMethods for Blob { } } - // https://dev.w3.org/2006/webapi/FileAPI/#dfn-isClosed + // https://w3c.github.io/FileAPI/#dfn-isClosed fn IsClosed(&self) -> bool { self.isClosed_.get() } - // https://dev.w3.org/2006/webapi/FileAPI/#dfn-close + // https://w3c.github.io/FileAPI/#dfn-close fn Close(&self) { // Step 1 if self.isClosed_.get() { |