servo: Merge #5677 - Update WHATWG links to use HTTPS (from frewsxcv:https); r=Ms2ger
authorCorey Farwell <coreyf@rwell.org>
Tue, 14 Apr 2015 02:57:41 -0500
changeset 336173 29c09c50945d2c6cb784ba0426f2f43691b57889
parent 336172 3b53598c93174dc0d419c940c0aa6b4a18a3dcf1
child 336174 e1eb65ca1319fc2d061ae9af262eb46269b1bbe0
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger
servo: Merge #5677 - Update WHATWG links to use HTTPS (from frewsxcv:https); r=Ms2ger Extracted this out of #5649 This commit was created with the following commands: ``` find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` ``` find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` Source-Repo: https://github.com/servo/servo Source-Revision: 4997d3a112354a407365fede1ab1944834a2e13c
servo/components/layout/wrapper.rs
servo/components/net/fetch/cors_cache.rs
servo/components/net/fetch/request.rs
servo/components/net/fetch/response.rs
servo/components/net/http_loader.rs
servo/components/net/lib.rs
servo/components/net_traits/lib.rs
servo/components/script/cors.rs
servo/components/script/dom/bindings/codegen/test/TestDictionary.webidl
servo/components/script/dom/characterdata.rs
servo/components/script/dom/document.rs
servo/components/script/dom/documentfragment.rs
servo/components/script/dom/documenttype.rs
servo/components/script/dom/domimplementation.rs
servo/components/script/dom/domparser.rs
servo/components/script/dom/domtokenlist.rs
servo/components/script/dom/element.rs
servo/components/script/dom/eventdispatcher.rs
servo/components/script/dom/htmlbuttonelement.rs
servo/components/script/dom/htmlcollection.rs
servo/components/script/dom/htmlelement.rs
servo/components/script/dom/htmlfieldsetelement.rs
servo/components/script/dom/htmliframeelement.rs
servo/components/script/dom/htmlinputelement.rs
servo/components/script/dom/htmloptgroupelement.rs
servo/components/script/dom/htmloptionelement.rs
servo/components/script/dom/htmlscriptelement.rs
servo/components/script/dom/htmlselectelement.rs
servo/components/script/dom/htmltableelement.rs
servo/components/script/dom/htmltextareaelement.rs
servo/components/script/dom/htmltitleelement.rs
servo/components/script/dom/node.rs
servo/components/script/dom/range.rs
servo/components/script/dom/treewalker.rs
servo/components/script/dom/urlsearchparams.rs
servo/components/script/dom/webidls/Attr.webidl
servo/components/script/dom/webidls/CanvasRenderingContext2D.webidl
servo/components/script/dom/webidls/CharacterData.webidl
servo/components/script/dom/webidls/ChildNode.webidl
servo/components/script/dom/webidls/Comment.webidl
servo/components/script/dom/webidls/CustomEvent.webidl
servo/components/script/dom/webidls/DOMException.webidl
servo/components/script/dom/webidls/DOMImplementation.webidl
servo/components/script/dom/webidls/DOMParser.webidl
servo/components/script/dom/webidls/DOMTokenList.webidl
servo/components/script/dom/webidls/DedicatedWorkerGlobalScope.webidl
servo/components/script/dom/webidls/Document.webidl
servo/components/script/dom/webidls/DocumentFragment.webidl
servo/components/script/dom/webidls/DocumentType.webidl
servo/components/script/dom/webidls/Element.webidl
servo/components/script/dom/webidls/EventHandler.webidl
servo/components/script/dom/webidls/File.webidl
servo/components/script/dom/webidls/FormData.webidl
servo/components/script/dom/webidls/Function.webidl
servo/components/script/dom/webidls/HTMLAnchorElement.webidl
servo/components/script/dom/webidls/HTMLAppletElement.webidl
servo/components/script/dom/webidls/HTMLAreaElement.webidl
servo/components/script/dom/webidls/HTMLAudioElement.webidl
servo/components/script/dom/webidls/HTMLBRElement.webidl
servo/components/script/dom/webidls/HTMLBaseElement.webidl
servo/components/script/dom/webidls/HTMLBodyElement.webidl
servo/components/script/dom/webidls/HTMLButtonElement.webidl
servo/components/script/dom/webidls/HTMLCanvasElement.webidl
servo/components/script/dom/webidls/HTMLDListElement.webidl
servo/components/script/dom/webidls/HTMLDataElement.webidl
servo/components/script/dom/webidls/HTMLDataListElement.webidl
servo/components/script/dom/webidls/HTMLDialogElement.webidl
servo/components/script/dom/webidls/HTMLDirectoryElement.webidl
servo/components/script/dom/webidls/HTMLDivElement.webidl
servo/components/script/dom/webidls/HTMLElement.webidl
servo/components/script/dom/webidls/HTMLEmbedElement.webidl
servo/components/script/dom/webidls/HTMLFieldSetElement.webidl
servo/components/script/dom/webidls/HTMLFontElement.webidl
servo/components/script/dom/webidls/HTMLFormElement.webidl
servo/components/script/dom/webidls/HTMLFrameElement.webidl
servo/components/script/dom/webidls/HTMLFrameSetElement.webidl
servo/components/script/dom/webidls/HTMLHRElement.webidl
servo/components/script/dom/webidls/HTMLHeadElement.webidl
servo/components/script/dom/webidls/HTMLHeadingElement.webidl
servo/components/script/dom/webidls/HTMLHtmlElement.webidl
servo/components/script/dom/webidls/HTMLIFrameElement.webidl
servo/components/script/dom/webidls/HTMLImageElement.webidl
servo/components/script/dom/webidls/HTMLInputElement.webidl
servo/components/script/dom/webidls/HTMLLIElement.webidl
servo/components/script/dom/webidls/HTMLLabelElement.webidl
servo/components/script/dom/webidls/HTMLLegendElement.webidl
servo/components/script/dom/webidls/HTMLLinkElement.webidl
servo/components/script/dom/webidls/HTMLMapElement.webidl
servo/components/script/dom/webidls/HTMLMediaElement.webidl
servo/components/script/dom/webidls/HTMLMetaElement.webidl
servo/components/script/dom/webidls/HTMLMeterElement.webidl
servo/components/script/dom/webidls/HTMLModElement.webidl
servo/components/script/dom/webidls/HTMLOListElement.webidl
servo/components/script/dom/webidls/HTMLObjectElement.webidl
servo/components/script/dom/webidls/HTMLOptGroupElement.webidl
servo/components/script/dom/webidls/HTMLOptionElement.webidl
servo/components/script/dom/webidls/HTMLOutputElement.webidl
servo/components/script/dom/webidls/HTMLParagraphElement.webidl
servo/components/script/dom/webidls/HTMLParamElement.webidl
servo/components/script/dom/webidls/HTMLPreElement.webidl
servo/components/script/dom/webidls/HTMLProgressElement.webidl
servo/components/script/dom/webidls/HTMLQuoteElement.webidl
servo/components/script/dom/webidls/HTMLScriptElement.webidl
servo/components/script/dom/webidls/HTMLSelectElement.webidl
servo/components/script/dom/webidls/HTMLSourceElement.webidl
servo/components/script/dom/webidls/HTMLSpanElement.webidl
servo/components/script/dom/webidls/HTMLStyleElement.webidl
servo/components/script/dom/webidls/HTMLTableCaptionElement.webidl
servo/components/script/dom/webidls/HTMLTableCellElement.webidl
servo/components/script/dom/webidls/HTMLTableColElement.webidl
servo/components/script/dom/webidls/HTMLTableDataCellElement.webidl
servo/components/script/dom/webidls/HTMLTableElement.webidl
servo/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl
servo/components/script/dom/webidls/HTMLTableRowElement.webidl
servo/components/script/dom/webidls/HTMLTableSectionElement.webidl
servo/components/script/dom/webidls/HTMLTemplateElement.webidl
servo/components/script/dom/webidls/HTMLTextAreaElement.webidl
servo/components/script/dom/webidls/HTMLTimeElement.webidl
servo/components/script/dom/webidls/HTMLTitleElement.webidl
servo/components/script/dom/webidls/HTMLTrackElement.webidl
servo/components/script/dom/webidls/HTMLUListElement.webidl
servo/components/script/dom/webidls/HTMLUnknownElement.webidl
servo/components/script/dom/webidls/HTMLVideoElement.webidl
servo/components/script/dom/webidls/ImageData.webidl
servo/components/script/dom/webidls/Location.webidl
servo/components/script/dom/webidls/MessageEvent.webidl
servo/components/script/dom/webidls/Navigator.webidl
servo/components/script/dom/webidls/Node.webidl
servo/components/script/dom/webidls/NodeFilter.webidl
servo/components/script/dom/webidls/NodeList.webidl
servo/components/script/dom/webidls/ParentNode.webidl
servo/components/script/dom/webidls/ProcessingInstruction.webidl
servo/components/script/dom/webidls/ProgressEvent.webidl
servo/components/script/dom/webidls/Range.webidl
servo/components/script/dom/webidls/Text.webidl
servo/components/script/dom/webidls/TreeWalker.webidl
servo/components/script/dom/webidls/URLSearchParams.webidl
servo/components/script/dom/webidls/URLUtils.webidl
servo/components/script/dom/webidls/URLUtilsReadOnly.webidl
servo/components/script/dom/webidls/ValidityState.webidl
servo/components/script/dom/webidls/Window.webidl
servo/components/script/dom/webidls/Worker.webidl
servo/components/script/dom/webidls/WorkerGlobalScope.webidl
servo/components/script/dom/webidls/WorkerLocation.webidl
servo/components/script/dom/webidls/WorkerNavigator.webidl
servo/components/script/dom/webidls/XMLHttpRequest.webidl
servo/components/script/dom/webidls/XMLHttpRequestEventTarget.webidl
servo/components/script/dom/webidls/XMLHttpRequestUpload.webidl
servo/components/script/dom/window.rs
servo/components/script/dom/worker.rs
servo/components/script/dom/xmlhttprequest.rs
servo/components/util/str.rs
--- a/servo/components/layout/wrapper.rs
+++ b/servo/components/layout/wrapper.rs
@@ -555,17 +555,17 @@ impl<'le> TElement<'le> for LayoutElemen
             self.element.get_attr_vals_for_layout(name)
         }
     }
 
     fn get_link(self) -> Option<&'le str> {
         // FIXME: This is HTML only.
         let node: &Node = NodeCast::from_actual(self.element);
         match node.type_id_for_layout() {
-            // http://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html#
+            // https://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html#
             // selector-link
             NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLAnchorElement)) |
             NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLAreaElement)) |
             NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLLinkElement)) => {
                 unsafe {
                     self.element.get_attr_val_for_layout(&ns!(""), &atom!("href"))
                 }
             }
--- a/servo/components/net/fetch/cors_cache.rs
+++ b/servo/components/net/fetch/cors_cache.rs
@@ -1,13 +1,13 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-//! An implementation of the [CORS preflight cache](http://fetch.spec.whatwg.org/#cors-preflight-cache)
+//! An implementation of the [CORS preflight cache](https://fetch.spec.whatwg.org/#cors-preflight-cache)
 //! For now this library is XHR-specific.
 //! For stuff involving `<img>`, `<iframe>`, `<form>`, etc please check what
 //! the request mode should be and compare with the fetch spec
 //! This library will eventually become the core of the Fetch crate
 //! with CORSRequest being expanded into FetchRequest (etc)
 
 use hyper::method::Method;
 use std::ascii::AsciiExt;
@@ -69,34 +69,34 @@ impl CORSCacheEntry {
 pub struct CacheRequestDetails {
     pub origin: Url,
     pub destination: Url,
     pub credentials: bool
 }
 
 /// Trait for a generic CORS Cache
 pub trait CORSCache {
-    /// [Clear the cache](http://fetch.spec.whatwg.org/#concept-cache-clear)
+    /// [Clear the cache](https://fetch.spec.whatwg.org/#concept-cache-clear)
     fn clear (&mut self, request: CacheRequestDetails);
 
     /// Remove old entries
     fn cleanup(&mut self);
 
-    /// Returns true if an entry with a [matching header](http://fetch.spec.whatwg.org/#concept-cache-match-header) is found
+    /// Returns true if an entry with a [matching header](https://fetch.spec.whatwg.org/#concept-cache-match-header) is found
     fn match_header(&mut self, request: CacheRequestDetails, header_name: &str) -> bool;
 
-    /// Updates max age if an entry for a [matching header](http://fetch.spec.whatwg.org/#concept-cache-match-header) is found.
+    /// Updates max age if an entry for a [matching header](https://fetch.spec.whatwg.org/#concept-cache-match-header) is found.
     ///
     /// If not, it will insert an equivalent entry
     fn match_header_and_update(&mut self, request: CacheRequestDetails, header_name: &str, new_max_age: u32) -> bool;
 
-    /// Returns true if an entry with a [matching method](http://fetch.spec.whatwg.org/#concept-cache-match-method) is found
+    /// Returns true if an entry with a [matching method](https://fetch.spec.whatwg.org/#concept-cache-match-method) is found
     fn match_method(&mut self, request: CacheRequestDetails, method: Method) -> bool;
 
-    /// Updates max age if an entry for [a matching method](http://fetch.spec.whatwg.org/#concept-cache-match-method) is found.
+    /// Updates max age if an entry for [a matching method](https://fetch.spec.whatwg.org/#concept-cache-match-method) is found.
     ///
     /// If not, it will insert an equivalent entry
     fn match_method_and_update(&mut self, request: CacheRequestDetails, method: Method, new_max_age: u32) -> bool;
     /// Insert an entry
     fn insert(&mut self, entry: CORSCacheEntry);
 }
 
 /// A simple, vector-based CORS Cache
@@ -127,17 +127,17 @@ impl BasicCORSCache {
                             e.url == request.destination &&
                             e.credentials == request.credentials &&
                             e.header_or_method.match_method(&method));
         entry
     }
 }
 
 impl CORSCache for BasicCORSCache {
-    /// http://fetch.spec.whatwg.org/#concept-cache-clear
+    /// https://fetch.spec.whatwg.org/#concept-cache-clear
     #[allow(dead_code)]
     fn clear (&mut self, request: CacheRequestDetails) {
         let BasicCORSCache(buf) = self.clone();
         let new_buf: Vec<CORSCacheEntry> = buf.into_iter().filter(|e| e.origin == request.origin && request.destination == e.url).collect();
         *self = BasicCORSCache(new_buf);
     }
 
     // Remove old entries
--- a/servo/components/net/fetch/request.rs
+++ b/servo/components/net/fetch/request.rs
@@ -5,68 +5,68 @@
 use url::Url;
 use hyper::method::Method;
 use hyper::mime::{Mime, TopLevel, SubLevel, Attr, Value};
 use hyper::header::Headers;
 use hyper::header::ContentType;
 use fetch::cors_cache::CORSCache;
 use fetch::response::Response;
 
-/// A [request context](http://fetch.spec.whatwg.org/#concept-request-context)
+/// A [request context](https://fetch.spec.whatwg.org/#concept-request-context)
 #[derive(Copy)]
 pub enum Context {
     Audio, Beacon, CSPreport, Download, Embed, Eventsource,
     Favicon, Fetch, Font, Form, Frame, Hyperlink, IFrame, Image,
     ImageSet, Import, Internal, Location, Manifest, Object, Ping,
     Plugin, Prefetch, Script, ServiceWorker, SharedWorker, Subresource,
     Style, Track, Video, Worker, XMLHttpRequest, XSLT
 }
 
-/// A [request context frame type](http://fetch.spec.whatwg.org/#concept-request-context-frame-type)
+/// A [request context frame type](https://fetch.spec.whatwg.org/#concept-request-context-frame-type)
 #[derive(Copy)]
 pub enum ContextFrameType {
     Auxiliary,
     TopLevel,
     Nested,
     ContextNone
 }
 
-/// A [referer](http://fetch.spec.whatwg.org/#concept-request-referrer)
+/// A [referer](https://fetch.spec.whatwg.org/#concept-request-referrer)
 pub enum Referer {
     RefererNone,
     Client,
     RefererUrl(Url)
 }
 
-/// A [request mode](http://fetch.spec.whatwg.org/#concept-request-mode)
+/// A [request mode](https://fetch.spec.whatwg.org/#concept-request-mode)
 #[derive(Copy)]
 pub enum RequestMode {
     SameOrigin,
     NoCORS,
     CORSMode,
     ForcedPreflightMode
 }
 
-/// Request [credentials mode](http://fetch.spec.whatwg.org/#concept-request-credentials-mode)
+/// Request [credentials mode](https://fetch.spec.whatwg.org/#concept-request-credentials-mode)
 #[derive(Copy)]
 pub enum CredentialsMode {
     Omit,
     CredentialsSameOrigin,
     Include
 }
 
-/// [Response tainting](http://fetch.spec.whatwg.org/#concept-request-response-tainting)
+/// [Response tainting](https://fetch.spec.whatwg.org/#concept-request-response-tainting)
 #[derive(Copy)]
 pub enum ResponseTainting {
     Basic,
     CORSTainting,
     Opaque
 }
 
-/// A [Request](http://fetch.spec.whatwg.org/#requests) as defined by the Fetch spec
+/// A [Request](https://fetch.spec.whatwg.org/#requests) as defined by the Fetch spec
 pub struct Request {
     pub method: Method,
     pub url: Url,
     pub headers: Headers,
     pub unsafe_request: bool,
     pub body: Option<Vec<u8>>,
     pub preserve_content_codings: bool,
     // pub client: GlobalRef, // XXXManishearth copy over only the relevant fields of the global scope,
@@ -112,17 +112,17 @@ impl Request {
             use_url_credentials: false,
             manual_redirect: false,
             redirect_count: 0,
             response_tainting: ResponseTainting::Basic,
             cache: None
         }
     }
 
-    /// [Basic fetch](http://fetch.spec.whatwg.org#basic-fetch)
+    /// [Basic fetch](https://fetch.spec.whatwg.org#basic-fetch)
     pub fn basic_fetch(&mut self) -> Response {
         match &*self.url.scheme {
             "about" => match self.url.non_relative_scheme_data() {
                 Some(s) if &*s == "blank" => {
                     let mut response = Response::new();
                     response.headers.set(ContentType(Mime(
                         TopLevel::Text, SubLevel::Html,
                         vec![(Attr::Charset, Value::Utf8)])));
@@ -137,17 +137,17 @@ impl Request {
                 // XXXManishearth handle these
                 panic!("Unimplemented scheme for Fetch")
             },
 
             _ => Response::network_error()
         }
     }
 
-    // [HTTP fetch](http://fetch.spec.whatwg.org#http-fetch)
+    // [HTTP fetch](https://fetch.spec.whatwg.org#http-fetch)
     pub fn http_fetch(&mut self, _cors_flag: bool, cors_preflight_flag: bool, _authentication_fetch_flag: bool) -> Response {
         let response = Response::new();
         // TODO: Service worker fetch
         // Step 3
         // Substep 1
         self.skip_service_worker = true;
         // Substep 2
         if cors_preflight_flag {
--- a/servo/components/net/fetch/response.rs
+++ b/servo/components/net/fetch/response.rs
@@ -3,27 +3,27 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 use url::Url;
 use hyper::status::StatusCode;
 use hyper::header::Headers;
 use std::ascii::AsciiExt;
 use std::sync::mpsc::Receiver;
 
-/// [Response type](http://fetch.spec.whatwg.org/#concept-response-type)
+/// [Response type](https://fetch.spec.whatwg.org/#concept-response-type)
 #[derive(Clone, PartialEq, Copy)]
 pub enum ResponseType {
     Basic,
     CORS,
     Default,
     Error,
     Opaque
 }
 
-/// [Response termination reason](http://fetch.spec.whatwg.org/#concept-response-termination-reason)
+/// [Response termination reason](https://fetch.spec.whatwg.org/#concept-response-termination-reason)
 #[derive(Clone, Copy)]
 pub enum TerminationReason {
     EndUserAbort,
     Fatal,
     Timeout
 }
 
 /// The response body can still be pushed to after fetch
@@ -44,27 +44,27 @@ pub enum ResponseMsg {
 }
 
 #[unstable = "I haven't yet decided exactly how the interface for this will be"]
 pub struct ResponseLoader {
     response: Response,
     chan: Receiver<ResponseMsg>
 }
 
-/// A [Response](http://fetch.spec.whatwg.org/#concept-response) as defined by the Fetch spec
+/// A [Response](https://fetch.spec.whatwg.org/#concept-response) as defined by the Fetch spec
 #[derive(Clone)]
 pub struct Response {
     pub response_type: ResponseType,
     pub termination_reason: Option<TerminationReason>,
     pub url: Option<Url>,
     /// `None` can be considered a StatusCode of `0`.
     pub status: Option<StatusCode>,
     pub headers: Headers,
     pub body: ResponseBody,
-    /// [Internal response](http://fetch.spec.whatwg.org/#concept-internal-response), only used if the Response is a filtered response
+    /// [Internal response](https://fetch.spec.whatwg.org/#concept-internal-response), only used if the Response is a filtered response
     pub internal_response: Option<Box<Response>>,
 }
 
 impl Response {
     pub fn new() -> Response {
         Response {
             response_type: ResponseType::Default,
             termination_reason: None,
--- a/servo/components/net/http_loader.rs
+++ b/servo/components/net/http_loader.rs
@@ -245,17 +245,17 @@ reason: \"certificate verify failed\" }]
                                                                    CookieSource::HTTP)).unwrap();
                 }
             }
         }
 
         if response.status.class() == StatusClass::Redirection {
             match response.headers.get::<Location>() {
                 Some(&Location(ref new_url)) => {
-                    // CORS (http://fetch.spec.whatwg.org/#http-fetch, status section, point 9, 10)
+                    // CORS (https://fetch.spec.whatwg.org/#http-fetch, status section, point 9, 10)
                     match load_data.cors {
                         Some(ref c) => {
                             if c.preflight {
                                 // The preflight lied
                                 send_error(url, "Preflight fetch inconsistent with main fetch".to_string(), start_chan);
                                 return;
                             } else {
                                 // XXXManishearth There are some CORS-related steps here,
--- a/servo/components/net/lib.rs
+++ b/servo/components/net/lib.rs
@@ -42,15 +42,15 @@ pub mod data_loader;
 pub mod cookie;
 pub mod cookie_storage;
 pub mod image_cache_task;
 pub mod pub_domains;
 pub mod resource_task;
 pub mod storage_task;
 pub mod mime_classifier;
 
-/// An implementation of the [Fetch spec](http://fetch.spec.whatwg.org/)
+/// An implementation of the [Fetch spec](https://fetch.spec.whatwg.org/)
 pub mod fetch {
     #![allow(dead_code, unused)] // XXXManishearth this is only temporary until the Fetch mod starts being used
     pub mod request;
     pub mod response;
     pub mod cors_cache;
 }
--- a/servo/components/net_traits/lib.rs
+++ b/servo/components/net_traits/lib.rs
@@ -123,17 +123,17 @@ pub struct Metadata {
 impl Metadata {
     /// Metadata with defaults for everything optional.
     pub fn default(url: Url) -> Self {
         Metadata {
             final_url:    url,
             content_type: None,
             charset:      None,
             headers: None,
-            // http://fetch.spec.whatwg.org/#concept-response-status-message
+            // https://fetch.spec.whatwg.org/#concept-response-status-message
             status: Some(RawStatus(200, "OK".into_cow())),
         }
     }
 
     /// Extract the parts of a Mime that we care about.
     pub fn set_content_type(&mut self, content_type: Option<&Mime>) {
         match content_type {
             None => (),
--- a/servo/components/script/cors.rs
+++ b/servo/components/script/cors.rs
@@ -27,22 +27,22 @@ use url::{SchemeData, Url};
 
 #[derive(Clone)]
 pub struct CORSRequest {
     pub origin: Url,
     pub destination: Url,
     pub mode: RequestMode,
     pub method: Method,
     pub headers: Headers,
-    /// CORS preflight flag (http://fetch.spec.whatwg.org/#concept-http-fetch)
+    /// CORS preflight flag (https://fetch.spec.whatwg.org/#concept-http-fetch)
     /// Indicates that a CORS preflight request and/or cache check is to be performed
     pub preflight_flag: bool
 }
 
-/// http://fetch.spec.whatwg.org/#concept-request-mode
+/// https://fetch.spec.whatwg.org/#concept-request-mode
 /// This only covers some of the request modes. The
 /// `same-origin` and `no CORS` modes are unnecessary for XHR.
 #[derive(PartialEq, Copy, Clone)]
 pub enum RequestMode {
     CORS, // CORS
     ForcedPreflight // CORS-with-forced-preflight
 }
 
@@ -83,17 +83,17 @@ impl CORSRequest {
             destination: destination,
             mode: mode,
             method: method,
             headers: headers,
             preflight_flag: false
         }
     }
 
-    /// http://fetch.spec.whatwg.org/#concept-http-fetch
+    /// https://fetch.spec.whatwg.org/#concept-http-fetch
     /// This method assumes that the CORS flag is set
     /// This does not perform the full HTTP fetch, rather it handles part of the CORS filtering
     /// if self.mode is ForcedPreflight, then the CORS-with-forced-preflight
     /// fetch flag is set as well
     pub fn http_fetch(&self) -> CORSResponse {
         let response = CORSResponse::new();
         // Step 2: Handle service workers (unimplemented)
         // Step 3
@@ -107,17 +107,17 @@ impl CORSRequest {
                 return self.preflight_fetch();
                 // Everything after this is part of XHR::fetch()
                 // Expect the organization of code to improve once we have a fetch crate
             }
         }
         response
     }
 
-    /// http://fetch.spec.whatwg.org/#cors-preflight-fetch
+    /// https://fetch.spec.whatwg.org/#cors-preflight-fetch
     fn preflight_fetch(&self) -> CORSResponse {
         let error = CORSResponse::new_error();
         let mut cors_response = CORSResponse::new();
 
         let mut preflight = self.clone(); // Step 1
         preflight.method = Method::Options; // Step 2
         preflight.headers = Headers::new(); // Step 3
         // Step 4
@@ -154,17 +154,17 @@ impl CORSRequest {
         };
 
         // Step 12
         match response.status.class() {
             Success => {}
             _ => return error
         }
         cors_response.headers = response.headers.clone();
-        // Substeps 1-3 (parsing rules: http://fetch.spec.whatwg.org/#http-new-header-syntax)
+        // Substeps 1-3 (parsing rules: https://fetch.spec.whatwg.org/#http-new-header-syntax)
         let methods_substep4 = [self.method.clone()];
         let mut methods = match response.headers.get() {
             Some(&AccessControlAllowMethods(ref v)) => v.as_slice(),
             _ => return error
         };
         let headers = match response.headers.get() {
             Some(&AccessControlAllowHeaders(ref h)) => h,
             _ => return error
@@ -287,33 +287,33 @@ impl CORSCacheEntry {
             credentials: credentials,
             header_or_method: header_or_method,
             created: time::now().to_timespec()
         }
     }
 }
 
 impl CORSCache {
-    /// http://fetch.spec.whatwg.org/#concept-cache-clear
+    /// https://fetch.spec.whatwg.org/#concept-cache-clear
     #[allow(dead_code)]
     fn clear (&mut self, request: &CORSRequest) {
         let CORSCache(buf) = self.clone();
         let new_buf: Vec<CORSCacheEntry> = buf.into_iter().filter(|e| e.origin == request.origin && request.destination == e.url).collect();
         *self = CORSCache(new_buf);
     }
 
     // Remove old entries
     fn cleanup(&mut self) {
         let CORSCache(buf) = self.clone();
         let now = time::now().to_timespec();
         let new_buf: Vec<CORSCacheEntry> = buf.into_iter().filter(|e| now.sec > e.created.sec + e.max_age as i64).collect();
         *self = CORSCache(new_buf);
     }
 
-    /// http://fetch.spec.whatwg.org/#concept-cache-match-header
+    /// https://fetch.spec.whatwg.org/#concept-cache-match-header
     fn find_entry_by_header<'a>(&'a mut self, request: &CORSRequest, header_name: &str) -> Option<&'a mut CORSCacheEntry> {
         self.cleanup();
         let CORSCache(ref mut buf) = *self;
         // Credentials are not yet implemented here
         let entry = buf.iter_mut().find(|e| e.origin.scheme == request.origin.scheme &&
                             e.origin.host() == request.origin.host() &&
                             e.origin.port() == request.origin.port() &&
                             e.url == request.destination &&
@@ -337,17 +337,17 @@ impl CORSCache {
         let entry = buf.iter_mut().find(|e| e.origin.scheme == request.origin.scheme &&
                             e.origin.host() == request.origin.host() &&
                             e.origin.port() == request.origin.port() &&
                             e.url == request.destination &&
                             e.header_or_method.match_method(method));
         entry
     }
 
-    /// http://fetch.spec.whatwg.org/#concept-cache-match-method
+    /// https://fetch.spec.whatwg.org/#concept-cache-match-method
     fn match_method(&mut self, request: &CORSRequest, method: &Method) -> bool {
         self.find_entry_by_method(request, method).is_some()
     }
 
     fn match_method_and_update(&mut self, request: &CORSRequest, method: &Method, new_max_age: u32) -> bool {
         self.find_entry_by_method(request, method).map(|e| e.max_age = new_max_age).is_some()
     }
 
@@ -378,17 +378,17 @@ fn is_simple_header(h: &HeaderView) -> b
 fn is_simple_method(m: &Method) -> bool {
     match *m {
         Method::Get | Method::Head | Method::Post => true,
         _ => false
     }
 }
 
 /// Perform a CORS check on a header list and CORS request
-/// http://fetch.spec.whatwg.org/#cors-check
+/// https://fetch.spec.whatwg.org/#cors-check
 pub fn allow_cross_origin_request(req: &CORSRequest, headers: &Headers) -> bool {
     //FIXME(seanmonstar): use req.headers.get::<AccessControlAllowOrigin>()
     match headers.get() {
         Some(&AccessControlAllowOrigin::AllowStar) => true, // Not always true, depends on credentials mode
         Some(&AccessControlAllowOrigin::AllowOrigin(ref url)) =>
             url.scheme == req.origin.scheme &&
             url.host() == req.origin.host() &&
             url.port() == req.origin.port(),
--- a/servo/components/script/dom/bindings/codegen/test/TestDictionary.webidl
+++ b/servo/components/script/dom/bindings/codegen/test/TestDictionary.webidl
@@ -1,9 +1,9 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 dictionary GrandparentDict {
   double someNum;
-};
\ No newline at end of file
+};
--- a/servo/components/script/dom/characterdata.rs
+++ b/servo/components/script/dom/characterdata.rs
@@ -112,17 +112,17 @@ impl<'a> CharacterDataMethods for JSRef<
         let mut data = self.data.borrow().slice_chars(0, offset as usize).to_owned();
         data.push_str(arg.as_slice());
         data.push_str(&self.data.borrow().slice_chars((offset + count) as usize, length as usize));
         *self.data.borrow_mut() = data;
         // FIXME: Once we have `Range`, we should implement step7 to step11
         Ok(())
     }
 
-    // http://dom.spec.whatwg.org/#dom-childnode-remove
+    // https://dom.spec.whatwg.org/#dom-childnode-remove
     fn Remove(self) {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.remove_self();
     }
 
     // https://dom.spec.whatwg.org/#dom-nondocumenttypechildnode-previouselementsibling
     fn GetPreviousElementSibling(self) -> Option<Temporary<Element>> {
         NodeCast::from_ref(self).preceding_siblings()
--- a/servo/components/script/dom/document.rs
+++ b/servo/components/script/dom/document.rs
@@ -259,17 +259,17 @@ impl<'a> DocumentHelpers<'a> for JSRef<'
 
         if self != active_document.r() {
             return false;
         }
         // FIXME: It should also check whether the browser context is top-level or not
         true
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-url
+    // https://dom.spec.whatwg.org/#dom-document-url
     fn url(self) -> Url {
         self.url.clone()
     }
 
     fn quirks_mode(self) -> QuirksMode {
         self.quirks_mode.get()
     }
 
@@ -759,27 +759,27 @@ impl Document {
             node: Node::new_without_doc(NodeTypeId::Document),
             window: JS::from_rooted(window),
             idmap: DOMRefCell::new(HashMap::new()),
             implementation: Default::default(),
             location: Default::default(),
             content_type: match content_type {
                 Some(string) => string.clone(),
                 None => match is_html_document {
-                    // http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
+                    // https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
                     IsHTMLDocument::HTMLDocument => "text/html".to_owned(),
-                    // http://dom.spec.whatwg.org/#concept-document-content-type
+                    // https://dom.spec.whatwg.org/#concept-document-content-type
                     IsHTMLDocument::NonHTMLDocument => "application/xml".to_owned()
                 }
             },
             last_modified: last_modified,
             url: url,
-            // http://dom.spec.whatwg.org/#concept-document-quirks
+            // https://dom.spec.whatwg.org/#concept-document-quirks
             quirks_mode: Cell::new(NoQuirks),
-            // http://dom.spec.whatwg.org/#concept-document-encoding
+            // https://dom.spec.whatwg.org/#concept-document-encoding
             encoding_name: DOMRefCell::new("UTF-8".to_owned()),
             is_html_document: is_html_document == IsHTMLDocument::HTMLDocument,
             images: Default::default(),
             embeds: Default::default(),
             links: Default::default(),
             forms: Default::default(),
             scripts: Default::default(),
             anchors: Default::default(),
@@ -787,17 +787,17 @@ impl Document {
             ready_state: Cell::new(ready_state),
             possibly_focused: Default::default(),
             focused: Default::default(),
             current_script: Default::default(),
             scripting_enabled: Cell::new(true),
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-document
+    // https://dom.spec.whatwg.org/#dom-document
     pub fn Constructor(global: GlobalRef) -> Fallible<Temporary<Document>> {
         Ok(Document::new(global.as_window(), None,
                          IsHTMLDocument::NonHTMLDocument, None,
                          None, DocumentSource::NotFromParser))
     }
 
     pub fn new(window: JSRef<Window>,
                url: Option<Url>,
@@ -861,22 +861,22 @@ impl<'a> PrivateClickEventHelpers for JS
             NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLSelectElement)) |
             NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLTextAreaElement)) if self.get_disabled_state() => true,
             _ => false
         }
     }
 }
 
 impl<'a> DocumentMethods for JSRef<'a, Document> {
-    // http://dom.spec.whatwg.org/#dom-document-implementation
+    // https://dom.spec.whatwg.org/#dom-document-implementation
     fn Implementation(self) -> Temporary<DOMImplementation> {
         self.implementation.or_init(|| DOMImplementation::new(self))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-url
+    // https://dom.spec.whatwg.org/#dom-document-url
     fn URL(self) -> DOMString {
         self.url().serialize()
     }
 
     // https://html.spec.whatwg.org/multipage/interaction.html#dom-document-activeelement
     fn GetActiveElement(self) -> Option<Temporary<Element>> {
         // TODO: Step 2.
 
@@ -884,205 +884,205 @@ impl<'a> DocumentMethods for JSRef<'a, D
             Some(element) => Some(element),     // Step 3. and 4.
             None => match self.GetBody() {      // Step 5.
                 Some(body) => Some(ElementCast::from_temporary(body)),
                 None => self.GetDocumentElement(),
             }
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-documenturi
+    // https://dom.spec.whatwg.org/#dom-document-documenturi
     fn DocumentURI(self) -> DOMString {
         self.URL()
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-compatmode
+    // https://dom.spec.whatwg.org/#dom-document-compatmode
     fn CompatMode(self) -> DOMString {
         match self.quirks_mode.get() {
             LimitedQuirks | NoQuirks => "CSS1Compat".to_owned(),
             Quirks => "BackCompat".to_owned()
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-characterset
+    // https://dom.spec.whatwg.org/#dom-document-characterset
     fn CharacterSet(self) -> DOMString {
         // FIXME(https://github.com/rust-lang/rust/issues/23338)
         let encoding_name = self.encoding_name.borrow();
         encoding_name.clone()
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-inputencoding
+    // https://dom.spec.whatwg.org/#dom-document-inputencoding
     fn InputEncoding(self) -> DOMString {
         // FIXME(https://github.com/rust-lang/rust/issues/23338)
         let encoding_name = self.encoding_name.borrow();
         encoding_name.clone()
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-content_type
+    // https://dom.spec.whatwg.org/#dom-document-content_type
     fn ContentType(self) -> DOMString {
         self.content_type.clone()
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-doctype
+    // https://dom.spec.whatwg.org/#dom-document-doctype
     fn GetDoctype(self) -> Option<Temporary<DocumentType>> {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.children()
             .map(|c| c.root())
             .filter_map(|c| DocumentTypeCast::to_ref(c.r()).map(Temporary::from_rooted))
             .next()
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-documentelement
+    // https://dom.spec.whatwg.org/#dom-document-documentelement
     fn GetDocumentElement(self) -> Option<Temporary<Element>> {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.child_elements().next()
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-getelementsbytagname
+    // https://dom.spec.whatwg.org/#dom-document-getelementsbytagname
     fn GetElementsByTagName(self, tag_name: DOMString) -> Temporary<HTMLCollection> {
         let window = self.window.root();
         HTMLCollection::by_tag_name(window.r(), NodeCast::from_ref(self), tag_name)
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-getelementsbytagnamens
+    // https://dom.spec.whatwg.org/#dom-document-getelementsbytagnamens
     fn GetElementsByTagNameNS(self, maybe_ns: Option<DOMString>, tag_name: DOMString)
                               -> Temporary<HTMLCollection> {
         let window = self.window.root();
         HTMLCollection::by_tag_name_ns(window.r(), NodeCast::from_ref(self), tag_name, maybe_ns)
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-getelementsbyclassname
+    // https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname
     fn GetElementsByClassName(self, classes: DOMString) -> Temporary<HTMLCollection> {
         let window = self.window.root();
 
         HTMLCollection::by_class_name(window.r(), NodeCast::from_ref(self), classes)
     }
 
-    // http://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid
+    // https://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid
     fn GetElementById(self, id: DOMString) -> Option<Temporary<Element>> {
         let id = Atom::from_slice(&id);
         // FIXME(https://github.com/rust-lang/rust/issues/23338)
         let idmap = self.idmap.borrow();
         idmap.get(&id).map(|ref elements| Temporary::new((*elements)[0].clone()))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createelement
+    // https://dom.spec.whatwg.org/#dom-document-createelement
     fn CreateElement(self, mut local_name: DOMString) -> Fallible<Temporary<Element>> {
         if xml_name_type(&local_name) == InvalidXMLName {
             debug!("Not a valid element name");
             return Err(InvalidCharacter);
         }
         if self.is_html_document {
             local_name = local_name.to_ascii_lowercase()
         }
         let name = QualName::new(ns!(HTML), Atom::from_slice(&local_name));
         Ok(Element::create(name, None, self, ElementCreator::ScriptCreated))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createelementns
+    // https://dom.spec.whatwg.org/#dom-document-createelementns
     fn CreateElementNS(self,
                        namespace: Option<DOMString>,
                        qualified_name: DOMString) -> Fallible<Temporary<Element>> {
         let (namespace, prefix, local_name) =
             try!(validate_and_extract(namespace, &qualified_name));
         let name = QualName::new(namespace, local_name);
         Ok(Element::create(name, prefix, self, ElementCreator::ScriptCreated))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createattribute
+    // https://dom.spec.whatwg.org/#dom-document-createattribute
     fn CreateAttribute(self, local_name: DOMString) -> Fallible<Temporary<Attr>> {
         if xml_name_type(&local_name) == InvalidXMLName {
             debug!("Not a valid element name");
             return Err(InvalidCharacter);
         }
 
         let window = self.window.root();
         let name = Atom::from_slice(&local_name);
         // repetition used because string_cache::atom::Atom is non-copyable
         let l_name = Atom::from_slice(&local_name);
         let value = AttrValue::String("".to_owned());
 
         Ok(Attr::new(window.r(), name, value, l_name, ns!(""), None, None))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createattributens
+    // https://dom.spec.whatwg.org/#dom-document-createattributens
     fn CreateAttributeNS(self, namespace: Option<DOMString>, qualified_name: DOMString)
                          -> Fallible<Temporary<Attr>> {
         let (namespace, prefix, local_name) =
             try!(validate_and_extract(namespace, &qualified_name));
         let window = self.window.root();
         let value = AttrValue::String("".to_owned());
         let qualified_name = Atom::from_slice(&qualified_name);
         Ok(Attr::new(window.r(), local_name, value, qualified_name,
                      namespace, prefix, None))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createdocumentfragment
+    // https://dom.spec.whatwg.org/#dom-document-createdocumentfragment
     fn CreateDocumentFragment(self) -> Temporary<DocumentFragment> {
         DocumentFragment::new(self)
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createtextnode
+    // https://dom.spec.whatwg.org/#dom-document-createtextnode
     fn CreateTextNode(self, data: DOMString) -> Temporary<Text> {
         Text::new(data, self)
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createcomment
+    // https://dom.spec.whatwg.org/#dom-document-createcomment
     fn CreateComment(self, data: DOMString) -> Temporary<Comment> {
         Comment::new(data, self)
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createprocessinginstruction
+    // https://dom.spec.whatwg.org/#dom-document-createprocessinginstruction
     fn CreateProcessingInstruction(self, target: DOMString, data: DOMString) ->
             Fallible<Temporary<ProcessingInstruction>> {
         // Step 1.
         if xml_name_type(&target) == InvalidXMLName {
             return Err(InvalidCharacter);
         }
 
         // Step 2.
         if data.contains("?>") {
             return Err(InvalidCharacter);
         }
 
         // Step 3.
         Ok(ProcessingInstruction::new(target, data, self))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-importnode
+    // https://dom.spec.whatwg.org/#dom-document-importnode
     fn ImportNode(self, node: JSRef<Node>, deep: bool) -> Fallible<Temporary<Node>> {
         // Step 1.
         if node.is_document() {
             return Err(NotSupported);
         }
 
         // Step 2.
         let clone_children = match deep {
             true => CloneChildrenFlag::CloneChildren,
             false => CloneChildrenFlag::DoNotCloneChildren
         };
 
         Ok(Node::clone(node, Some(self), clone_children))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-adoptnode
+    // https://dom.spec.whatwg.org/#dom-document-adoptnode
     fn AdoptNode(self, node: JSRef<Node>) -> Fallible<Temporary<Node>> {
         // Step 1.
         if node.is_document() {
             return Err(NotSupported);
         }
 
         // Step 2.
         Node::adopt(node, self);
 
         // Step 3.
         Ok(Temporary::from_rooted(node))
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createevent
+    // https://dom.spec.whatwg.org/#dom-document-createevent
     fn CreateEvent(self, interface: DOMString) -> Fallible<Temporary<Event>> {
         let window = self.window.root();
 
         match interface.to_ascii_lowercase().as_slice() {
             "uievents" | "uievent" => Ok(EventCast::from_temporary(
                 UIEvent::new_uninitialized(window.r()))),
             "mouseevents" | "mouseevent" => Ok(EventCast::from_temporary(
                 MouseEvent::new_uninitialized(window.r()))),
@@ -1093,37 +1093,37 @@ impl<'a> DocumentMethods for JSRef<'a, D
             "keyboardevent" | "keyevents" => Ok(EventCast::from_temporary(
                 KeyboardEvent::new_uninitialized(window.r()))),
             "messageevent" => Ok(EventCast::from_temporary(
                 MessageEvent::new_uninitialized(GlobalRef::Window(window.r())))),
             _ => Err(NotSupported)
         }
     }
 
-    // http://www.whatwg.org/html/#dom-document-lastmodified
+    // https://www.whatwg.org/html/#dom-document-lastmodified
     fn LastModified(self) -> DOMString {
         match self.last_modified {
             Some(ref t) => t.clone(),
             None => time::now().strftime("%m/%d/%Y %H:%M:%S").unwrap().to_string(),
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createrange
+    // https://dom.spec.whatwg.org/#dom-document-createrange
     fn CreateRange(self) -> Temporary<Range> {
         Range::new(self)
     }
 
-    // http://dom.spec.whatwg.org/#dom-document-createtreewalker
+    // https://dom.spec.whatwg.org/#dom-document-createtreewalker
     fn CreateTreeWalker(self, root: JSRef<Node>, whatToShow: u32, filter: Option<NodeFilter>)
                         -> Temporary<TreeWalker> {
         TreeWalker::new(self, root, whatToShow, filter)
     }
 
     // TODO: Support root SVG namespace: https://github.com/servo/servo/issues/5315
-    // http://www.whatwg.org/specs/web-apps/current-work/#document.title
+    // https://www.whatwg.org/specs/web-apps/current-work/#document.title
     fn Title(self) -> DOMString {
         let title_element = self.GetDocumentElement().root().and_then(|root| {
             NodeCast::from_ref(root.r()).traverse_preorder().find(|node| {
                 node.root().r().type_id() == NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLTitleElement))
             })
         }).root();
 
         let mut title = String::new();
@@ -1135,17 +1135,17 @@ impl<'a> DocumentMethods for JSRef<'a, D
                 }
             }
         }
 
         split_html_space_chars(&title).collect::<Vec<_>>().connect(" ")
     }
 
     // TODO: Support root SVG namespace: https://github.com/servo/servo/issues/5315
-    // http://www.whatwg.org/specs/web-apps/current-work/#document.title
+    // https://www.whatwg.org/specs/web-apps/current-work/#document.title
     fn SetTitle(self, title: DOMString) -> ErrorResult {
         self.GetDocumentElement().root().map(|root| {
             let root: JSRef<Node> = NodeCast::from_ref(root.r());
             let head_node = root.traverse_preorder().find(|child| {
                 child.root().r().type_id() == NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLHeadElement))
             }).root();
             head_node.r().map(|head| {
                 let title_node = head.children().map(|c| c.root()).find(|child| {
@@ -1174,51 +1174,51 @@ impl<'a> DocumentMethods for JSRef<'a, D
                         assert!(head.AppendChild(new_title).is_ok());
                     },
                 }
             });
         });
         Ok(())
     }
 
-    // http://www.whatwg.org/specs/web-apps/current-work/#dom-document-head
+    // https://www.whatwg.org/specs/web-apps/current-work/#dom-document-head
     fn GetHead(self) -> Option<Temporary<HTMLHeadElement>> {
         self.get_html_element().and_then(|root| {
             let root = root.root();
             let node: JSRef<Node> = NodeCast::from_ref(root.r());
             node.children()
                 .map(|c| c.root())
                 .filter_map(|c| HTMLHeadElementCast::to_ref(c.r()).map(Temporary::from_rooted))
                 .next()
         })
     }
 
-    // http://www.whatwg.org/specs/web-apps/current-work/#dom-document-currentscript
+    // https://www.whatwg.org/specs/web-apps/current-work/#dom-document-currentscript
     fn GetCurrentScript(self) -> Option<Temporary<HTMLScriptElement>> {
         self.current_script.get()
     }
 
-    // http://www.whatwg.org/specs/web-apps/current-work/#dom-document-body
+    // https://www.whatwg.org/specs/web-apps/current-work/#dom-document-body
     fn GetBody(self) -> Option<Temporary<HTMLElement>> {
         self.get_html_element().and_then(|root| {
             let root = root.root();
             let node: JSRef<Node> = NodeCast::from_ref(root.r());
             node.children().map(|c| c.root()).find(|child| {
                 match child.r().type_id() {
                     NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLBodyElement)) |
                     NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLFrameSetElement)) => true,
                     _ => false
                 }
             }).map(|node| {
                 Temporary::from_rooted(HTMLElementCast::to_ref(node.r()).unwrap())
             })
         })
     }
 
-    // http://www.whatwg.org/specs/web-apps/current-work/#dom-document-body
+    // https://www.whatwg.org/specs/web-apps/current-work/#dom-document-body
     fn SetBody(self, new_body: Option<JSRef<HTMLElement>>) -> ErrorResult {
         // Step 1.
         let new_body = match new_body {
             Some(new_body) => new_body,
             None => return Err(HierarchyRequest),
         };
 
         let node: JSRef<Node> = NodeCast::from_ref(new_body);
@@ -1251,17 +1251,17 @@ impl<'a> DocumentMethods for JSRef<'a, D
                 let root: JSRef<Node> = NodeCast::from_ref(root.r());
                 let new_body: JSRef<Node> = NodeCast::from_ref(new_body);
                 assert!(root.AppendChild(new_body).is_ok());
             }
         }
         Ok(())
     }
 
-    // http://www.whatwg.org/specs/web-apps/current-work/#dom-document-getelementsbyname
+    // https://www.whatwg.org/specs/web-apps/current-work/#dom-document-getelementsbyname
     fn GetElementsByName(self, name: DOMString) -> Temporary<NodeList> {
         self.create_node_list(|node| {
             let element: JSRef<Element> = match ElementCast::to_ref(node) {
                 Some(element) => element,
                 None => return false,
             };
             element.get_attribute(&ns!(""), &atom!("name")).root().map_or(false, |attr| {
                 // FIXME(https://github.com/rust-lang/rust/issues/23338)
@@ -1350,17 +1350,17 @@ impl<'a> DocumentMethods for JSRef<'a, D
 
     // https://html.spec.whatwg.org/#dom-document-location
     fn Location(self) -> Temporary<Location> {
         let window = self.window.root();
         let window = window.r();
         self.location.or_init(|| Location::new(window))
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-children
+    // https://dom.spec.whatwg.org/#dom-parentnode-children
     fn Children(self) -> Temporary<HTMLCollection> {
         let window = self.window.root();
         HTMLCollection::children(window.r(), NodeCast::from_ref(self))
     }
 
     // https://dom.spec.whatwg.org/#dom-parentnode-firstelementchild
     fn GetFirstElementChild(self) -> Option<Temporary<Element>> {
         NodeCast::from_ref(self).child_elements().next()
@@ -1371,23 +1371,23 @@ impl<'a> DocumentMethods for JSRef<'a, D
         NodeCast::from_ref(self).rev_children().filter_map(ElementCast::to_temporary).next()
     }
 
     // https://dom.spec.whatwg.org/#dom-parentnode-childelementcount
     fn ChildElementCount(self) -> u32 {
         NodeCast::from_ref(self).child_elements().count() as u32
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-queryselector
+    // https://dom.spec.whatwg.org/#dom-parentnode-queryselector
     fn QuerySelector(self, selectors: DOMString) -> Fallible<Option<Temporary<Element>>> {
         let root: JSRef<Node> = NodeCast::from_ref(self);
         root.query_selector(selectors)
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
+    // https://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
     fn QuerySelectorAll(self, selectors: DOMString) -> Fallible<Temporary<NodeList>> {
         let root: JSRef<Node> = NodeCast::from_ref(self);
         root.query_selector_all(selectors)
     }
 
     // https://html.spec.whatwg.org/multipage/dom.html#dom-document-readystate
     fn ReadyState(self) -> DocumentReadyState {
         self.ready_state.get()
--- a/servo/components/script/dom/documentfragment.rs
+++ b/servo/components/script/dom/documentfragment.rs
@@ -46,17 +46,17 @@ impl DocumentFragment {
         let document = global.as_window().Document();
         let document = document.root();
 
         Ok(DocumentFragment::new(document.r()))
     }
 }
 
 impl<'a> DocumentFragmentMethods for JSRef<'a, DocumentFragment> {
-    // http://dom.spec.whatwg.org/#dom-parentnode-children
+    // https://dom.spec.whatwg.org/#dom-parentnode-children
     fn Children(self) -> Temporary<HTMLCollection> {
         let window = window_from_node(self).root();
         HTMLCollection::children(window.r(), NodeCast::from_ref(self))
     }
 
     // https://dom.spec.whatwg.org/#dom-parentnode-firstelementchild
     fn GetFirstElementChild(self) -> Option<Temporary<Element>> {
         NodeCast::from_ref(self).child_elements().next()
@@ -67,21 +67,21 @@ impl<'a> DocumentFragmentMethods for JSR
         NodeCast::from_ref(self).rev_children().filter_map(ElementCast::to_temporary).next()
     }
 
     // https://dom.spec.whatwg.org/#dom-parentnode-childelementcount
     fn ChildElementCount(self) -> u32 {
         NodeCast::from_ref(self).child_elements().count() as u32
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-queryselector
+    // https://dom.spec.whatwg.org/#dom-parentnode-queryselector
     fn QuerySelector(self, selectors: DOMString) -> Fallible<Option<Temporary<Element>>> {
         let root: JSRef<Node> = NodeCast::from_ref(self);
         root.query_selector(selectors)
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
+    // https://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
     fn QuerySelectorAll(self, selectors: DOMString) -> Fallible<Temporary<NodeList>> {
         let root: JSRef<Node> = NodeCast::from_ref(self);
         root.query_selector_all(selectors)
     }
 }
 
--- a/servo/components/script/dom/documenttype.rs
+++ b/servo/components/script/dom/documenttype.rs
@@ -78,15 +78,15 @@ impl<'a> DocumentTypeMethods for JSRef<'
     fn PublicId(self) -> DOMString {
         self.public_id.clone()
     }
 
     fn SystemId(self) -> DOMString {
         self.system_id.clone()
     }
 
-    // http://dom.spec.whatwg.org/#dom-childnode-remove
+    // https://dom.spec.whatwg.org/#dom-childnode-remove
     fn Remove(self) {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.remove_self();
     }
 }
 
--- a/servo/components/script/dom/domimplementation.rs
+++ b/servo/components/script/dom/domimplementation.rs
@@ -42,27 +42,27 @@ impl DOMImplementation {
     pub fn new(document: JSRef<Document>) -> Temporary<DOMImplementation> {
         let window = document.window().root();
         reflect_dom_object(box DOMImplementation::new_inherited(document),
                            GlobalRef::Window(window.r()),
                            DOMImplementationBinding::Wrap)
     }
 }
 
-// http://dom.spec.whatwg.org/#domimplementation
+// https://dom.spec.whatwg.org/#domimplementation
 impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
-    // http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
+    // https://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
     fn CreateDocumentType(self, qualified_name: DOMString, pubid: DOMString, sysid: DOMString)
                           -> Fallible<Temporary<DocumentType>> {
         try!(validate_qualified_name(&qualified_name));
         let document = self.document.root();
         Ok(DocumentType::new(qualified_name, Some(pubid), Some(sysid), document.r()))
     }
 
-    // http://dom.spec.whatwg.org/#dom-domimplementation-createdocument
+    // https://dom.spec.whatwg.org/#dom-domimplementation-createdocument
     fn CreateDocument(self, namespace: Option<DOMString>, qname: DOMString,
                       maybe_doctype: Option<JSRef<DocumentType>>) -> Fallible<Temporary<Document>> {
         let doc = self.document.root();
         let win = doc.r().window().root();
 
         // Step 1.
         let doc = Document::new(win.r(), None, IsHTMLDocument::NonHTMLDocument,
                                 None, None, DocumentSource::NotFromParser).root();
@@ -99,17 +99,17 @@ impl<'a> DOMImplementationMethods for JS
 
         // Step 6.
         // FIXME: https://github.com/mozilla/servo/issues/1522
 
         // Step 7.
         Ok(Temporary::from_rooted(doc.r()))
     }
 
-    // http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
+    // https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
     fn CreateHTMLDocument(self, title: Option<DOMString>) -> Temporary<Document> {
         let document = self.document.root();
         let win = document.r().window().root();
 
         // Step 1-2.
         let doc = Document::new(win.r(), None, IsHTMLDocument::HTMLDocument, None, None,
                                 DocumentSource::NotFromParser).root();
         let doc_node: JSRef<Node> = NodeCast::from_ref(doc.r());
--- a/servo/components/script/dom/domparser.rs
+++ b/servo/components/script/dom/domparser.rs
@@ -38,17 +38,17 @@ impl DOMParser {
     }
 
     pub fn Constructor(global: GlobalRef) -> Fallible<Temporary<DOMParser>> {
         Ok(DOMParser::new(global.as_window()))
     }
 }
 
 impl<'a> DOMParserMethods for JSRef<'a, DOMParser> {
-    // http://domparsing.spec.whatwg.org/#the-domparser-interface
+    // https://domparsing.spec.whatwg.org/#the-domparser-interface
     fn ParseFromString(self,
                        s: DOMString,
                        ty: DOMParserBinding::SupportedType)
                        -> Fallible<Temporary<Document>> {
         let window = self.window.root();
         let url = window.r().get_url();
         let content_type = DOMParserBinding::SupportedTypeValues::strings[ty as usize].to_owned();
         match ty {
--- a/servo/components/script/dom/domtokenlist.rs
+++ b/servo/components/script/dom/domtokenlist.rs
@@ -57,29 +57,29 @@ impl<'a> PrivateDOMTokenListHelpers for 
         match token {
             "" => Err(Syntax),
             slice if slice.find(HTML_SPACE_CHARACTERS).is_some() => Err(InvalidCharacter),
             slice => Ok(Atom::from_slice(slice))
         }
     }
 }
 
-// http://dom.spec.whatwg.org/#domtokenlist
+// https://dom.spec.whatwg.org/#domtokenlist
 impl<'a> DOMTokenListMethods for JSRef<'a, DOMTokenList> {
-    // http://dom.spec.whatwg.org/#dom-domtokenlist-length
+    // https://dom.spec.whatwg.org/#dom-domtokenlist-length
     fn Length(self) -> u32 {
         self.attribute().root().map(|attr| {
             // FIXME(https://github.com/rust-lang/rust/issues/23338)
             let attr = attr.r();
             let value = attr.value();
             value.tokens().map(|tokens| tokens.len()).unwrap_or(0)
         }).unwrap_or(0) as u32
     }
 
-    // http://dom.spec.whatwg.org/#dom-domtokenlist-item
+    // https://dom.spec.whatwg.org/#dom-domtokenlist-item
     fn Item(self, index: u32) -> Option<DOMString> {
         self.attribute().root().and_then(|attr| {
             // FIXME(https://github.com/rust-lang/rust/issues/23338)
             let attr = attr.r();
             let value = attr.value();
             value.tokens().and_then(|tokens| {
                 tokens.get(index as usize).map(|token| token.as_slice().to_owned())
             })
@@ -87,17 +87,17 @@ impl<'a> DOMTokenListMethods for JSRef<'
     }
 
     fn IndexedGetter(self, index: u32, found: &mut bool) -> Option<DOMString> {
         let item = self.Item(index);
         *found = item.is_some();
         item
     }
 
-    // http://dom.spec.whatwg.org/#dom-domtokenlist-contains
+    // https://dom.spec.whatwg.org/#dom-domtokenlist-contains
     fn Contains(self, token: DOMString) -> Fallible<bool> {
         self.check_token_exceptions(&token).map(|token| {
             self.attribute().root().map(|attr| {
                 // FIXME(https://github.com/rust-lang/rust/issues/23338)
                 let attr = attr.r();
                 let value = attr.value();
                 value.tokens()
                      .expect("Should have parsed this attribute")
--- a/servo/components/script/dom/element.rs
+++ b/servo/components/script/dom/element.rs
@@ -492,17 +492,17 @@ impl<'a> ElementHelpers<'a> for JSRef<'a
     }
 
     fn is_void(self) -> bool {
         if self.namespace != ns!(HTML) {
             return false
         }
         match self.local_name.as_slice() {
             /* List of void elements from
-            http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#html-fragment-serialization-algorithm */
+            https://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#html-fragment-serialization-algorithm */
             "area" | "base" | "basefont" | "bgsound" | "br" | "col" | "embed" |
             "frame" | "hr" | "img" | "input" | "keygen" | "link" | "menuitem" |
             "meta" | "param" | "source" | "track" | "wbr" => true,
             _ => false
         }
     }
 
     fn remove_inline_style_property(self, property: DOMString) {
@@ -680,17 +680,17 @@ pub trait AttributeHandlers {
     /// Removes the first attribute that satisfies `find`.
     fn do_remove_attribute<F>(self, find: F) -> Option<Temporary<Attr>>
         where F: Fn(JSRef<Attr>) -> bool;
 
     fn has_class(self, name: &Atom) -> bool;
 
     fn set_atomic_attribute(self, local_name: &Atom, value: DOMString);
 
-    // http://www.whatwg.org/html/#reflecting-content-attributes-in-idl-attributes
+    // https://www.whatwg.org/html/#reflecting-content-attributes-in-idl-attributes
     fn has_attribute(self, local_name: &Atom) -> bool;
     fn set_bool_attribute(self, local_name: &Atom, value: bool);
     fn get_url_attribute(self, local_name: &Atom) -> DOMString;
     fn set_url_attribute(self, local_name: &Atom, value: DOMString);
     fn get_string_attribute(self, local_name: &Atom) -> DOMString;
     fn set_string_attribute(self, local_name: &Atom, value: DOMString);
     fn get_tokenlist_attribute(self, local_name: &Atom) -> Vec<Atom>;
     fn set_tokenlist_attribute(self, local_name: &Atom, value: DOMString);
@@ -968,105 +968,105 @@ impl<'a> AttributeHandlers for JSRef<'a,
     }
     fn set_uint_attribute(self, local_name: &Atom, value: u32) {
         assert!(local_name.as_slice() == local_name.to_ascii_lowercase());
         self.set_attribute(local_name, AttrValue::UInt(value.to_string(), value));
     }
 }
 
 impl<'a> ElementMethods for JSRef<'a, Element> {
-    // http://dom.spec.whatwg.org/#dom-element-namespaceuri
+    // https://dom.spec.whatwg.org/#dom-element-namespaceuri
     fn GetNamespaceURI(self) -> Option<DOMString> {
         match self.namespace {
             ns!("") => None,
             Namespace(ref ns) => Some(ns.as_slice().to_owned())
         }
     }
 
     // https://dom.spec.whatwg.org/#dom-element-localname
     fn LocalName(self) -> DOMString {
         self.local_name.as_slice().to_owned()
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-prefix
+    // https://dom.spec.whatwg.org/#dom-element-prefix
     fn GetPrefix(self) -> Option<DOMString> {
         self.prefix.clone()
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-tagname
+    // https://dom.spec.whatwg.org/#dom-element-tagname
     fn TagName(self) -> DOMString {
         let qualified_name = match self.prefix {
             Some(ref prefix) => {
                 (format!("{}:{}",
                          prefix.as_slice(),
                          self.local_name.as_slice())).into_cow()
             },
             None => self.local_name.as_slice().into_cow()
         };
         if self.html_element_in_html_document() {
             qualified_name.to_ascii_uppercase()
         } else {
             qualified_name.into_owned()
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-id
+    // https://dom.spec.whatwg.org/#dom-element-id
     fn Id(self) -> DOMString {
         self.get_string_attribute(&atom!("id"))
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-id
+    // https://dom.spec.whatwg.org/#dom-element-id
     fn SetId(self, id: DOMString) {
         self.set_atomic_attribute(&atom!("id"), id);
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-classname
+    // https://dom.spec.whatwg.org/#dom-element-classname
     fn ClassName(self) -> DOMString {
         self.get_string_attribute(&atom!("class"))
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-classname
+    // https://dom.spec.whatwg.org/#dom-element-classname
     fn SetClassName(self, class: DOMString) {
         self.set_tokenlist_attribute(&atom!("class"), class);
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-classlist
+    // https://dom.spec.whatwg.org/#dom-element-classlist
     fn ClassList(self) -> Temporary<DOMTokenList> {
         self.class_list.or_init(|| DOMTokenList::new(self, &atom!("class")))
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-attributes
+    // https://dom.spec.whatwg.org/#dom-element-attributes
     fn Attributes(self) -> Temporary<NamedNodeMap> {
         self.attr_list.or_init(|| {
             let doc = {
                 let node: JSRef<Node> = NodeCast::from_ref(self);
                 node.owner_doc().root()
             };
             let window = doc.r().window().root();
             NamedNodeMap::new(window.r(), self)
         })
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-getattribute
+    // https://dom.spec.whatwg.org/#dom-element-getattribute
     fn GetAttribute(self, name: DOMString) -> Option<DOMString> {
         let name = self.parsed_name(name);
         self.get_attribute_by_name(&Atom::from_slice(&name)).root()
                      .map(|s| s.r().Value())
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-getattributens
+    // https://dom.spec.whatwg.org/#dom-element-getattributens
     fn GetAttributeNS(self,
                       namespace: Option<DOMString>,
                       local_name: DOMString) -> Option<DOMString> {
         let namespace = &namespace::from_domstring(namespace);
         self.get_attribute(namespace, &Atom::from_slice(&local_name)).root()
                      .map(|attr| attr.r().Value())
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-setattribute
+    // https://dom.spec.whatwg.org/#dom-element-setattribute
     fn SetAttribute(self,
                     name: DOMString,
                     value: DOMString) -> ErrorResult {
         // Step 1.
         if xml_name_type(&name) == InvalidXMLName {
             return Err(InvalidCharacter);
         }
 
@@ -1077,17 +1077,17 @@ impl<'a> ElementMethods for JSRef<'a, El
         let name = Atom::from_slice(&name);
         let value = self.parse_attribute(&ns!(""), &name, value);
         self.do_set_attribute(name.clone(), value, name.clone(), ns!(""), None, |attr| {
             *attr.name() == name
         });
         Ok(())
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-setattributens
+    // https://dom.spec.whatwg.org/#dom-element-setattributens
     fn SetAttributeNS(self,
                       namespace: Option<DOMString>,
                       qualified_name: DOMString,
                       value: DOMString) -> ErrorResult {
         let (namespace, prefix, local_name) =
             try!(validate_and_extract(namespace, &qualified_name));
         let qualified_name = Atom::from_slice(&qualified_name);
         let value = self.parse_attribute(&namespace, &local_name, value);
@@ -1095,37 +1095,37 @@ impl<'a> ElementMethods for JSRef<'a, El
                               namespace.clone(), prefix.map(|s| s.to_owned()),
                               |attr| {
             *attr.local_name() == local_name &&
             *attr.namespace() == namespace
         });
         Ok(())
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-removeattribute
+    // https://dom.spec.whatwg.org/#dom-element-removeattribute
     fn RemoveAttribute(self, name: DOMString) {
         let name = Atom::from_slice(&self.parsed_name(name));
         self.remove_attribute_by_name(&name);
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-removeattributens
+    // https://dom.spec.whatwg.org/#dom-element-removeattributens
     fn RemoveAttributeNS(self,
                          namespace: Option<DOMString>,
                          local_name: DOMString) {
         let namespace = namespace::from_domstring(namespace);
         let local_name = Atom::from_slice(&local_name);
         self.remove_attribute(&namespace, &local_name);
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-hasattribute
+    // https://dom.spec.whatwg.org/#dom-element-hasattribute
     fn HasAttribute(self, name: DOMString) -> bool {
         self.GetAttribute(name).is_some()
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-hasattributens
+    // https://dom.spec.whatwg.org/#dom-element-hasattributens
     fn HasAttributeNS(self,
                       namespace: Option<DOMString>,
                       local_name: DOMString) -> bool {
         self.GetAttributeNS(namespace, local_name).is_some()
     }
 
     // https://dom.spec.whatwg.org/#dom-element-getelementsbytagname
     fn GetElementsByTagName(self, localname: DOMString) -> Temporary<HTMLCollection> {
@@ -1239,17 +1239,17 @@ impl<'a> ElementMethods for JSRef<'a, El
     }
 
     // https://dom.spec.whatwg.org/#dom-nondocumenttypechildnode-nextelementsibling
     fn GetNextElementSibling(self) -> Option<Temporary<Element>> {
         NodeCast::from_ref(self).following_siblings()
                                 .filter_map(ElementCast::to_temporary).next()
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-children
+    // https://dom.spec.whatwg.org/#dom-parentnode-children
     fn Children(self) -> Temporary<HTMLCollection> {
         let window = window_from_node(self).root();
         HTMLCollection::children(window.r(), NodeCast::from_ref(self))
     }
 
     // https://dom.spec.whatwg.org/#dom-parentnode-firstelementchild
     fn GetFirstElementChild(self) -> Option<Temporary<Element>> {
         NodeCast::from_ref(self).child_elements().next()
@@ -1260,35 +1260,35 @@ impl<'a> ElementMethods for JSRef<'a, El
         NodeCast::from_ref(self).rev_children().filter_map(ElementCast::to_temporary).next()
     }
 
     // https://dom.spec.whatwg.org/#dom-parentnode-childelementcount
     fn ChildElementCount(self) -> u32 {
         NodeCast::from_ref(self).child_elements().count() as u32
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-queryselector
+    // https://dom.spec.whatwg.org/#dom-parentnode-queryselector
     fn QuerySelector(self, selectors: DOMString) -> Fallible<Option<Temporary<Element>>> {
         let root: JSRef<Node> = NodeCast::from_ref(self);
         root.query_selector(selectors)
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
+    // https://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
     fn QuerySelectorAll(self, selectors: DOMString) -> Fallible<Temporary<NodeList>> {
         let root: JSRef<Node> = NodeCast::from_ref(self);
         root.query_selector_all(selectors)
     }
 
-    // http://dom.spec.whatwg.org/#dom-childnode-remove
+    // https://dom.spec.whatwg.org/#dom-childnode-remove
     fn Remove(self) {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.remove_self();
     }
 
-    // http://dom.spec.whatwg.org/#dom-element-matches
+    // https://dom.spec.whatwg.org/#dom-element-matches
     fn Matches(self, selectors: DOMString) -> Fallible<bool> {
         match parse_author_origin_selector_list_from_str(&selectors) {
             Err(()) => Err(Syntax),
             Ok(ref selectors) => {
                 let root: JSRef<Node> = NodeCast::from_ref(self);
                 Ok(matches(selectors, &root, &mut None))
             }
         }
@@ -1476,17 +1476,17 @@ impl<'a> style::node::TElement<'a> for J
             // This transmute is used to cheat the lifetime restriction.
             unsafe { mem::transmute(value.as_slice()) }
         }).collect()
     }
     fn get_link(self) -> Option<&'a str> {
         // FIXME: This is HTML only.
         let node: JSRef<Node> = NodeCast::from_ref(self);
         match node.type_id() {
-            // http://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html#
+            // https://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html#
             // selector-link
             NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLAnchorElement)) |
             NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLAreaElement)) |
             NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLLinkElement)) => self.get_attr(&ns!(""), &atom!("href")),
             _ => None,
          }
     }
     fn get_local_name(self) -> &'a Atom {
--- a/servo/components/script/dom/eventdispatcher.rs
+++ b/servo/components/script/dom/eventdispatcher.rs
@@ -7,17 +7,17 @@ use dom::bindings::codegen::Bindings::Ev
 use dom::bindings::codegen::InheritTypes::{EventTargetCast, NodeCast};
 use dom::bindings::js::{JS, JSRef, OptionalRootable};
 use dom::bindings::trace::RootedVec;
 use dom::eventtarget::{EventTarget, ListenerPhase};
 use dom::event::{Event, EventPhase};
 use dom::node::{Node, NodeHelpers};
 use dom::virtualmethods::vtable_for;
 
-// See http://dom.spec.whatwg.org/#concept-event-dispatch for the full dispatch algorithm
+// See https://dom.spec.whatwg.org/#concept-event-dispatch for the full dispatch algorithm
 pub fn dispatch_event<'a, 'b>(target: JSRef<'a, EventTarget>,
                               pseudo_target: Option<JSRef<'b, EventTarget>>,
                               event: JSRef<Event>) -> bool {
     assert!(!event.dispatching());
     assert!(event.initialized());
 
     event.set_target(match pseudo_target {
         Some(pseudo_target) => pseudo_target,
--- a/servo/components/script/dom/htmlbuttonelement.rs
+++ b/servo/components/script/dom/htmlbuttonelement.rs
@@ -67,20 +67,20 @@ impl HTMLButtonElement {
 }
 
 impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
     fn Validity(self) -> Temporary<ValidityState> {
         let window = window_from_node(self).root();
         ValidityState::new(window.r())
     }
 
-    // http://www.whatwg.org/html/#dom-fe-disabled
+    // https://www.whatwg.org/html/#dom-fe-disabled
     make_bool_getter!(Disabled);
 
-    // http://www.whatwg.org/html/#dom-fe-disabled
+    // https://www.whatwg.org/html/#dom-fe-disabled
     make_bool_setter!(SetDisabled, "disabled");
 
     // https://html.spec.whatwg.org/multipage/forms.html#dom-button-type
     fn Type(self) -> DOMString {
         let elem: JSRef<Element> = ElementCast::from_ref(self);
         let ty = elem.get_string_attribute(&atom!("type")).into_ascii_lowercase();
         // https://html.spec.whatwg.org/multipage/forms.html#attr-button-type
         match ty.as_slice() {
--- a/servo/components/script/dom/htmlcollection.rs
+++ b/servo/components/script/dom/htmlcollection.rs
@@ -170,47 +170,47 @@ impl HTMLCollection {
         root.traverse_preorder()
             .skip(1)
             .filter_map(ElementCast::to_temporary as
                         fn(Temporary<Node>) -> Option<Temporary<Element>>)
     }
 }
 
 impl<'a> HTMLCollectionMethods for JSRef<'a, HTMLCollection> {
-    // http://dom.spec.whatwg.org/#dom-htmlcollection-length
+    // https://dom.spec.whatwg.org/#dom-htmlcollection-length
     fn Length(self) -> u32 {
         match self.collection {
             CollectionTypeId::Static(ref elems) => elems.len() as u32,
             CollectionTypeId::Live(ref root, ref filter) => {
                 let root = root.root();
                 HTMLCollection::traverse(root.r())
                     .filter(|element| filter.filter(element.root().r(), root.r()))
                     .count() as u32
             }
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-htmlcollection-item
+    // https://dom.spec.whatwg.org/#dom-htmlcollection-item
     fn Item(self, index: u32) -> Option<Temporary<Element>> {
         let index = index as usize;
         match self.collection {
             CollectionTypeId::Static(ref elems) => elems
                 .as_slice()
                 .get(index)
                 .map(|elem| Temporary::new(elem.clone())),
             CollectionTypeId::Live(ref root, ref filter) => {
                 let root = root.root();
                 HTMLCollection::traverse(root.r())
                     .filter(|element| filter.filter(element.root().r(), root.r()))
                     .nth(index)
             }
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-htmlcollection-nameditem
+    // https://dom.spec.whatwg.org/#dom-htmlcollection-nameditem
     fn NamedItem(self, key: DOMString) -> Option<Temporary<Element>> {
         // Step 1.
         if key.is_empty() {
             return None;
         }
 
         // Step 2.
         match self.collection {
--- a/servo/components/script/dom/htmlelement.rs
+++ b/servo/components/script/dom/htmlelement.rs
@@ -87,17 +87,17 @@ impl<'a> HTMLElementMethods for JSRef<'a
     }
 
     make_getter!(Title);
     make_setter!(SetTitle, "title");
 
     make_getter!(Lang);
     make_setter!(SetLang, "lang");
 
-    // http://html.spec.whatwg.org/multipage/#dom-hidden
+    // https://html.spec.whatwg.org/multipage/#dom-hidden
     make_bool_getter!(Hidden);
     make_bool_setter!(SetHidden, "hidden");
 
     global_event_handlers!(NoOnload);
 
     // https://html.spec.whatwg.org/multipage/dom.html#dom-dataset
     fn Dataset(self) -> Temporary<DOMStringMap> {
         self.dataset.or_init(|| DOMStringMap::new(self))
--- a/servo/components/script/dom/htmlfieldsetelement.rs
+++ b/servo/components/script/dom/htmlfieldsetelement.rs
@@ -43,17 +43,17 @@ impl HTMLFieldSetElement {
     #[allow(unrooted_must_root)]
     pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLFieldSetElement> {
         let element = HTMLFieldSetElement::new_inherited(localName, prefix, document);
         Node::reflect_node(box element, document, HTMLFieldSetElementBinding::Wrap)
     }
 }
 
 impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
-    // http://www.whatwg.org/html/#dom-fieldset-elements
+    // https://www.whatwg.org/html/#dom-fieldset-elements
     fn Elements(self) -> Temporary<HTMLCollection> {
         #[jstraceable]
         struct ElementsFilter;
         impl CollectionFilter for ElementsFilter {
             fn filter<'a>(&self, elem: JSRef<'a, Element>, _root: JSRef<'a, Node>) -> bool {
                 static TAG_NAMES: StaticStringVec = &["button", "fieldset", "input",
                     "keygen", "object", "output", "select", "textarea"];
                 TAG_NAMES.iter().any(|&tag_name| tag_name == elem.local_name().as_slice())
@@ -65,20 +65,20 @@ impl<'a> HTMLFieldSetElementMethods for 
         HTMLCollection::create(window.r(), node, filter)
     }
 
     fn Validity(self) -> Temporary<ValidityState> {
         let window = window_from_node(self).root();
         ValidityState::new(window.r())
     }
 
-    // http://www.whatwg.org/html/#dom-fieldset-disabled
+    // https://www.whatwg.org/html/#dom-fieldset-disabled
     make_bool_getter!(Disabled);
 
-    // http://www.whatwg.org/html/#dom-fieldset-disabled
+    // https://www.whatwg.org/html/#dom-fieldset-disabled
     make_bool_setter!(SetDisabled, "disabled");
 }
 
 impl<'a> VirtualMethods for JSRef<'a, HTMLFieldSetElement> {
     fn super_type<'b>(&'b self) -> Option<&'b VirtualMethods> {
         let htmlelement: &JSRef<HTMLElement> = HTMLElementCast::from_borrowed_ref(self);
         Some(htmlelement as &VirtualMethods)
     }
--- a/servo/components/script/dom/htmliframeelement.rs
+++ b/servo/components/script/dom/htmliframeelement.rs
@@ -63,17 +63,17 @@ impl HTMLIFrameElementDerived for EventT
     fn is_htmliframeelement(&self) -> bool {
         *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLIFrameElement)))
     }
 }
 
 pub trait HTMLIFrameElementHelpers {
     fn is_sandboxed(self) -> bool;
     fn get_url(self) -> Option<Url>;
-    /// http://www.whatwg.org/html/#process-the-iframe-attributes
+    /// https://www.whatwg.org/html/#process-the-iframe-attributes
     fn process_the_iframe_attributes(self);
     fn generate_new_subpage_id(self) -> (SubpageId, Option<SubpageId>);
     fn navigate_child_browsing_context(self, url: Url);
     fn dispatch_mozbrowser_event(self, event: MozBrowserEvent);
     fn update_subpage_id(self, new_subpage_id: SubpageId);
 }
 
 impl<'a> HTMLIFrameElementHelpers for JSRef<'a, HTMLIFrameElement> {
--- a/servo/components/script/dom/htmlinputelement.rs
+++ b/servo/components/script/dom/htmlinputelement.rs
@@ -204,20 +204,20 @@ impl RawLayoutHTMLInputElementHelpers fo
     #[allow(unrooted_must_root)]
     #[allow(unsafe_code)]
     unsafe fn get_size_for_layout(&self) -> u32 {
         self.size.get()
     }
 }
 
 impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
-    // http://www.whatwg.org/html/#dom-fe-disabled
+    // https://www.whatwg.org/html/#dom-fe-disabled
     make_bool_getter!(Disabled);
 
-    // http://www.whatwg.org/html/#dom-fe-disabled
+    // https://www.whatwg.org/html/#dom-fe-disabled
     make_bool_setter!(SetDisabled, "disabled");
 
     // https://html.spec.whatwg.org/multipage/forms.html#dom-input-defaultchecked
     make_bool_getter!(DefaultChecked, "checked");
 
     // https://html.spec.whatwg.org/multipage/forms.html#dom-input-defaultchecked
     make_bool_setter!(SetDefaultChecked, "checked");
 
--- a/servo/components/script/dom/htmloptgroupelement.rs
+++ b/servo/components/script/dom/htmloptgroupelement.rs
@@ -41,20 +41,20 @@ impl HTMLOptGroupElement {
     #[allow(unrooted_must_root)]
     pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLOptGroupElement> {
         let element = HTMLOptGroupElement::new_inherited(localName, prefix, document);
         Node::reflect_node(box element, document, HTMLOptGroupElementBinding::Wrap)
     }
 }
 
 impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
-    // http://www.whatwg.org/html#dom-optgroup-disabled
+    // https://www.whatwg.org/html#dom-optgroup-disabled
     make_bool_getter!(Disabled);
 
-    // http://www.whatwg.org/html#dom-optgroup-disabled
+    // https://www.whatwg.org/html#dom-optgroup-disabled
     make_bool_setter!(SetDisabled, "disabled");
 }
 
 impl<'a> VirtualMethods for JSRef<'a, HTMLOptGroupElement> {
     fn super_type<'b>(&'b self) -> Option<&'b VirtualMethods> {
         let htmlelement: &JSRef<HTMLElement> = HTMLElementCast::from_borrowed_ref(self);
         Some(htmlelement as &VirtualMethods)
     }
--- a/servo/components/script/dom/htmloptionelement.rs
+++ b/servo/components/script/dom/htmloptionelement.rs
@@ -64,35 +64,35 @@ fn collect_text(node: &JSRef<Node>, valu
             } else {
                 collect_text(&child.r(), value);
             }
         }
     }
 }
 
 impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
-    // http://www.whatwg.org/html/#dom-option-disabled
+    // https://www.whatwg.org/html/#dom-option-disabled
     make_bool_getter!(Disabled);
 
-    // http://www.whatwg.org/html/#dom-option-disabled
+    // https://www.whatwg.org/html/#dom-option-disabled
     fn SetDisabled(self, disabled: bool) {
         let elem: JSRef<Element> = ElementCast::from_ref(self);
         elem.set_bool_attribute(&atom!("disabled"), disabled)
     }
 
-    // http://www.whatwg.org/html/#dom-option-text
+    // https://www.whatwg.org/html/#dom-option-text
     fn Text(self) -> DOMString {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         let mut content = String::new();
         collect_text(&node, &mut content);
         let v: Vec<&str> = split_html_space_chars(content.as_slice()).collect();
         v.connect(" ")
     }
 
-    // http://www.whatwg.org/html/#dom-option-text
+    // https://www.whatwg.org/html/#dom-option-text
     fn SetText(self, value: DOMString) {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.SetTextContent(Some(value))
     }
 
     // https://html.spec.whatwg.org/multipage/forms.html#attr-option-value
     fn Value(self) -> DOMString {
         let element: JSRef<Element> = ElementCast::from_ref(self);
--- a/servo/components/script/dom/htmlscriptelement.rs
+++ b/servo/components/script/dom/htmlscriptelement.rs
@@ -91,17 +91,17 @@ impl HTMLScriptElement {
     pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>,
                creator: ElementCreator) -> Temporary<HTMLScriptElement> {
         let element = HTMLScriptElement::new_inherited(localName, prefix, document, creator);
         Node::reflect_node(box element, document, HTMLScriptElementBinding::Wrap)
     }
 }
 
 pub trait HTMLScriptElementHelpers {
-    /// Prepare a script (<http://www.whatwg.org/html/#prepare-a-script>)
+    /// Prepare a script (<https://www.whatwg.org/html/#prepare-a-script>)
     fn prepare(self);
 
     /// [Execute a script block]
     /// (https://html.spec.whatwg.org/multipage/#execute-the-script-block)
     fn execute(self, load: ScriptOrigin);
 
     /// Prepare a script, steps 6 and 7.
     fn is_javascript(self) -> bool;
@@ -121,17 +121,17 @@ pub trait HTMLScriptElementHelpers {
     /// Dispatch load event.
     fn dispatch_load_event(self);
 
     /// Dispatch error event.
     fn dispatch_error_event(self);
 }
 
 /// Supported script types as defined by
-/// <http://whatwg.org/html/#support-the-scripting-language>.
+/// <https://whatwg.org/html/#support-the-scripting-language>.
 static SCRIPT_JS_MIMES: StaticStringVec = &[
     "application/ecmascript",
     "application/javascript",
     "application/x-ecmascript",
     "application/x-javascript",
     "text/ecmascript",
     "text/javascript",
     "text/javascript1.0",
@@ -517,22 +517,22 @@ impl<'a> VirtualMethods for JSRef<'a, HT
     }
 }
 
 impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
     make_url_getter!(Src);
 
     make_setter!(SetSrc, "src");
 
-    // http://www.whatwg.org/html/#dom-script-text
+    // https://www.whatwg.org/html/#dom-script-text
     fn Text(self) -> DOMString {
         Node::collect_text_contents(NodeCast::from_ref(self).children())
     }
 
-    // http://www.whatwg.org/html/#dom-script-text
+    // https://www.whatwg.org/html/#dom-script-text
     fn SetText(self, value: DOMString) {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.SetTextContent(Some(value))
     }
 }
 
 struct EventDispatcher {
     element: Trusted<HTMLScriptElement>,
--- a/servo/components/script/dom/htmlselectelement.rs
+++ b/servo/components/script/dom/htmlselectelement.rs
@@ -55,20 +55,20 @@ impl<'a> HTMLSelectElementMethods for JS
         let window = window_from_node(self).root();
         ValidityState::new(window.r())
     }
 
     // Note: this function currently only exists for test_union.html.
     fn Add(self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>) {
     }
 
-    // http://www.whatwg.org/html/#dom-fe-disabled
+    // https://www.whatwg.org/html/#dom-fe-disabled
     make_bool_getter!(Disabled);
 
-    // http://www.whatwg.org/html/#dom-fe-disabled
+    // https://www.whatwg.org/html/#dom-fe-disabled
     make_bool_setter!(SetDisabled, "disabled");
 
     // https://html.spec.whatwg.org/multipage/forms.html#dom-select-type
     fn Type(self) -> DOMString {
         let elem: JSRef<Element> = ElementCast::from_ref(self);
         if elem.has_attribute(&atom!("multiple")) {
             "select-multiple".to_owned()
         } else {
--- a/servo/components/script/dom/htmltableelement.rs
+++ b/servo/components/script/dom/htmltableelement.rs
@@ -55,28 +55,28 @@ impl HTMLTableElement {
     pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>)
                -> Temporary<HTMLTableElement> {
         let element = HTMLTableElement::new_inherited(localName, prefix, document);
         Node::reflect_node(box element, document, HTMLTableElementBinding::Wrap)
     }
 }
 
 impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
-    //  http://www.whatwg.org/html/#dom-table-caption
+    //  https://www.whatwg.org/html/#dom-table-caption
     fn GetCaption(self) -> Option<Temporary<HTMLTableCaptionElement>> {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.children()
             .map(|c| c.root())
             .filter_map(|c| {
                 HTMLTableCaptionElementCast::to_ref(c.r()).map(Temporary::from_rooted)
             })
             .next()
     }
 
-    // http://www.whatwg.org/html/#dom-table-caption
+    // https://www.whatwg.org/html/#dom-table-caption
     fn SetCaption(self, new_caption: Option<JSRef<HTMLTableCaptionElement>>) {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         let old_caption = self.GetCaption();
 
         match old_caption {
             Some(htmlelem) => {
                 let htmlelem_root = htmlelem.root();
                 let old_caption_node: JSRef<Node> = NodeCast::from_ref(htmlelem_root.r());
--- a/servo/components/script/dom/htmltextareaelement.rs
+++ b/servo/components/script/dom/htmltextareaelement.rs
@@ -111,20 +111,20 @@ impl<'a> HTMLTextAreaElementMethods for 
     // constraints
 
     // https://html.spec.whatwg.org/multipage/forms.html#dom-textarea-cols
     make_uint_getter!(Cols);
 
     // https://html.spec.whatwg.org/multipage/forms.html#dom-textarea-cols
     make_uint_setter!(SetCols, "cols");
 
-    // http://www.whatwg.org/html/#dom-fe-disabled
+    // https://www.whatwg.org/html/#dom-fe-disabled
     make_bool_getter!(Disabled);
 
-    // http://www.whatwg.org/html/#dom-fe-disabled
+    // https://www.whatwg.org/html/#dom-fe-disabled
     make_bool_setter!(SetDisabled, "disabled");
 
     // https://html.spec.whatwg.org/multipage/forms.html#attr-fe-name
     make_getter!(Name);
 
     // https://html.spec.whatwg.org/multipage/forms.html#attr-fe-name
     make_setter!(SetName, "name");
 
--- a/servo/components/script/dom/htmltitleelement.rs
+++ b/servo/components/script/dom/htmltitleelement.rs
@@ -39,32 +39,32 @@ impl HTMLTitleElement {
     #[allow(unrooted_must_root)]
     pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTitleElement> {
         let element = HTMLTitleElement::new_inherited(localName, prefix, document);
         Node::reflect_node(box element, document, HTMLTitleElementBinding::Wrap)
     }
 }
 
 impl<'a> HTMLTitleElementMethods for JSRef<'a, HTMLTitleElement> {
-    // http://www.whatwg.org/html/#dom-title-text
+    // https://www.whatwg.org/html/#dom-title-text
     fn Text(self) -> DOMString {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         let mut content = String::new();
         for child in node.children() {
             let child = child.root();
             let text: Option<JSRef<Text>> = TextCast::to_ref(child.r());
             match text {
                 Some(text) => content.push_str(&CharacterDataCast::from_ref(text).data()),
                 None => (),
             }
         }
         content
     }
 
-    // http://www.whatwg.org/html/#dom-title-text
+    // https://www.whatwg.org/html/#dom-title-text
     fn SetText(self, value: DOMString) {
         let node: JSRef<Node> = NodeCast::from_ref(self);
         node.SetTextContent(Some(value))
     }
 }
 
 impl<'a> VirtualMethods for JSRef<'a, HTMLTitleElement> {
     fn super_type<'b>(&'b self) -> Option<&'b VirtualMethods> {
--- a/servo/components/script/dom/node.rs
+++ b/servo/components/script/dom/node.rs
@@ -180,18 +180,18 @@ impl NodeFlags {
 impl Drop for Node {
     #[allow(unsafe_code)]
     fn drop(&mut self) {
         self.layout_data.dispose();
     }
 }
 
 /// suppress observers flag
-/// http://dom.spec.whatwg.org/#concept-node-insert
-/// http://dom.spec.whatwg.org/#concept-node-remove
+/// https://dom.spec.whatwg.org/#concept-node-insert
+/// https://dom.spec.whatwg.org/#concept-node-remove
 #[derive(Copy)]
 enum SuppressObserver {
     Suppressed,
     Unsuppressed
 }
 
 /// Layout data that is shared between the script and layout tasks.
 pub struct SharedLayoutData {
@@ -278,33 +278,33 @@ pub enum NodeTypeId {
 trait PrivateNodeHelpers {
     fn node_inserted(self);
     fn node_removed(self, parent_in_doc: bool);
     fn add_child(self, new_child: JSRef<Node>, before: Option<JSRef<Node>>);
     fn remove_child(self, child: JSRef<Node>);
 }
 
 impl<'a> PrivateNodeHelpers for JSRef<'a, Node> {
-    // http://dom.spec.whatwg.org/#node-is-inserted
+    // https://dom.spec.whatwg.org/#node-is-inserted
     fn node_inserted(self) {
         assert!(self.parent_node().is_some());
         let document = document_from_node(self).root();
         let is_in_doc = self.is_in_doc();
 
         for node in self.traverse_preorder() {
             let node = node.root();
             vtable_for(&node.r()).bind_to_tree(is_in_doc);
         }
 
         let parent = self.parent_node().root();
         parent.map(|parent| vtable_for(&parent.r()).child_inserted(self));
         document.r().content_and_heritage_changed(self, NodeDamage::OtherNodeDamage);
     }
 
-    // http://dom.spec.whatwg.org/#node-is-removed
+    // https://dom.spec.whatwg.org/#node-is-removed
     fn node_removed(self, parent_in_doc: bool) {
         assert!(self.parent_node().is_none());
         for node in self.traverse_preorder() {
             let node = node.root();
             vtable_for(&node.r()).unbind_from_tree(parent_in_doc);
         }
         self.layout_data.dispose();
     }
@@ -797,17 +797,17 @@ impl<'a> NodeHelpers for JSRef<'a, Node>
     fn get_bounding_content_box(self) -> Rect<Au> {
         window_from_node(self).root().r().content_box_query(self.to_trusted_node_address())
     }
 
     fn get_content_boxes(self) -> Vec<Rect<Au>> {
         window_from_node(self).root().r().content_boxes_query(self.to_trusted_node_address())
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-queryselector
+    // https://dom.spec.whatwg.org/#dom-parentnode-queryselector
     fn query_selector(self, selectors: DOMString) -> Fallible<Option<Temporary<Element>>> {
         // Step 1.
         match parse_author_origin_selector_list_from_str(selectors.as_slice()) {
             // Step 2.
             Err(()) => return Err(Syntax),
             // Step 3.
             Ok(ref selectors) => {
                 let root = self.ancestors().last().root();
@@ -836,17 +836,17 @@ impl<'a> NodeHelpers for JSRef<'a, Node>
             // Step 3.
             Ok(selectors) => {
                 nodes = QuerySelectorIterator::new(root.traverse_preorder(), selectors);
             }
         };
         Ok(nodes)
     }
 
-    // http://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
+    // https://dom.spec.whatwg.org/#dom-parentnode-queryselectorall
     #[allow(unsafe_code)]
     fn query_selector_all(self, selectors: DOMString) -> Fallible<Temporary<NodeList>> {
         let mut nodes = RootedVec::new();
         for node in try!(unsafe { self.query_selector_iter(selectors) }) {
             nodes.push(JS::from_rooted(node));
         }
         let window = window_from_node(self).root();
         Ok(NodeList::new_simple_list(window.r(), &nodes))
@@ -1287,17 +1287,17 @@ impl Node {
     }
 
     #[inline]
     #[allow(unsafe_code)]
     pub unsafe fn layout_data_unchecked(&self) -> *const Option<LayoutData> {
         self.layout_data.borrow_unchecked()
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-adopt
+    // https://dom.spec.whatwg.org/#concept-node-adopt
     pub fn adopt(node: JSRef<Node>, document: JSRef<Document>) {
         // Step 1.
         match node.parent_node().root() {
             Some(parent) => {
                 Node::remove(node, parent.r(), SuppressObserver::Unsuppressed);
             }
             None => (),
         }
@@ -1309,17 +1309,17 @@ impl Node {
                 descendant.root().r().set_owner_doc(document);
             }
         }
 
         // Step 3.
         // If node is an element, it is _affected by a base URL change_.
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-pre-insert
+    // https://dom.spec.whatwg.org/#concept-node-pre-insert
     fn pre_insert(node: JSRef<Node>, parent: JSRef<Node>, child: Option<JSRef<Node>>)
                   -> Fallible<Temporary<Node>> {
         // Step 1.
         match parent.type_id() {
             NodeTypeId::Document |
             NodeTypeId::DocumentFragment |
             NodeTypeId::Element(..) => (),
             _ => return Err(HierarchyRequest)
@@ -1447,17 +1447,17 @@ impl Node {
 
         // Step 10.
         Node::insert(node, parent, reference_child, SuppressObserver::Unsuppressed);
 
         // Step 11.
         return Ok(Temporary::from_rooted(node))
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-insert
+    // https://dom.spec.whatwg.org/#concept-node-insert
     fn insert(node: JSRef<Node>,
               parent: JSRef<Node>,
               child: Option<JSRef<Node>>,
               suppress_observers: SuppressObserver) {
         fn do_insert(node: JSRef<Node>, parent: JSRef<Node>, child: Option<JSRef<Node>>) {
             parent.add_child(node, child);
             let is_in_doc = parent.is_in_doc();
             for kid in node.traverse_preorder() {
@@ -1514,17 +1514,17 @@ impl Node {
                 // Step 8.
                 do_insert(node, parent, child);
                 // Step 9.
                 fire_observer_if_necessary(node, suppress_observers);
             }
         }
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-replace-all
+    // https://dom.spec.whatwg.org/#concept-node-replace-all
     pub fn replace_all(node: Option<JSRef<Node>>, parent: JSRef<Node>) {
         // Step 1.
         match node {
             Some(node) => {
                 let document = document_from_node(parent).root();
                 Node::adopt(node, document.r());
             }
             None => (),
@@ -1566,33 +1566,33 @@ impl Node {
             removed_node.r().node_removed(parent_in_doc);
         }
         for added_node in added_nodes {
             let added_node = added_node.root();
             added_node.r().node_inserted();
         }
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-pre-remove
+    // https://dom.spec.whatwg.org/#concept-node-pre-remove
     fn pre_remove(child: JSRef<Node>, parent: JSRef<Node>) -> Fallible<Temporary<Node>> {
         // Step 1.
         match child.parent_node() {
             Some(ref node) if node != &Temporary::from_rooted(parent) => return Err(NotFound),
             None => return Err(NotFound),
             _ => ()
         }
 
         // Step 2.
         Node::remove(child, parent, SuppressObserver::Unsuppressed);
 
         // Step 3.
         Ok(Temporary::from_rooted(child))
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-remove
+    // https://dom.spec.whatwg.org/#concept-node-remove
     fn remove(node: JSRef<Node>, parent: JSRef<Node>, suppress_observers: SuppressObserver) {
         assert!(node.parent_node().map_or(false, |node_parent| node_parent == Temporary::from_rooted(parent)));
 
         // Step 1-5: ranges.
         // Step 6-7: mutation observers.
         // Step 8.
         parent.remove_child(node);
 
@@ -1600,17 +1600,17 @@ impl Node {
 
         // Step 9.
         match suppress_observers {
             SuppressObserver::Suppressed => (),
             SuppressObserver::Unsuppressed => node.node_removed(parent.is_in_doc()),
         }
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-clone
+    // https://dom.spec.whatwg.org/#concept-node-clone
     pub fn clone(node: JSRef<Node>, maybe_doc: Option<JSRef<Document>>,
                  clone_children: CloneChildrenFlag) -> Temporary<Node> {
 
         // Step 1.
         let document = match maybe_doc {
             Some(doc) => JS::from_rooted(doc).root(),
             None => node.owner_doc().root()
         };
@@ -1729,30 +1729,30 @@ impl Node {
                 None => (),
             }
         }
         content
     }
 }
 
 impl<'a> NodeMethods for JSRef<'a, Node> {
-    // http://dom.spec.whatwg.org/#dom-node-nodetype
+    // https://dom.spec.whatwg.org/#dom-node-nodetype
     fn NodeType(self) -> u16 {
         match self.type_id {
             NodeTypeId::Element(_)            => NodeConstants::ELEMENT_NODE,
             NodeTypeId::Text                  => NodeConstants::TEXT_NODE,
             NodeTypeId::ProcessingInstruction => NodeConstants::PROCESSING_INSTRUCTION_NODE,
             NodeTypeId::Comment               => NodeConstants::COMMENT_NODE,
             NodeTypeId::Document              => NodeConstants::DOCUMENT_NODE,
             NodeTypeId::DocumentType          => NodeConstants::DOCUMENT_TYPE_NODE,
             NodeTypeId::DocumentFragment      => NodeConstants::DOCUMENT_FRAGMENT_NODE,
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-nodename
+    // https://dom.spec.whatwg.org/#dom-node-nodename
     fn NodeName(self) -> DOMString {
         match self.type_id {
             NodeTypeId::Element(..) => {
                 let elem: JSRef<Element> = ElementCast::to_ref(self).unwrap();
                 elem.TagName()
             }
             NodeTypeId::Text => "#text".to_owned(),
             NodeTypeId::ProcessingInstruction => {
@@ -1765,113 +1765,113 @@ impl<'a> NodeMethods for JSRef<'a, Node>
                 let doctype: JSRef<DocumentType> = DocumentTypeCast::to_ref(self).unwrap();
                 doctype.name().clone()
             },
             NodeTypeId::DocumentFragment => "#document-fragment".to_owned(),
             NodeTypeId::Document => "#document".to_owned()
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-baseuri
+    // https://dom.spec.whatwg.org/#dom-node-baseuri
     fn GetBaseURI(self) -> Option<DOMString> {
         // FIXME (#1824) implement.
         None
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-ownerdocument
+    // https://dom.spec.whatwg.org/#dom-node-ownerdocument
     fn GetOwnerDocument(self) -> Option<Temporary<Document>> {
         match self.type_id {
             NodeTypeId::Element(..) |
             NodeTypeId::Comment |
             NodeTypeId::Text |
             NodeTypeId::ProcessingInstruction |
             NodeTypeId::DocumentType |
             NodeTypeId::DocumentFragment => Some(self.owner_doc()),
             NodeTypeId::Document => None
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-parentnode
+    // https://dom.spec.whatwg.org/#dom-node-parentnode
     fn GetParentNode(self) -> Option<Temporary<Node>> {
         self.parent_node.get()
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-parentelement
+    // https://dom.spec.whatwg.org/#dom-node-parentelement
     fn GetParentElement(self) -> Option<Temporary<Element>> {
         self.parent_node.get()
                         .and_then(|parent| {
                             let parent = parent.root();
                             ElementCast::to_ref(parent.r()).map(|elem| {
                                 Temporary::from_rooted(elem)
                             })
                         })
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-haschildnodes
+    // https://dom.spec.whatwg.org/#dom-node-haschildnodes
     fn HasChildNodes(self) -> bool {
         self.first_child.get().is_some()
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-childnodes
+    // https://dom.spec.whatwg.org/#dom-node-childnodes
     fn ChildNodes(self) -> Temporary<NodeList> {
         self.child_list.or_init(|| {
             let doc = self.owner_doc().root();
             let window = doc.r().window().root();
             NodeList::new_child_list(window.r(), self)
         })
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-firstchild
+    // https://dom.spec.whatwg.org/#dom-node-firstchild
     fn GetFirstChild(self) -> Option<Temporary<Node>> {
         self.first_child.get()
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-lastchild
+    // https://dom.spec.whatwg.org/#dom-node-lastchild
     fn GetLastChild(self) -> Option<Temporary<Node>> {
         self.last_child.get()
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-previoussibling
+    // https://dom.spec.whatwg.org/#dom-node-previoussibling
     fn GetPreviousSibling(self) -> Option<Temporary<Node>> {
         self.prev_sibling.get()
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-nextsibling
+    // https://dom.spec.whatwg.org/#dom-node-nextsibling
     fn GetNextSibling(self) -> Option<Temporary<Node>> {
         self.next_sibling.get()
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-nodevalue
+    // https://dom.spec.whatwg.org/#dom-node-nodevalue
     fn GetNodeValue(self) -> Option<DOMString> {
         match self.type_id {
             NodeTypeId::Comment |
             NodeTypeId::Text |
             NodeTypeId::ProcessingInstruction => {
                 let chardata: JSRef<CharacterData> = CharacterDataCast::to_ref(self).unwrap();
                 Some(chardata.Data())
             }
             _ => {
                 None
             }
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-nodevalue
+    // https://dom.spec.whatwg.org/#dom-node-nodevalue
     fn SetNodeValue(self, val: Option<DOMString>) {
         match self.type_id {
             NodeTypeId::Comment |
             NodeTypeId::Text |
             NodeTypeId::ProcessingInstruction => {
                 self.SetTextContent(val)
             }
             _ => {}
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-textcontent
+    // https://dom.spec.whatwg.org/#dom-node-textcontent
     fn GetTextContent(self) -> Option<DOMString> {
         match self.type_id {
             NodeTypeId::DocumentFragment |
             NodeTypeId::Element(..) => {
                 let content = Node::collect_text_contents(self.traverse_preorder());
                 Some(content)
             }
             NodeTypeId::Comment |
@@ -1882,17 +1882,17 @@ impl<'a> NodeMethods for JSRef<'a, Node>
             }
             NodeTypeId::DocumentType |
             NodeTypeId::Document => {
                 None
             }
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-textcontent
+    // https://dom.spec.whatwg.org/#dom-node-textcontent
     fn SetTextContent(self, value: Option<DOMString>) {
         let value = null_str_as_empty(&value);
         match self.type_id {
             NodeTypeId::DocumentFragment |
             NodeTypeId::Element(..) => {
                 // Step 1-2.
                 let node = if value.len() == 0 {
                     None
@@ -1914,27 +1914,27 @@ impl<'a> NodeMethods for JSRef<'a, Node>
                 let document = self.owner_doc().root();
                 document.r().content_changed(self, NodeDamage::OtherNodeDamage);
             }
             NodeTypeId::DocumentType |
             NodeTypeId::Document => {}
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-insertbefore
+    // https://dom.spec.whatwg.org/#dom-node-insertbefore
     fn InsertBefore(self, node: JSRef<Node>, child: Option<JSRef<Node>>) -> Fallible<Temporary<Node>> {
         Node::pre_insert(node, self, child)
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-appendchild
+    // https://dom.spec.whatwg.org/#dom-node-appendchild
     fn AppendChild(self, node: JSRef<Node>) -> Fallible<Temporary<Node>> {
         Node::pre_insert(node, self, None)
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-replace
+    // https://dom.spec.whatwg.org/#concept-node-replace
     fn ReplaceChild(self, node: JSRef<Node>, child: JSRef<Node>) -> Fallible<Temporary<Node>> {
 
         // Step 1.
         match self.type_id {
             NodeTypeId::Document |
             NodeTypeId::DocumentFragment |
             NodeTypeId::Element(..) => (),
             _ => return Err(HierarchyRequest)
@@ -2080,23 +2080,23 @@ impl<'a> NodeMethods for JSRef<'a, Node>
             let child_node = child_node.root();
             child_node.r().node_inserted();
         }
 
         // Step 14.
         Ok(Temporary::from_rooted(child))
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-removechild
+    // https://dom.spec.whatwg.org/#dom-node-removechild
     fn RemoveChild(self, node: JSRef<Node>)
                        -> Fallible<Temporary<Node>> {
         Node::pre_remove(node, self)
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-normalize
+    // https://dom.spec.whatwg.org/#dom-node-normalize
     fn Normalize(self) {
         let mut prev_text: Option<Temporary<Text>> = None;
         for child in self.children() {
             let child = child.root();
             match TextCast::to_ref(child.r()) {
                 Some(text) => {
                     let characterdata: JSRef<CharacterData> = CharacterDataCast::from_ref(text);
                     if characterdata.Length() == 0 {
@@ -2116,26 +2116,26 @@ impl<'a> NodeMethods for JSRef<'a, Node>
                 None => {
                     child.r().Normalize();
                     prev_text = None;
                 }
             }
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-clonenode
+    // https://dom.spec.whatwg.org/#dom-node-clonenode
     fn CloneNode(self, deep: bool) -> Temporary<Node> {
         Node::clone(self, None, if deep {
             CloneChildrenFlag::CloneChildren
         } else {
             CloneChildrenFlag::DoNotCloneChildren
         })
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-isequalnode
+    // https://dom.spec.whatwg.org/#dom-node-isequalnode
     fn IsEqualNode(self, maybe_node: Option<JSRef<Node>>) -> bool {
         fn is_equal_doctype(node: JSRef<Node>, other: JSRef<Node>) -> bool {
             let doctype: JSRef<DocumentType> = DocumentTypeCast::to_ref(node).unwrap();
             let other_doctype: JSRef<DocumentType> = DocumentTypeCast::to_ref(other).unwrap();
             (*doctype.name() == *other_doctype.name()) &&
             (*doctype.public_id() == *other_doctype.public_id()) &&
             (*doctype.system_id() == *other_doctype.system_id())
         }
@@ -2206,17 +2206,17 @@ impl<'a> NodeMethods for JSRef<'a, Node>
         match maybe_node {
             // Step 1.
             None => false,
             // Step 2-6.
             Some(node) => is_equal_node(self, node)
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-comparedocumentposition
+    // https://dom.spec.whatwg.org/#dom-node-comparedocumentposition
     fn CompareDocumentPosition(self, other: JSRef<Node>) -> u16 {
         if self == other {
             // step 2.
             0
         } else {
             let mut lastself = Temporary::from_rooted(self.clone());
             let mut lastother = Temporary::from_rooted(other.clone());
             for ancestor in self.ancestors() {
@@ -2264,37 +2264,37 @@ impl<'a> NodeMethods for JSRef<'a, Node>
                     // step 7.
                     return NodeConstants::DOCUMENT_POSITION_FOLLOWING;
                 }
             }
             unreachable!()
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-contains
+    // https://dom.spec.whatwg.org/#dom-node-contains
     fn Contains(self, maybe_other: Option<JSRef<Node>>) -> bool {
         match maybe_other {
             None => false,
             Some(other) => self.is_inclusive_ancestor_of(other)
         }
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-lookupprefix
+    // https://dom.spec.whatwg.org/#dom-node-lookupprefix
     fn LookupPrefix(self, _prefix: Option<DOMString>) -> Option<DOMString> {
         // FIXME (#1826) implement.
         None
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-lookupnamespaceuri
+    // https://dom.spec.whatwg.org/#dom-node-lookupnamespaceuri
     fn LookupNamespaceURI(self, _namespace: Option<DOMString>) -> Option<DOMString> {
         // FIXME (#1826) implement.
         None
     }
 
-    // http://dom.spec.whatwg.org/#dom-node-isdefaultnamespace
+    // https://dom.spec.whatwg.org/#dom-node-isdefaultnamespace
     fn IsDefaultNamespace(self, _namespace: Option<DOMString>) -> bool {
         // FIXME (#1826) implement.
         false
     }
 }
 
 
 
--- a/servo/components/script/dom/range.rs
+++ b/servo/components/script/dom/range.rs
@@ -32,14 +32,14 @@ impl Range {
 
     pub fn Constructor(global: GlobalRef) -> Fallible<Temporary<Range>> {
         let document = global.as_window().Document().root();
         Ok(Range::new(document.r()))
     }
 }
 
 impl<'a> RangeMethods for JSRef<'a, Range> {
-    /// http://dom.spec.whatwg.org/#dom-range-detach
+    /// https://dom.spec.whatwg.org/#dom-range-detach
     fn Detach(self) {
         // This method intentionally left blank.
     }
 }
 
--- a/servo/components/script/dom/treewalker.rs
+++ b/servo/components/script/dom/treewalker.rs
@@ -10,17 +10,17 @@ use dom::bindings::codegen::Bindings::No
 use dom::bindings::codegen::Bindings::NodeFilterBinding::NodeFilterConstants;
 use dom::bindings::error::Fallible;
 use dom::bindings::global::GlobalRef;
 use dom::bindings::js::{JS, JSRef, OptionalRootable, Temporary, MutHeap};
 use dom::bindings::utils::{Reflector, reflect_dom_object};
 use dom::document::{Document, DocumentHelpers};
 use dom::node::{Node, NodeHelpers};
 
-// http://dom.spec.whatwg.org/#interface-treewalker
+// https://dom.spec.whatwg.org/#interface-treewalker
 #[dom_struct]
 pub struct TreeWalker {
     reflector_: Reflector,
     root_node: JS<Node>,
     current_node: MutHeap<JS<Node>>,
     what_to_show: u32,
     filter: Filter
 }
@@ -144,17 +144,17 @@ trait PrivateTreeWalkerHelpers {
     fn is_root_node(self, node: JSRef<Node>) -> bool;
     fn is_current_node(self, node: JSRef<Node>) -> bool;
     fn first_following_node_not_following_root(self, node: JSRef<Node>)
                                                -> Option<Temporary<Node>>;
     fn accept_node(self, node: JSRef<Node>) -> Fallible<u16>;
 }
 
 impl<'a> PrivateTreeWalkerHelpers for JSRef<'a, TreeWalker> {
-    // http://dom.spec.whatwg.org/#concept-traverse-children
+    // https://dom.spec.whatwg.org/#concept-traverse-children
     fn traverse_children<F, G>(self,
                                next_child: F,
                                next_sibling: G)
                                -> Fallible<Option<Temporary<Node>>>
         where F: Fn(JSRef<Node>) -> Option<Temporary<Node>>,
               G: Fn(JSRef<Node>) -> Option<Temporary<Node>>
     {
         // "To **traverse children** of type *type*, run these steps:"
@@ -226,17 +226,17 @@ impl<'a> PrivateTreeWalkerHelpers for JS
                     }
                 }
             }
         }
         // "4. Return null."
         Ok(None)
     }
 
-    // http://dom.spec.whatwg.org/#concept-traverse-siblings
+    // https://dom.spec.whatwg.org/#concept-traverse-siblings
     fn traverse_siblings<F, G>(self,
                                next_child: F,
                                next_sibling: G)
                                -> Fallible<Option<Temporary<Node>>>
         where F: Fn(JSRef<Node>) -> Option<Temporary<Node>>,
               G: Fn(JSRef<Node>) -> Option<Temporary<Node>>
     {
         // "To **traverse siblings** of type *type* run these steps:"
@@ -291,17 +291,17 @@ impl<'a> PrivateTreeWalkerHelpers for JS
                         _ => {}
                     }
                 }
             }
             // "6. Run these substeps again."
         }
     }
 
-    // http://dom.spec.whatwg.org/#concept-tree-following
+    // https://dom.spec.whatwg.org/#concept-tree-following
     fn first_following_node_not_following_root(self, node: JSRef<Node>)
                                                -> Option<Temporary<Node>> {
         // "An object A is following an object B if A and B are in the same tree
         //  and A comes after B in tree order."
         match node.next_sibling() {
             None => {
                 let mut candidate = node;
                 while !self.is_root_node(candidate) && candidate.next_sibling().is_none() {
@@ -318,17 +318,17 @@ impl<'a> PrivateTreeWalkerHelpers for JS
                 } else {
                     candidate.next_sibling()
                 }
             },
             it => it
         }
     }
 
-    // http://dom.spec.whatwg.org/#concept-node-filter
+    // https://dom.spec.whatwg.org/#concept-node-filter
     fn accept_node(self, node: JSRef<Node>) -> Fallible<u16> {
         // "To filter node run these steps:"
         // "1. Let n be node's nodeType attribute value minus 1."
         let n = node.NodeType() - 1;
         // "2. If the nth bit (where 0 is the least significant bit) of whatToShow is not set,
         //     return FILTER_SKIP."
         if (self.what_to_show & (1 << n)) == 0 {
             return Ok(NodeFilterConstants::FILTER_SKIP)
@@ -359,17 +359,17 @@ pub trait TreeWalkerHelpers {
     fn last_child(self) -> Fallible<Option<Temporary<Node>>>;
     fn next_sibling(self) -> Fallible<Option<Temporary<Node>>>;
     fn prev_sibling(self) -> Fallible<Option<Temporary<Node>>>;
     fn next_node(self) -> Fallible<Option<Temporary<Node>>>;
     fn prev_node(self) -> Fallible<Option<Temporary<Node>>>;
 }
 
 impl<'a> TreeWalkerHelpers for JSRef<'a, TreeWalker> {
-    // http://dom.spec.whatwg.org/#dom-treewalker-parentnode
+    // https://dom.spec.whatwg.org/#dom-treewalker-parentnode
     fn parent_node(self) -> Fallible<Option<Temporary<Node>>> {
         // "1. Let node be the value of the currentNode attribute."
         let mut node = self.current_node.get().root().get_unsound_ref_forever();
         // "2. While node is not null and is not root, run these substeps:"
         while !self.is_root_node(node) {
             // "1. Let node be node's parent."
             match node.parent_node() {
                 Some(n) => {
@@ -386,45 +386,45 @@ impl<'a> TreeWalkerHelpers for JSRef<'a,
                 },
                 None => break,
             }
         }
         // "3. Return null."
         Ok(None)
     }
 
-    // http://dom.spec.whatwg.org/#dom-treewalker-firstchild
+    // https://dom.spec.whatwg.org/#dom-treewalker-firstchild
     fn first_child(self) -> Fallible<Option<Temporary<Node>>> {
         // "The firstChild() method must traverse children of type first."
         self.traverse_children(|node| node.first_child(),
                                |node| node.next_sibling())
     }
 
-    // http://dom.spec.whatwg.org/#dom-treewalker-lastchild
+    // https://dom.spec.whatwg.org/#dom-treewalker-lastchild
     fn last_child(self) -> Fallible<Option<Temporary<Node>>> {
         // "The lastChild() method must traverse children of type last."
         self.traverse_children(|node| node.last_child(),
                                |node| node.prev_sibling())
     }
 
-    // http://dom.spec.whatwg.org/#dom-treewalker-nextsibling
+    // https://dom.spec.whatwg.org/#dom-treewalker-nextsibling
     fn next_sibling(self) -> Fallible<Option<Temporary<Node>>> {
         // "The nextSibling() method must traverse siblings of type next."
         self.traverse_siblings(|node| node.first_child(),
                                |node| node.next_sibling())
     }
 
-    // http://dom.spec.whatwg.org/#dom-treewalker-previoussibling
+    // https://dom.spec.whatwg.org/#dom-treewalker-previoussibling
     fn prev_sibling(self) -> Fallible<Option<Temporary<Node>>> {
         // "The previousSibling() method must traverse siblings of type previous."
         self.traverse_siblings(|node| node.last_child(),
                                |node| node.prev_sibling())
     }
 
-    // http://dom.spec.whatwg.org/#dom-treewalker-previousnode
+    // https://dom.spec.whatwg.org/#dom-treewalker-previousnode
     fn prev_node(self) -> Fallible<Option<Temporary<Node>>> {
         // "1. Let node be the value of the currentNode attribute."
         let mut node = self.current_node.get().root().get_unsound_ref_forever();
         // "2. While node is not root, run these substeps:"
         while !self.is_root_node(node) {
             // "1. Let sibling be the previous sibling of node."
             let mut sibling_op = node.prev_sibling();
             // "2. While sibling is not null, run these subsubsteps:"
@@ -474,17 +474,17 @@ impl<'a> TreeWalkerHelpers for JSRef<'a,
                 },
                 _ => {}
             }
         }
         // "6. Return null."
         Ok(None)
     }
 
-    // http://dom.spec.whatwg.org/#dom-treewalker-nextnode
+    // https://dom.spec.whatwg.org/#dom-treewalker-nextnode
     fn next_node(self) -> Fallible<Option<Temporary<Node>>> {
         // "1. Let node be the value of the currentNode attribute."
         let mut node = self.current_node.get().root().get_unsound_ref_forever();
         // "2. Let result be FILTER_ACCEPT."
         let mut result = NodeFilterConstants::FILTER_ACCEPT;
         // "3. Run these substeps:"
         loop {
             // "1. While result is not FILTER_REJECT and node has a child, run these subsubsteps:"
--- a/servo/components/script/dom/urlsearchparams.rs
+++ b/servo/components/script/dom/urlsearchparams.rs
@@ -42,17 +42,17 @@ impl URLSearchParams {
 
     // https://url.spec.whatwg.org/#dom-urlsearchparams-urlsearchparams
     pub fn Constructor(global: GlobalRef, init: Option<StringOrURLSearchParams>) ->
                        Fallible<Temporary<URLSearchParams>> {
         let usp = URLSearchParams::new(global).root();
         match init {
             Some(eString(_s)) => {
                 // XXXManishearth we need to parse the input here
-                // http://url.spec.whatwg.org/#concept-urlencoded-parser
+                // https://url.spec.whatwg.org/#concept-urlencoded-parser
                 // We can use rust-url's implementation here:
                 // https://github.com/SimonSapin/rust-url/blob/master/form_urlencoded.rs#L29
             },
             Some(eURLSearchParams(u)) => {
                 let u = u.root();
                 let usp = usp.r();
                 let mut map = usp.data.borrow_mut();
                 // FIXME(https://github.com/rust-lang/rust/issues/23338)
@@ -110,19 +110,19 @@ impl<'a> URLSearchParamsMethods for JSRe
 
 pub trait URLSearchParamsHelpers {
     fn serialize(&self, encoding: Option<EncodingRef>) -> Vec<u8>;
     fn update_steps(&self);
 }
 
 impl URLSearchParamsHelpers for URLSearchParams {
     fn serialize(&self, encoding: Option<EncodingRef>) -> Vec<u8> {
-        // http://url.spec.whatwg.org/#concept-urlencoded-serializer
+        // https://url.spec.whatwg.org/#concept-urlencoded-serializer
         fn serialize_string(value: &DOMString, encoding: EncodingRef) -> Vec<u8> {
-            // http://url.spec.whatwg.org/#concept-urlencoded-byte-serializer
+            // https://url.spec.whatwg.org/#concept-urlencoded-byte-serializer
 
             let value = value.as_slice();
             // XXXManishearth should this be a strict encoding? Can unwrap()ing the result fail?
             let value = encoding.encode(value, EncoderTrap::Replace).unwrap();
 
             // Step 1.
             let mut buf = vec!();
 
@@ -134,17 +134,17 @@ impl URLSearchParamsHelpers for URLSearc
                     0x20 => vec!(0x2B),
 
                     // Retain the following characters:
                     // '*', '-', '.', '0'...'9', 'A'...'Z', '_', 'a'...'z'
                     0x2A | 0x2D | 0x2E | 0x30...0x39 |
                         0x41...0x5A | 0x5F | 0x61...0x7A => vec!(*i),
 
                     // Encode everything else using 'percented-encoded bytes'
-                    // http://url.spec.whatwg.org/#percent-encode
+                    // https://url.spec.whatwg.org/#percent-encode
                     a => format!("%{:X}", a).into_bytes(),
                 };
                 buf.push_all(&append);
             }
 
             // Step 3.
             buf
         }
@@ -165,11 +165,11 @@ impl URLSearchParamsHelpers for URLSearc
                 buf.push_all(&value)
             }
         }
         buf
     }
 
     fn update_steps(&self) {
         // XXXManishearth Implement this when the URL interface is implemented
-        // http://url.spec.whatwg.org/#concept-uq-update
+        // https://url.spec.whatwg.org/#concept-uq-update
     }
 }
--- a/servo/components/script/dom/webidls/Attr.webidl
+++ b/servo/components/script/dom/webidls/Attr.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#interface-attr
+ * https://dom.spec.whatwg.org/#interface-attr
  *
  */
 
 interface Attr {
   readonly attribute DOMString? namespaceURI;
   readonly attribute DOMString? prefix;
   readonly attribute DOMString localName;
   readonly attribute DOMString name;
--- a/servo/components/script/dom/webidls/CanvasRenderingContext2D.webidl
+++ b/servo/components/script/dom/webidls/CanvasRenderingContext2D.webidl
@@ -1,16 +1,16 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 enum CanvasWindingRule { "nonzero", "evenodd" };
 
-// http://www.whatwg.org/html/#2dcontext
+// https://www.whatwg.org/html/#2dcontext
 typedef (HTMLImageElement or
          /* HTMLVideoElement or */
          HTMLCanvasElement or
          CanvasRenderingContext2D /* or
          ImageBitmap */) CanvasImageSource;
 
 //[Constructor(optional unsigned long width, unsigned long height), Exposed=Window,Worker]
 interface CanvasRenderingContext2D {
--- a/servo/components/script/dom/webidls/CharacterData.webidl
+++ b/servo/components/script/dom/webidls/CharacterData.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#characterdata
+ * https://dom.spec.whatwg.org/#characterdata
  *
  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
  * liability, trademark and document use rules apply.
  */
 
 interface CharacterData : Node {
   [TreatNullAs=EmptyString] attribute DOMString data;
   readonly attribute unsigned long length;
--- a/servo/components/script/dom/webidls/ChildNode.webidl
+++ b/servo/components/script/dom/webidls/ChildNode.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is:
- * http://dom.spec.whatwg.org/#interface-childnode
+ * https://dom.spec.whatwg.org/#interface-childnode
  */
 
 [NoInterfaceObject]
 interface ChildNode {
 // Not implemented yet:
 //  void before((Node or DOMString)... nodes);
 //  void after((Node or DOMString)... nodes);
 //  void replace((Node or DOMString)... nodes);
--- a/servo/components/script/dom/webidls/Comment.webidl
+++ b/servo/components/script/dom/webidls/Comment.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#comment
+ * https://dom.spec.whatwg.org/#comment
  *
  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
  * liability, trademark and document use rules apply.
  */
 
 [Constructor(optional DOMString data = "")]
 interface Comment : CharacterData {
 };
--- a/servo/components/script/dom/webidls/CustomEvent.webidl
+++ b/servo/components/script/dom/webidls/CustomEvent.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * For more information on this interface please see
- * http://dom.spec.whatwg.org/#interface-customevent
+ * https://dom.spec.whatwg.org/#interface-customevent
  *
  * To the extent possible under law, the editors have waived
  * all copyright and related or neighboring rights to this work.
  * In addition, as of 1 May 2014, the editors have made this specification
  * available under the Open Web Foundation Agreement Version 1.0,
  * which is available at
  * http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
  */
--- a/servo/components/script/dom/webidls/DOMException.webidl
+++ b/servo/components/script/dom/webidls/DOMException.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is:
- * http://dom.spec.whatwg.org/#domexception
+ * https://dom.spec.whatwg.org/#domexception
  */
 
 // XXXkhuey this is an 'exception', not an interface, but we don't have any
 // parser or codegen mechanisms for dealing with exceptions.
 interface DOMException {
   const unsigned short INDEX_SIZE_ERR = 1;
   const unsigned short DOMSTRING_SIZE_ERR = 2; // historical
   const unsigned short HIERARCHY_REQUEST_ERR = 3;
--- a/servo/components/script/dom/webidls/DOMImplementation.webidl
+++ b/servo/components/script/dom/webidls/DOMImplementation.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#interface-domimplementation
+ * https://dom.spec.whatwg.org/#interface-domimplementation
  *
  * Copyright:
  * To the extent possible under law, the editors have waived all copyright and
  * related or neighboring rights to this work.
  */
 
 interface DOMImplementation {
   boolean hasFeature(DOMString feature,
--- a/servo/components/script/dom/webidls/DOMParser.webidl
+++ b/servo/components/script/dom/webidls/DOMParser.webidl
@@ -1,14 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://domparsing.spec.whatwg.org/#the-domparser-interface
+ * https://domparsing.spec.whatwg.org/#the-domparser-interface
  */
 
 enum SupportedType {
   "text/html",
   "text/xml"/*,
   "application/xml",
   "application/xhtml+xml",
   "image/svg+xml"*/
--- a/servo/components/script/dom/webidls/DOMTokenList.webidl
+++ b/servo/components/script/dom/webidls/DOMTokenList.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://dom.spec.whatwg.org/#domtokenlist
+// https://dom.spec.whatwg.org/#domtokenlist
 interface DOMTokenList {
   readonly attribute unsigned long length;
   getter DOMString? item(unsigned long index);
 
   [Throws]
   boolean contains(DOMString token);
   [Throws]
   void add(DOMString... tokens);
--- a/servo/components/script/dom/webidls/DedicatedWorkerGlobalScope.webidl
+++ b/servo/components/script/dom/webidls/DedicatedWorkerGlobalScope.webidl
@@ -1,11 +1,11 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#dedicatedworkerglobalscope
+// https://www.whatwg.org/html/#dedicatedworkerglobalscope
 [Global/*=Worker,DedicatedWorker*/]
 /*sealed*/ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
   [Throws]
   void postMessage(any message/*, optional sequence<Transferable> transfer*/);
            attribute EventHandler onmessage;
 };
--- a/servo/components/script/dom/webidls/Document.webidl
+++ b/servo/components/script/dom/webidls/Document.webidl
@@ -1,19 +1,19 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is:
- * http://dom.spec.whatwg.org/#interface-document
- * http://www.whatwg.org/specs/web-apps/current-work/#the-document-object
+ * https://dom.spec.whatwg.org/#interface-document
+ * https://www.whatwg.org/specs/web-apps/current-work/#the-document-object
  */
 
-/* http://dom.spec.whatwg.org/#interface-document */
+/* https://dom.spec.whatwg.org/#interface-document */
 [Constructor]
 interface Document : Node {
   readonly attribute DOMImplementation implementation;
   readonly attribute DOMString URL;
   readonly attribute Element? activeElement;
   readonly attribute DOMString documentURI;
   readonly attribute DOMString compatMode;
   readonly attribute DOMString characterSet;
@@ -61,17 +61,17 @@ interface Document : Node {
   // NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
   [NewObject]
   TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
 };
 Document implements ParentNode;
 
 enum DocumentReadyState { "loading", "interactive", "complete" };
 
-/* http://www.whatwg.org/specs/web-apps/current-work/#the-document-object */
+/* https://www.whatwg.org/specs/web-apps/current-work/#the-document-object */
 partial interface Document {
   // resource metadata management
   readonly attribute DocumentReadyState readyState;
   readonly attribute DOMString lastModified;
   readonly attribute Location location;
   [Throws]
   attribute DOMString cookie;
 
--- a/servo/components/script/dom/webidls/DocumentFragment.webidl
+++ b/servo/components/script/dom/webidls/DocumentFragment.webidl
@@ -1,11 +1,11 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://dom.spec.whatwg.org/#interface-documentfragment
+// https://dom.spec.whatwg.org/#interface-documentfragment
 [Constructor]
 interface DocumentFragment : Node {
 };
 
 DocumentFragment implements ParentNode;
--- a/servo/components/script/dom/webidls/DocumentType.webidl
+++ b/servo/components/script/dom/webidls/DocumentType.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#documenttype
+ * https://dom.spec.whatwg.org/#documenttype
  *
  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
  * liability, trademark and document use rules apply.
  */
 
 interface DocumentType : Node {
   readonly attribute DOMString name;
   readonly attribute DOMString publicId;
--- a/servo/components/script/dom/webidls/Element.webidl
+++ b/servo/components/script/dom/webidls/Element.webidl
@@ -1,16 +1,16 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#element and
- * http://domparsing.spec.whatwg.org/ and
+ * https://dom.spec.whatwg.org/#element and
+ * https://domparsing.spec.whatwg.org/ and
  * http://dev.w3.org/csswg/cssom-view/ and
  * http://www.w3.org/TR/selectors-api/
  *
  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
  * liability, trademark and document use rules apply.
  */
 
 interface Element : Node {
@@ -56,17 +56,17 @@ interface Element : Node {
 };
 
 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
 partial interface Element {
   DOMRectList getClientRects();
   DOMRect getBoundingClientRect();
 };
 
-// http://domparsing.spec.whatwg.org/#extensions-to-the-element-interface
+// https://domparsing.spec.whatwg.org/#extensions-to-the-element-interface
 partial interface Element {
   [Throws,TreatNullAs=EmptyString]
   attribute DOMString innerHTML;
   [Throws,TreatNullAs=EmptyString]
   attribute DOMString outerHTML;
 };
 
 Element implements ChildNode;
--- a/servo/components/script/dom/webidls/EventHandler.webidl
+++ b/servo/components/script/dom/webidls/EventHandler.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://www.whatwg.org/specs/web-apps/current-work/#eventhandler
+ * https://www.whatwg.org/specs/web-apps/current-work/#eventhandler
  *
  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
  * Opera Software ASA. You are granted a license to use, reproduce
  * and create derivative works of this document.
  */
 
 [TreatNonObjectAsNull]
 callback EventHandlerNonNull = any (Event event);
--- a/servo/components/script/dom/webidls/File.webidl
+++ b/servo/components/script/dom/webidls/File.webidl
@@ -7,9 +7,9 @@
 
 // [Constructor(sequence<(Blob or DOMString or ArrayBufferView or ArrayBuffer)> fileBits,
 //              [EnsureUTF16] DOMString fileName, optional FilePropertyBag options)]
 interface File : Blob {
 
   readonly attribute DOMString name;
   // readonly attribute Date lastModifiedDate;
 
-};
\ No newline at end of file
+};
--- a/servo/components/script/dom/webidls/FormData.webidl
+++ b/servo/components/script/dom/webidls/FormData.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://xhr.spec.whatwg.org
+ * https://xhr.spec.whatwg.org
  */
 
 typedef (File or DOMString) FormDataEntryValue;
 
 [Constructor(optional HTMLFormElement form)]
 interface FormData {
   void append(DOMString name, Blob value, optional DOMString filename);
   void append(DOMString name, DOMString value);
--- a/servo/components/script/dom/webidls/Function.webidl
+++ b/servo/components/script/dom/webidls/Function.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://www.whatwg.org/specs/web-apps/current-work/#functiocn
+ * https://www.whatwg.org/specs/web-apps/current-work/#functiocn
  *
  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
  * Opera Software ASA. You are granted a license to use, reproduce
  * and create derivative works of this document.
  */
 
 callback Function = any(any... arguments);
--- a/servo/components/script/dom/webidls/HTMLAnchorElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLAnchorElement.webidl
@@ -1,38 +1,38 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://www.whatwg.org/specs/web-apps/current-work/#the-a-element
- * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+ * https://www.whatwg.org/specs/web-apps/current-work/#the-a-element
+ * https://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
  * Opera Software ASA. You are granted a license to use, reproduce
  * and create derivative works of this document.
  */
 
-// http://www.whatwg.org/html/#htmlanchorelement
+// https://www.whatwg.org/html/#htmlanchorelement
 interface HTMLAnchorElement : HTMLElement {
   //         attribute DOMString target;
   //         attribute DOMString download;
   //[PutForwards=value] attribute DOMSettableTokenList ping;
   //         attribute DOMString rel;
   readonly attribute DOMTokenList relList;
   //         attribute DOMString hreflang;
   //         attribute DOMString type;
 
   [Pure]
            attribute DOMString text;
 
   // also has obsolete members
 };
 //HTMLAnchorElement implements URLUtils;
 
-// http://www.whatwg.org/html/#HTMLAnchorElement-partial
+// https://www.whatwg.org/html/#HTMLAnchorElement-partial
 partial interface HTMLAnchorElement {
   //         attribute DOMString coords;
   //         attribute DOMString charset;
   //         attribute DOMString name;
   //         attribute DOMString rev;
   //         attribute DOMString shape;
 };
--- a/servo/components/script/dom/webidls/HTMLAppletElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLAppletElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlappletelement
+// https://www.whatwg.org/html/#htmlappletelement
 interface HTMLAppletElement : HTMLElement {
   //         attribute DOMString align;
   //         attribute DOMString alt;
   //         attribute DOMString archive;
   //         attribute DOMString code;
   //         attribute DOMString codeBase;
   //         attribute DOMString height;
   //         attribute unsigned long hspace;
--- a/servo/components/script/dom/webidls/HTMLAreaElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLAreaElement.webidl
@@ -1,26 +1,26 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlareaelement
+// https://www.whatwg.org/html/#htmlareaelement
 interface HTMLAreaElement : HTMLElement {
   //         attribute DOMString alt;
   //         attribute DOMString coords;
   //         attribute DOMString shape;
   //         attribute DOMString target;
   //         attribute DOMString download;
   //[PutForwards=value] attribute DOMSettableTokenList ping;
   //         attribute DOMString rel;
   readonly attribute DOMTokenList relList;
   //         attribute DOMString hreflang;
   //         attribute DOMString type;
 
   // also has obsolete members
 };
 //HTMLAreaElement implements URLUtils;
 
-// http://www.whatwg.org/html/#HTMLAreaElement-partial
+// https://www.whatwg.org/html/#HTMLAreaElement-partial
 partial interface HTMLAreaElement {
   //         attribute boolean noHref;
 };
--- a/servo/components/script/dom/webidls/HTMLAudioElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLAudioElement.webidl
@@ -1,8 +1,8 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlaudioelement
+// https://www.whatwg.org/html/#htmlaudioelement
 //[NamedConstructor=Audio(optional DOMString src)]
 interface HTMLAudioElement : HTMLMediaElement {};
--- a/servo/components/script/dom/webidls/HTMLBRElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLBRElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlbrelement
+// https://www.whatwg.org/html/#htmlbrelement
 interface HTMLBRElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLBRElement-partial
+// https://www.whatwg.org/html/#HTMLBRElement-partial
 partial interface HTMLBRElement {
   //         attribute DOMString clear;
 };
--- a/servo/components/script/dom/webidls/HTMLBaseElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLBaseElement.webidl
@@ -1,10 +1,10 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlbaseelement
+// https://www.whatwg.org/html/#htmlbaseelement
 interface HTMLBaseElement : HTMLElement {
   //         attribute DOMString href;
   //         attribute DOMString target;
 };
--- a/servo/components/script/dom/webidls/HTMLBodyElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLBodyElement.webidl
@@ -1,21 +1,21 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlbodyelement
+// https://www.whatwg.org/html/#htmlbodyelement
 interface HTMLBodyElement : HTMLElement {
 
   // also has obsolete members
 };
 HTMLBodyElement implements WindowEventHandlers;
 
-// http://www.whatwg.org/html/#HTMLBodyElement-partial
+// https://www.whatwg.org/html/#HTMLBodyElement-partial
 partial interface HTMLBodyElement {
   //[TreatNullAs=EmptyString] attribute DOMString text;
   //[TreatNullAs=EmptyString] attribute DOMString link;
   //[TreatNullAs=EmptyString] attribute DOMString vLink;
   //[TreatNullAs=EmptyString] attribute DOMString aLink;
   //[TreatNullAs=EmptyString] attribute DOMString bgColor;
   //                          attribute DOMString background;
 };
--- a/servo/components/script/dom/webidls/HTMLButtonElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLButtonElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlbuttonelement
+// https://www.whatwg.org/html/#htmlbuttonelement
 interface HTMLButtonElement : HTMLElement {
   //         attribute boolean autofocus;
            attribute boolean disabled;
   //readonly attribute HTMLFormElement? form;
              attribute DOMString formAction;
              attribute DOMString formEnctype;
              attribute DOMString formMethod;
   //         attribute boolean formNoValidate;
--- a/servo/components/script/dom/webidls/HTMLCanvasElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLCanvasElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlcanvaselement
+// https://www.whatwg.org/html/#htmlcanvaselement
 //typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
 
 interface HTMLCanvasElement : HTMLElement {
   [Pure]
            attribute unsigned long width;
   [Pure]
            attribute unsigned long height;
 
--- a/servo/components/script/dom/webidls/HTMLDListElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLDListElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmldlistelement
+// https://www.whatwg.org/html/#htmldlistelement
 interface HTMLDListElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLDListElement-partial
+// https://www.whatwg.org/html/#HTMLDListElement-partial
 partial interface HTMLDListElement {
   //         attribute boolean compact;
 };
--- a/servo/components/script/dom/webidls/HTMLDataElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLDataElement.webidl
@@ -1,9 +1,9 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmldataelement
+// https://www.whatwg.org/html/#htmldataelement
 interface HTMLDataElement : HTMLElement {
   //         attribute DOMString value;
 };
--- a/servo/components/script/dom/webidls/HTMLDataListElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLDataListElement.webidl
@@ -1,9 +1,9 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmldatalistelement
+// https://www.whatwg.org/html/#htmldatalistelement
 interface HTMLDataListElement : HTMLElement {
   readonly attribute HTMLCollection options;
 };
--- a/servo/components/script/dom/webidls/HTMLDialogElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLDialogElement.webidl
@@ -1,13 +1,13 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmldialogelement
+// https://www.whatwg.org/html/#htmldialogelement
 interface HTMLDialogElement : HTMLElement {
   //attribute boolean open;
   //attribute DOMString returnValue;
   //void show(optional (MouseEvent or Element) anchor);
   //void showModal(optional (MouseEvent or Element) anchor);
   //void close(optional DOMString returnValue);
 };
--- a/servo/components/script/dom/webidls/HTMLDirectoryElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLDirectoryElement.webidl
@@ -1,9 +1,9 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmldirectoryelement
+// https://www.whatwg.org/html/#htmldirectoryelement
 interface HTMLDirectoryElement : HTMLElement {
   //         attribute boolean compact;
 };
--- a/servo/components/script/dom/webidls/HTMLDivElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLDivElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmldivelement
+// https://www.whatwg.org/html/#htmldivelement
 interface HTMLDivElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLDivElement-partial
+// https://www.whatwg.org/html/#HTMLDivElement-partial
 partial interface HTMLDivElement {
   //         attribute DOMString align;
 };
--- a/servo/components/script/dom/webidls/HTMLElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlelement
+// https://www.whatwg.org/html/#htmlelement
 interface HTMLElement : Element {
   // metadata attributes
            attribute DOMString title;
            attribute DOMString lang;
   //         attribute boolean translate;
   //         attribute DOMString dir;
   readonly attribute DOMStringMap dataset;
 
--- a/servo/components/script/dom/webidls/HTMLEmbedElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLEmbedElement.webidl
@@ -1,21 +1,21 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlembedelement
+// https://www.whatwg.org/html/#htmlembedelement
 interface HTMLEmbedElement : HTMLElement {
   //         attribute DOMString src;
   //         attribute DOMString type;
   //         attribute DOMString width;
   //         attribute DOMString height;
   //legacycaller any (any... arguments);
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLEmbedElement-partial
+// https://www.whatwg.org/html/#HTMLEmbedElement-partial
 partial interface HTMLEmbedElement {
   //         attribute DOMString align;
   //         attribute DOMString name;
 };
--- a/servo/components/script/dom/webidls/HTMLFieldSetElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLFieldSetElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlfieldsetelement
+// https://www.whatwg.org/html/#htmlfieldsetelement
 interface HTMLFieldSetElement : HTMLElement {
            attribute boolean disabled;
   //readonly attribute HTMLFormElement? form;
   //         attribute DOMString name;
 
   //readonly attribute DOMString type;
 
   //readonly attribute HTMLFormControlsCollection elements;
--- a/servo/components/script/dom/webidls/HTMLFontElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLFontElement.webidl
@@ -1,11 +1,11 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlfontelement
+// https://www.whatwg.org/html/#htmlfontelement
 interface HTMLFontElement : HTMLElement {
   //[TreatNullAs=EmptyString] attribute DOMString color;
   //                          attribute DOMString face;
   //                          attribute DOMString size;
 };
--- a/servo/components/script/dom/webidls/HTMLFormElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLFormElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlformelement
+// https://www.whatwg.org/html/#htmlformelement
 //[OverrideBuiltins]
 interface HTMLFormElement : HTMLElement {
            attribute DOMString acceptCharset;
            attribute DOMString action;
            attribute DOMString autocomplete;
            attribute DOMString enctype;
            attribute DOMString encoding;
            attribute DOMString method;
--- a/servo/components/script/dom/webidls/HTMLFrameElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLFrameElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlframeelement
+// https://www.whatwg.org/html/#htmlframeelement
 interface HTMLFrameElement : HTMLElement {
   //         attribute DOMString name;
   //         attribute DOMString scrolling;
   //         attribute DOMString src;
   //         attribute DOMString frameBorder;
   //         attribute DOMString longDesc;
   //         attribute boolean noResize;
   //readonly attribute Document? contentDocument;
--- a/servo/components/script/dom/webidls/HTMLFrameSetElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLFrameSetElement.webidl
@@ -1,11 +1,11 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlframesetelement
+// https://www.whatwg.org/html/#htmlframesetelement
 interface HTMLFrameSetElement : HTMLElement {
   //         attribute DOMString cols;
   //         attribute DOMString rows;
 };
 //HTMLFrameSetElement implements WindowEventHandlers;
--- a/servo/components/script/dom/webidls/HTMLHRElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLHRElement.webidl
@@ -1,18 +1,18 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlhrelement
+// https://www.whatwg.org/html/#htmlhrelement
 interface HTMLHRElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLHRElement-partial
+// https://www.whatwg.org/html/#HTMLHRElement-partial
 partial interface HTMLHRElement {
   //         attribute DOMString align;
   //         attribute DOMString color;
   //         attribute boolean noShade;
   //         attribute DOMString size;
   //         attribute DOMString width;
 };
--- a/servo/components/script/dom/webidls/HTMLHeadElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLHeadElement.webidl
@@ -1,7 +1,7 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlheadelement
+// https://www.whatwg.org/html/#htmlheadelement
 interface HTMLHeadElement : HTMLElement {};
--- a/servo/components/script/dom/webidls/HTMLHeadingElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLHeadingElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlheadingelement
+// https://www.whatwg.org/html/#htmlheadingelement
 interface HTMLHeadingElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLHeadingElement-partial
+// https://www.whatwg.org/html/#HTMLHeadingElement-partial
 partial interface HTMLHeadingElement {
   //         attribute DOMString align;
 };
--- a/servo/components/script/dom/webidls/HTMLHtmlElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLHtmlElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlhtmlelement
+// https://www.whatwg.org/html/#htmlhtmlelement
 interface HTMLHtmlElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLHtmlElement-partial
+// https://www.whatwg.org/html/#HTMLHtmlElement-partial
 partial interface HTMLHtmlElement {
   //         attribute DOMString version;
 };
--- a/servo/components/script/dom/webidls/HTMLIFrameElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLIFrameElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmliframeelement
+// https://www.whatwg.org/html/#htmliframeelement
 interface HTMLIFrameElement : HTMLElement {
            attribute DOMString src;
   //         attribute DOMString srcdoc;
   //         attribute DOMString name;
   //[PutForwards=value] readonly attribute DOMSettableTokenList sandbox;
            attribute DOMString sandbox;
   //         attribute boolean seamless;
   //         attribute boolean allowFullscreen;
@@ -16,17 +16,17 @@ interface HTMLIFrameElement : HTMLElemen
   //         attribute DOMString height;
   readonly attribute Document? contentDocument;
   //readonly attribute WindowProxy? contentWindow;
   readonly attribute Window? contentWindow;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLIFrameElement-partial
+// https://www.whatwg.org/html/#HTMLIFrameElement-partial
 partial interface HTMLIFrameElement {
   //         attribute DOMString align;
   //         attribute DOMString scrolling;
   //         attribute DOMString frameBorder;
   //         attribute DOMString longDesc;
 
   //[TreatNullAs=EmptyString] attribute DOMString marginHeight;
   //[TreatNullAs=EmptyString] attribute DOMString marginWidth;
--- a/servo/components/script/dom/webidls/HTMLImageElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLImageElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlimageelement
+// https://www.whatwg.org/html/#htmlimageelement
 //[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
 interface HTMLImageElement : HTMLElement {
            attribute DOMString alt;
            attribute DOMString src;
   //         attribute DOMString srcset;
   //         attribute DOMString crossOrigin;
            attribute DOMString useMap;
            attribute boolean isMap;
@@ -16,17 +16,17 @@ interface HTMLImageElement : HTMLElement
            attribute unsigned long height;
   //readonly attribute unsigned long naturalWidth;
   //readonly attribute unsigned long naturalHeight;
   //readonly attribute boolean complete;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLImageElement-partial
+// https://www.whatwg.org/html/#HTMLImageElement-partial
 partial interface HTMLImageElement {
            attribute DOMString name;
   //         attribute DOMString lowsrc;
            attribute DOMString align;
            attribute unsigned long hspace;
            attribute unsigned long vspace;
            attribute DOMString longDesc;
 
--- a/servo/components/script/dom/webidls/HTMLInputElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLInputElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlinputelement
+// https://www.whatwg.org/html/#htmlinputelement
 interface HTMLInputElement : HTMLElement {
   //         attribute DOMString accept;
   //         attribute DOMString alt;
   //         attribute DOMString autocomplete;
   //         attribute boolean autofocus;
            attribute boolean defaultChecked;
            attribute boolean checked;
   //         attribute DOMString dirName;
@@ -64,13 +64,13 @@ interface HTMLInputElement : HTMLElement
   //         attribute DOMString selectionDirection;
   //void setRangeText(DOMString replacement);
   //void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
   //void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLInputElement-partial
+// https://www.whatwg.org/html/#HTMLInputElement-partial
 partial interface HTMLInputElement {
   //         attribute DOMString align;
   //         attribute DOMString useMap;
 };
--- a/servo/components/script/dom/webidls/HTMLLIElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLLIElement.webidl
@@ -1,16 +1,16 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmllielement
+// https://www.whatwg.org/html/#htmllielement
 interface HTMLLIElement : HTMLElement {
   //         attribute long value;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLLIElement-partial
+// https://www.whatwg.org/html/#HTMLLIElement-partial
 partial interface HTMLLIElement {
   //         attribute DOMString type;
 };
--- a/servo/components/script/dom/webidls/HTMLLabelElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLLabelElement.webidl
@@ -1,11 +1,11 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmllabelelement
+// https://www.whatwg.org/html/#htmllabelelement
 interface HTMLLabelElement : HTMLElement {
   //readonly attribute HTMLFormElement? form;
   //         attribute DOMString htmlFor;
   //readonly attribute HTMLElement? control;
 };
--- a/servo/components/script/dom/webidls/HTMLLegendElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLLegendElement.webidl
@@ -1,16 +1,16 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmllegendelement
+// https://www.whatwg.org/html/#htmllegendelement
 interface HTMLLegendElement : HTMLElement {
   //readonly attribute HTMLFormElement? form;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLLegendElement-partial
+// https://www.whatwg.org/html/#HTMLLegendElement-partial
 partial interface HTMLLegendElement {
   //         attribute DOMString align;
 };
--- a/servo/components/script/dom/webidls/HTMLLinkElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLLinkElement.webidl
@@ -1,26 +1,26 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmllinkelement
+// https://www.whatwg.org/html/#htmllinkelement
 interface HTMLLinkElement : HTMLElement {
            attribute DOMString href;
   //         attribute DOMString crossOrigin;
            attribute DOMString rel;
   readonly attribute DOMTokenList relList;
            attribute DOMString media;
            attribute DOMString hreflang;
            attribute DOMString type;
   //[PutForwards=value] readonly attribute DOMSettableTokenList sizes;
 
   // also has obsolete members
 };
 //HTMLLinkElement implements LinkStyle;
 
-// http://www.whatwg.org/html/#HTMLLinkElement-partial
+// https://www.whatwg.org/html/#HTMLLinkElement-partial
 partial interface HTMLLinkElement {
   //         attribute DOMString charset;
   //         attribute DOMString rev;
   //         attribute DOMString target;
 };
--- a/servo/components/script/dom/webidls/HTMLMapElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLMapElement.webidl
@@ -1,11 +1,11 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlmapelement
+// https://www.whatwg.org/html/#htmlmapelement
 interface HTMLMapElement : HTMLElement {
   //         attribute DOMString name;
   //readonly attribute HTMLCollection areas;
   //readonly attribute HTMLCollection images;
 };
--- a/servo/components/script/dom/webidls/HTMLMediaElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLMediaElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlmediaelement
+// https://www.whatwg.org/html/#htmlmediaelement
 //enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
 interface HTMLMediaElement : HTMLElement {
 
   // error state
   //readonly attribute MediaError? error;
 
   // network state
   //         attribute DOMString src;
--- a/servo/components/script/dom/webidls/HTMLMetaElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLMetaElement.webidl
@@ -1,18 +1,18 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlmetaelement
+// https://www.whatwg.org/html/#htmlmetaelement
 interface HTMLMetaElement : HTMLElement {
   //         attribute DOMString name;
   //         attribute DOMString httpEquiv;
   //         attribute DOMString content;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLMetaElement-partial
+// https://www.whatwg.org/html/#HTMLMetaElement-partial
 partial interface HTMLMetaElement {
   //         attribute DOMString scheme;
 };
--- a/servo/components/script/dom/webidls/HTMLMeterElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLMeterElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlmeterelement
+// https://www.whatwg.org/html/#htmlmeterelement
 interface HTMLMeterElement : HTMLElement {
   //         attribute double value;
   //         attribute double min;
   //         attribute double max;
   //         attribute double low;
   //         attribute double high;
   //         attribute double optimum;
   //readonly attribute NodeList labels;
--- a/servo/components/script/dom/webidls/HTMLModElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLModElement.webidl
@@ -1,10 +1,10 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlmodelement
+// https://www.whatwg.org/html/#htmlmodelement
 interface HTMLModElement : HTMLElement {
   //         attribute DOMString cite;
   //         attribute DOMString dateTime;
 };
--- a/servo/components/script/dom/webidls/HTMLOListElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLOListElement.webidl
@@ -1,18 +1,18 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlolistelement
+// https://www.whatwg.org/html/#htmlolistelement
 interface HTMLOListElement : HTMLElement {
   //         attribute boolean reversed;
   //         attribute long start;
   //         attribute DOMString type;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLOListElement-partial
+// https://www.whatwg.org/html/#HTMLOListElement-partial
 partial interface HTMLOListElement {
   //         attribute boolean compact;
 };
--- a/servo/components/script/dom/webidls/HTMLObjectElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLObjectElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlobjectelement
+// https://www.whatwg.org/html/#htmlobjectelement
 interface HTMLObjectElement : HTMLElement {
   //         attribute DOMString data;
            attribute DOMString type;
   //         attribute boolean typeMustMatch;
   //         attribute DOMString name;
   //         attribute DOMString useMap;
   //readonly attribute HTMLFormElement? form;
   //         attribute DOMString width;
@@ -23,17 +23,17 @@ interface HTMLObjectElement : HTMLElemen
   //boolean reportValidity();
   //void setCustomValidity(DOMString error);
 
   //legacycaller any (any... arguments);
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLObjectElement-partial
+// https://www.whatwg.org/html/#HTMLObjectElement-partial
 partial interface HTMLObjectElement {
   //         attribute DOMString align;
   //         attribute DOMString archive;
   //         attribute DOMString code;
   //         attribute boolean declare;
   //         attribute unsigned long hspace;
   //         attribute DOMString standby;
   //         attribute unsigned long vspace;
--- a/servo/components/script/dom/webidls/HTMLOptGroupElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLOptGroupElement.webidl
@@ -1,10 +1,10 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmloptgroupelement
+// https://www.whatwg.org/html/#htmloptgroupelement
 interface HTMLOptGroupElement : HTMLElement {
            attribute boolean disabled;
   //         attribute DOMString label;
 };
--- a/servo/components/script/dom/webidls/HTMLOptionElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLOptionElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmloptionelement
+// https://www.whatwg.org/html/#htmloptionelement
 //[NamedConstructor=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)]
 interface HTMLOptionElement : HTMLElement {
              attribute boolean disabled;
   //readonly attribute HTMLFormElement? form;
              attribute DOMString label;
   //         attribute boolean defaultSelected;
   //         attribute boolean selected;
              attribute DOMString value;
--- a/servo/components/script/dom/webidls/HTMLOutputElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLOutputElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmloutputelement
+// https://www.whatwg.org/html/#htmloutputelement
 interface HTMLOutputElement : HTMLElement {
   //[PutForwards=value] readonly attribute DOMSettableTokenList htmlFor;
   //readonly attribute HTMLFormElement? form;
   //         attribute DOMString name;
 
   //readonly attribute DOMString type;
   //         attribute DOMString defaultValue;
   //         attribute DOMString value;
--- a/servo/components/script/dom/webidls/HTMLParagraphElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLParagraphElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlparagraphelement
+// https://www.whatwg.org/html/#htmlparagraphelement
 interface HTMLParagraphElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLParagraphElement-partial
+// https://www.whatwg.org/html/#HTMLParagraphElement-partial
 partial interface HTMLParagraphElement {
   //         attribute DOMString align;
 };
--- a/servo/components/script/dom/webidls/HTMLParamElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLParamElement.webidl
@@ -1,18 +1,18 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlparamelement
+// https://www.whatwg.org/html/#htmlparamelement
 interface HTMLParamElement : HTMLElement {
   //         attribute DOMString name;
   //         attribute DOMString value;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLParamElement-partial
+// https://www.whatwg.org/html/#HTMLParamElement-partial
 partial interface HTMLParamElement {
   //         attribute DOMString type;
   //         attribute DOMString valueType;
 };
--- a/servo/components/script/dom/webidls/HTMLPreElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLPreElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlpreelement
+// https://www.whatwg.org/html/#htmlpreelement
 interface HTMLPreElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLPreElement-partial
+// https://www.whatwg.org/html/#HTMLPreElement-partial
 partial interface HTMLPreElement {
   //         attribute long width;
 };
--- a/servo/components/script/dom/webidls/HTMLProgressElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLProgressElement.webidl
@@ -1,12 +1,12 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlprogresselement
+// https://www.whatwg.org/html/#htmlprogresselement
 interface HTMLProgressElement : HTMLElement {
   //         attribute double value;
   //         attribute double max;
   //readonly attribute double position;
   //readonly attribute NodeList labels;
 };
--- a/servo/components/script/dom/webidls/HTMLQuoteElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLQuoteElement.webidl
@@ -1,9 +1,9 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlquoteelement
+// https://www.whatwg.org/html/#htmlquoteelement
 interface HTMLQuoteElement : HTMLElement {
   //         attribute DOMString cite;
 };
--- a/servo/components/script/dom/webidls/HTMLScriptElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLScriptElement.webidl
@@ -1,24 +1,24 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlscriptelement
+// https://www.whatwg.org/html/#htmlscriptelement
 interface HTMLScriptElement : HTMLElement {
            attribute DOMString src;
   //         attribute DOMString type;
   //         attribute DOMString charset;
   //         attribute boolean async;
   //         attribute boolean defer;
   //         attribute DOMString crossOrigin;
   [Pure]
            attribute DOMString text;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLScriptElement-partial
+// https://www.whatwg.org/html/#HTMLScriptElement-partial
 partial interface HTMLScriptElement {
   //         attribute DOMString event;
   //         attribute DOMString htmlFor;
 };
--- a/servo/components/script/dom/webidls/HTMLSelectElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLSelectElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlselectelement
+// https://www.whatwg.org/html/#htmlselectelement
 interface HTMLSelectElement : HTMLElement {
   //         attribute boolean autofocus;
            attribute boolean disabled;
   //readonly attribute HTMLFormElement? form;
   //         attribute boolean multiple;
   //         attribute DOMString name;
   //         attribute boolean required;
   //         attribute unsigned long size;
--- a/servo/components/script/dom/webidls/HTMLSourceElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLSourceElement.webidl
@@ -1,10 +1,10 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlsourceelement
+// https://www.whatwg.org/html/#htmlsourceelement
 interface HTMLSourceElement : HTMLElement {
   //         attribute DOMString src;
   //         attribute DOMString type;
 };
--- a/servo/components/script/dom/webidls/HTMLSpanElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLSpanElement.webidl
@@ -1,7 +1,7 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlspanelement
+// https://www.whatwg.org/html/#htmlspanelement
 interface HTMLSpanElement : HTMLElement {};
--- a/servo/components/script/dom/webidls/HTMLStyleElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLStyleElement.webidl
@@ -1,12 +1,12 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlstyleelement
+// https://www.whatwg.org/html/#htmlstyleelement
 interface HTMLStyleElement : HTMLElement {
   //         attribute DOMString media;
   //         attribute DOMString type;
   //         attribute boolean scoped;
 };
 //HTMLStyleElement implements LinkStyle;
--- a/servo/components/script/dom/webidls/HTMLTableCaptionElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTableCaptionElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltablecaptionelement
+// https://www.whatwg.org/html/#htmltablecaptionelement
 interface HTMLTableCaptionElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLTableCaptionElement-partial
+// https://www.whatwg.org/html/#HTMLTableCaptionElement-partial
 partial interface HTMLTableCaptionElement {
   //         attribute DOMString align;
 };
--- a/servo/components/script/dom/webidls/HTMLTableCellElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTableCellElement.webidl
@@ -1,24 +1,24 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltablecellelement
+// https://www.whatwg.org/html/#htmltablecellelement
 interface HTMLTableCellElement : HTMLElement {
   //         attribute unsigned long colSpan;
   //         attribute unsigned long rowSpan;
   //[PutForwards=value] readonly attribute DOMSettableTokenList headers;
   //readonly attribute long cellIndex;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLTableCellElement-partial
+// https://www.whatwg.org/html/#HTMLTableCellElement-partial
 partial interface HTMLTableCellElement {
   //         attribute DOMString align;
   //         attribute DOMString axis;
   //         attribute DOMString height;
   //         attribute DOMString width;
 
   //         attribute DOMString ch;
   //         attribute DOMString chOff;
--- a/servo/components/script/dom/webidls/HTMLTableColElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTableColElement.webidl
@@ -1,20 +1,20 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltablecolelement
+// https://www.whatwg.org/html/#htmltablecolelement
 interface HTMLTableColElement : HTMLElement {
   //         attribute unsigned long span;
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLTableColElement-partial
+// https://www.whatwg.org/html/#HTMLTableColElement-partial
 partial interface HTMLTableColElement {
   //         attribute DOMString align;
   //         attribute DOMString ch;
   //         attribute DOMString chOff;
   //         attribute DOMString vAlign;
   //         attribute DOMString width;
 };
--- a/servo/components/script/dom/webidls/HTMLTableDataCellElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTableDataCellElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltabledatacellelement
+// https://www.whatwg.org/html/#htmltabledatacellelement
 interface HTMLTableDataCellElement : HTMLTableCellElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLTableDataCellElement-partial
+// https://www.whatwg.org/html/#HTMLTableDataCellElement-partial
 partial interface HTMLTableDataCellElement {
   //         attribute DOMString abbr;
 };
--- a/servo/components/script/dom/webidls/HTMLTableElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTableElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltableelement
+// https://www.whatwg.org/html/#htmltableelement
 interface HTMLTableElement : HTMLElement {
            attribute HTMLTableCaptionElement? caption;
   //HTMLElement createCaption();
   //void deleteCaption();
   //         attribute HTMLTableSectionElement? tHead;
   //HTMLElement createTHead();
   //void deleteTHead();
   //         attribute HTMLTableSectionElement? tFoot;
@@ -20,17 +20,17 @@ interface HTMLTableElement : HTMLElement
   //HTMLElement insertRow(optional long index = -1);
   //void deleteRow(long index);
   //         attribute boolean sortable;
   //void stopSorting();
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLTableElement-partial
+// https://www.whatwg.org/html/#HTMLTableElement-partial
 partial interface HTMLTableElement {
   //         attribute DOMString align;
   //         attribute DOMString border;
   //         attribute DOMString frame;
   //         attribute DOMString rules;
   //         attribute DOMString summary;
   //         attribute DOMString width;
 
--- a/servo/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl
@@ -1,12 +1,12 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltableheadercellelement
+// https://www.whatwg.org/html/#htmltableheadercellelement
 interface HTMLTableHeaderCellElement : HTMLTableCellElement {
   //         attribute DOMString scope;
   //         attribute DOMString abbr;
   //         attribute DOMString sorted;
   //void sort();
 };
--- a/servo/components/script/dom/webidls/HTMLTableRowElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTableRowElement.webidl
@@ -1,25 +1,25 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltablerowelement
+// https://www.whatwg.org/html/#htmltablerowelement
 interface HTMLTableRowElement : HTMLElement {
   //readonly attribute long rowIndex;
   //readonly attribute long sectionRowIndex;
   //readonly attribute HTMLCollection cells;
   //HTMLElement insertCell(optional long index = -1);
   //void deleteCell(long index);
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLTableRowElement-partial
+// https://www.whatwg.org/html/#HTMLTableRowElement-partial
 partial interface HTMLTableRowElement {
   //         attribute DOMString align;
   //         attribute DOMString ch;
   //         attribute DOMString chOff;
   //         attribute DOMString vAlign;
 
   //[TreatNullAs=EmptyString] attribute DOMString bgColor;
 };
--- a/servo/components/script/dom/webidls/HTMLTableSectionElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTableSectionElement.webidl
@@ -1,21 +1,21 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltablesectionelement
+// https://www.whatwg.org/html/#htmltablesectionelement
 interface HTMLTableSectionElement : HTMLElement {
   //readonly attribute HTMLCollection rows;
   //HTMLElement insertRow(optional long index = -1);
   //void deleteRow(long index);
 
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLTableSectionElement-partial
+// https://www.whatwg.org/html/#HTMLTableSectionElement-partial
 partial interface HTMLTableSectionElement {
   //         attribute DOMString align;
   //         attribute DOMString ch;
   //         attribute DOMString chOff;
   //         attribute DOMString vAlign;
 };
--- a/servo/components/script/dom/webidls/HTMLTemplateElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTemplateElement.webidl
@@ -1,9 +1,9 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltemplateelement
+// https://www.whatwg.org/html/#htmltemplateelement
 interface HTMLTemplateElement : HTMLElement {
   //readonly attribute DocumentFragment content;
 };
--- a/servo/components/script/dom/webidls/HTMLTextAreaElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTextAreaElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltextareaelement
+// https://www.whatwg.org/html/#htmltextareaelement
 interface HTMLTextAreaElement : HTMLElement {
   //         attribute DOMString autocomplete;
   //         attribute boolean autofocus;
            attribute unsigned long cols;
   //         attribute DOMString dirName;
            attribute boolean disabled;
   //readonly attribute HTMLFormElement? form;
   //         attribute DOMString inputMode;
--- a/servo/components/script/dom/webidls/HTMLTimeElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTimeElement.webidl
@@ -1,9 +1,9 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltimeelement
+// https://www.whatwg.org/html/#htmltimeelement
 interface HTMLTimeElement : HTMLElement {
   //         attribute DOMString dateTime;
 };
--- a/servo/components/script/dom/webidls/HTMLTitleElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTitleElement.webidl
@@ -1,10 +1,10 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltitleelement
+// https://www.whatwg.org/html/#htmltitleelement
 interface HTMLTitleElement : HTMLElement {
     [Pure]
            attribute DOMString text;
 };
--- a/servo/components/script/dom/webidls/HTMLTrackElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLTrackElement.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmltrackelement
+// https://www.whatwg.org/html/#htmltrackelement
 interface HTMLTrackElement : HTMLElement {
   //         attribute DOMString kind;
   //         attribute DOMString src;
   //         attribute DOMString srclang;
   //         attribute DOMString label;
   //         attribute boolean default;
 
   //const unsigned short NONE = 0;
--- a/servo/components/script/dom/webidls/HTMLUListElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLUListElement.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlulistelement
+// https://www.whatwg.org/html/#htmlulistelement
 interface HTMLUListElement : HTMLElement {
   // also has obsolete members
 };
 
-// http://www.whatwg.org/html/#HTMLUListElement-partial
+// https://www.whatwg.org/html/#HTMLUListElement-partial
 partial interface HTMLUListElement {
   //         attribute boolean compact;
   //         attribute DOMString type;
 };
--- a/servo/components/script/dom/webidls/HTMLUnknownElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLUnknownElement.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://www.whatwg.org/specs/web-apps/current-work/ and
+ * https://www.whatwg.org/specs/web-apps/current-work/ and
  * http://dev.w3.org/csswg/cssom-view/
  *
  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
  * Opera Software ASA. You are granted a license to use, reproduce
  * and create derivative works of this document.
  */
 
 interface HTMLUnknownElement : HTMLElement {
--- a/servo/components/script/dom/webidls/HTMLVideoElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLVideoElement.webidl
@@ -1,13 +1,13 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#htmlvideoelement
+// https://www.whatwg.org/html/#htmlvideoelement
 interface HTMLVideoElement : HTMLMediaElement {
   //         attribute unsigned long width;
   //         attribute unsigned long height;
   //readonly attribute unsigned long videoWidth;
   //readonly attribute unsigned long videoHeight;
   //         attribute DOMString poster;
 };
--- a/servo/components/script/dom/webidls/ImageData.webidl
+++ b/servo/components/script/dom/webidls/ImageData.webidl
@@ -1,23 +1,23 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#imagedata
+ * https://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#imagedata
  *
  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and Opera Software ASA.
  * You are granted a license to use, reproduce and create derivative works of this document.
  */
 
 //[Constructor(unsigned long sw, unsigned long sh),
 //Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh),
 //Exposed=(Window,Worker)]
 interface ImageData {
 	//[Constant]
 	readonly attribute unsigned long width;
 	//[Constant]
 	readonly attribute unsigned long height;
 	//[Constant, StoreInSlot]
 	readonly attribute Uint8ClampedArray data;
-};
\ No newline at end of file
+};
--- a/servo/components/script/dom/webidls/Location.webidl
+++ b/servo/components/script/dom/webidls/Location.webidl
@@ -1,12 +1,12 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#location
+// https://www.whatwg.org/html/#location
 /*[Unforgeable]*/ interface Location {
   void assign(DOMString url);
   //void replace(DOMString url);
   //void reload();
 };
 Location implements URLUtils;
--- a/servo/components/script/dom/webidls/MessageEvent.webidl
+++ b/servo/components/script/dom/webidls/MessageEvent.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#messageevent
+// https://www.whatwg.org/html/#messageevent
 [Constructor(DOMString type, optional MessageEventInit eventInitDict)/*, Exposed=Window,Worker*/]
 interface MessageEvent : Event {
   readonly attribute any data;
   readonly attribute DOMString origin;
   readonly attribute DOMString lastEventId;
   //readonly attribute (WindowProxy or MessagePort)? source;
   //readonly attribute MessagePort[]? ports;
 };
--- a/servo/components/script/dom/webidls/Navigator.webidl
+++ b/servo/components/script/dom/webidls/Navigator.webidl
@@ -1,25 +1,25 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#navigator
+// https://www.whatwg.org/html/#navigator
 interface Navigator {
   // objects implementing this interface also implement the interfaces given below
 };
 Navigator implements NavigatorID;
 //Navigator implements NavigatorLanguage;
 //Navigator implements NavigatorOnLine;
 //Navigator implements NavigatorContentUtils;
 //Navigator implements NavigatorStorageUtils;
 //Navigator implements NavigatorPlugins;
 
-// http://www.whatwg.org/html/#navigatorid
+// https://www.whatwg.org/html/#navigatorid
 [NoInterfaceObject/*, Exposed=Window,Worker*/]
 interface NavigatorID {
   readonly attribute DOMString appCodeName; // constant "Mozilla"
   readonly attribute DOMString appName;
   readonly attribute DOMString appVersion;
   readonly attribute DOMString platform;
   readonly attribute DOMString product; // constant "Gecko"
   boolean taintEnabled(); // constant false
--- a/servo/components/script/dom/webidls/Node.webidl
+++ b/servo/components/script/dom/webidls/Node.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is:
- * http://dom.spec.whatwg.org/#interface-node
+ * https://dom.spec.whatwg.org/#interface-node
  */
 
 interface Node : EventTarget {
   const unsigned short ELEMENT_NODE = 1;
   const unsigned short ATTRIBUTE_NODE = 2; // historical
   const unsigned short TEXT_NODE = 3;
   const unsigned short CDATA_SECTION_NODE = 4; // historical
   const unsigned short ENTITY_REFERENCE_NODE = 5; // historical
--- a/servo/components/script/dom/webidls/NodeFilter.webidl
+++ b/servo/components/script/dom/webidls/NodeFilter.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#interface-nodefilter
+ * https://dom.spec.whatwg.org/#interface-nodefilter
  */
 // Import from http://hg.mozilla.org/mozilla-central/file/a5a720259d79/dom/webidl/NodeFilter.webidl
 
 callback interface NodeFilter {
   // Constants for acceptNode()
   const unsigned short FILTER_ACCEPT = 1;
   const unsigned short FILTER_REJECT = 2;
   const unsigned short FILTER_SKIP = 3;
--- a/servo/components/script/dom/webidls/NodeList.webidl
+++ b/servo/components/script/dom/webidls/NodeList.webidl
@@ -1,13 +1,13 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is:
- * http://dom.spec.whatwg.org/#interface-nodelist
+ * https://dom.spec.whatwg.org/#interface-nodelist
  */
 
 interface NodeList {
   readonly attribute unsigned long length;
   getter Node? item(unsigned long index);
 };
--- a/servo/components/script/dom/webidls/ParentNode.webidl
+++ b/servo/components/script/dom/webidls/ParentNode.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#interface-parentnode
+ * https://dom.spec.whatwg.org/#interface-parentnode
  */
 
 [NoInterfaceObject]
 interface ParentNode {
   [Constant]
   readonly attribute HTMLCollection children;
   [Pure]
   readonly attribute Element? firstElementChild;
--- a/servo/components/script/dom/webidls/ProcessingInstruction.webidl
+++ b/servo/components/script/dom/webidls/ProcessingInstruction.webidl
@@ -1,12 +1,12 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#interface-processinginstruction
+ * https://dom.spec.whatwg.org/#interface-processinginstruction
  */
 
 interface ProcessingInstruction : CharacterData {
   readonly attribute DOMString target;
 };
--- a/servo/components/script/dom/webidls/ProgressEvent.webidl
+++ b/servo/components/script/dom/webidls/ProgressEvent.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://xhr.spec.whatwg.org/#interface-progressevent
+ * https://xhr.spec.whatwg.org/#interface-progressevent
  *
  * To the extent possible under law, the editor has waived all copyright
  * and related or neighboring rights to this work. In addition, as of 1 May 2014,
  * the editor has made this specification available under the Open Web Foundation
  * Agreement Version 1.0, which is available at
  * http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
  */
 
--- a/servo/components/script/dom/webidls/Range.webidl
+++ b/servo/components/script/dom/webidls/Range.webidl
@@ -1,16 +1,16 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#range
- * http://domparsing.spec.whatwg.org/#dom-range-createcontextualfragment
+ * https://dom.spec.whatwg.org/#range
+ * https://domparsing.spec.whatwg.org/#dom-range-createcontextualfragment
  * http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Overview.html#extensions-to-the-range-interface
  */
 
 [Constructor]
 interface Range {
   // [Throws]
   // readonly attribute Node startContainer;
   // [Throws]
@@ -67,17 +67,17 @@ interface Range {
   // short comparePoint(Node node, unsigned long offset);
 
   // [Throws]
   // boolean intersectsNode(Node node);
 
   // stringifier;
 };
 
-// http://domparsing.spec.whatwg.org/#dom-range-createcontextualfragment
+// https://domparsing.spec.whatwg.org/#dom-range-createcontextualfragment
 partial interface Range {
   // [Throws]
   // DocumentFragment createContextualFragment(DOMString fragment);
 };// 
 
 ////  http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Overview.html#extensions-to-the-range-interface
 partial interface Range {
   // DOMRectList? getClientRects();
--- a/servo/components/script/dom/webidls/Text.webidl
+++ b/servo/components/script/dom/webidls/Text.webidl
@@ -1,18 +1,18 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/
+ * https://dom.spec.whatwg.org/
  *
  * To the extent possible under law, the editors have waived all copyright
  * and related or neighboring rights to this work.
  */
 
-// http://dom.spec.whatwg.org/#text
+// https://dom.spec.whatwg.org/#text
 [Constructor(optional DOMString data = "")]
 interface Text : CharacterData {
   //[NewObject] Text splitText(unsigned long offset);
   readonly attribute DOMString wholeText;
 };
--- a/servo/components/script/dom/webidls/TreeWalker.webidl
+++ b/servo/components/script/dom/webidls/TreeWalker.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://dom.spec.whatwg.org/#interface-treewalker
+ * https://dom.spec.whatwg.org/#interface-treewalker
  */
 
 interface TreeWalker {
   [SameObject]
   readonly attribute Node root;
   [Constant]
   readonly attribute unsigned long whatToShow;
   [Constant]
--- a/servo/components/script/dom/webidls/URLSearchParams.webidl
+++ b/servo/components/script/dom/webidls/URLSearchParams.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://url.spec.whatwg.org/#interface-urlsearchparams
+ * https://url.spec.whatwg.org/#interface-urlsearchparams
  */
 
 [Constructor(optional (DOMString or URLSearchParams) init)]
 interface URLSearchParams {
   void append(DOMString name, DOMString value);
   void delete(DOMString name);
   DOMString? get(DOMString name);
   // sequence<DOMString> getAll(DOMString name);
--- a/servo/components/script/dom/webidls/URLUtils.webidl
+++ b/servo/components/script/dom/webidls/URLUtils.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://url.spec.whatwg.org/#urlutils
+// https://url.spec.whatwg.org/#urlutils
 [NoInterfaceObject]
 interface URLUtils {
   //stringifier attribute USVString href;
   readonly attribute USVString href;
   //readonly attribute USVString origin;
   //         attribute USVString protocol;
   //         attribute USVString username;
   //         attribute USVString password;
--- a/servo/components/script/dom/webidls/URLUtilsReadOnly.webidl
+++ b/servo/components/script/dom/webidls/URLUtilsReadOnly.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://url.spec.whatwg.org/#urlutilsreadonly
+// https://url.spec.whatwg.org/#urlutilsreadonly
 [NoInterfaceObject/*,
  Exposed=(Window,Worker)*/]
 interface URLUtilsReadOnly {
   //stringifier readonly attribute USVString href;
   readonly attribute USVString href;
   //readonly attribute USVString origin;
 
   //readonly attribute USVString protocol;
--- a/servo/components/script/dom/webidls/ValidityState.webidl
+++ b/servo/components/script/dom/webidls/ValidityState.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#validitystate
+// https://www.whatwg.org/html/#validitystate
 interface ValidityState {
   //readonly attribute boolean valueMissing;
   //readonly attribute boolean typeMismatch;
   //readonly attribute boolean patternMismatch;
   //readonly attribute boolean tooLong;
   //readonly attribute boolean tooShort;
   //readonly attribute boolean rangeUnderflow;
   //readonly attribute boolean rangeOverflow;
--- a/servo/components/script/dom/webidls/Window.webidl
+++ b/servo/components/script/dom/webidls/Window.webidl
@@ -1,14 +1,14 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#window
+// https://www.whatwg.org/html/#window
 [PrimaryGlobal]
 /*sealed*/ interface Window : EventTarget {
   // the current browsing context
   //[Unforgeable] readonly attribute WindowProxy window;
   //[Replaceable] readonly attribute WindowProxy self;
   readonly attribute Window window;
   [BinaryName="Self_"] readonly attribute Window self;
   /*[Unforgeable]*/ readonly attribute Document document;
@@ -56,29 +56,29 @@
 
   //void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer);
 
   // also has obsolete members
 };
 Window implements GlobalEventHandlers;
 Window implements WindowEventHandlers;
 
-// http://www.whatwg.org/html/#windowtimers
+// https://www.whatwg.org/html/#windowtimers
 [NoInterfaceObject/*, Exposed=Window,Worker*/]
 interface WindowTimers {
   long setTimeout(Function handler, optional long timeout = 0, any... arguments);
   long setTimeout(DOMString handler, optional long timeout = 0, any... arguments);
   void clearTimeout(optional long handle = 0);
   long setInterval(Function handler, optional long timeout = 0, any... arguments);
   long setInterval(DOMString handler, optional long timeout = 0, any... arguments);
   void clearInterval(optional long handle = 0);
 };
 Window implements WindowTimers;
 
-// http://www.whatwg.org/html/#atob
+// https://www.whatwg.org/html/#atob
 [NoInterfaceObject/*, Exposed=Window,Worker*/]
 interface WindowBase64 {
   [Throws]
   DOMString btoa(DOMString btoa);
   [Throws]
   DOMString atob(DOMString atob);
 };
 Window implements WindowBase64;
--- a/servo/components/script/dom/webidls/Worker.webidl
+++ b/servo/components/script/dom/webidls/Worker.webidl
@@ -1,20 +1,20 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#abstractworker
+// https://www.whatwg.org/html/#abstractworker
 [NoInterfaceObject/*, Exposed=Window,Worker*/]
 interface AbstractWorker {
   //         attribute EventHandler onerror;
 };
 
-// http://www.whatwg.org/html/#worker
+// https://www.whatwg.org/html/#worker
 [Constructor(DOMString scriptURL)/*, Exposed=Window,Worker*/]
 interface Worker : EventTarget {
   //void terminate();
 
   [Throws]
   void postMessage(any message/*, optional sequence<Transferable> transfer*/);
            attribute EventHandler onmessage;
 };
--- a/servo/components/script/dom/webidls/WorkerGlobalScope.webidl
+++ b/servo/components/script/dom/webidls/WorkerGlobalScope.webidl
@@ -1,26 +1,26 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#workerglobalscope
+// https://www.whatwg.org/html/#workerglobalscope
 //[Exposed=Worker]
 interface WorkerGlobalScope : EventTarget {
   [BinaryName="Self_"] readonly attribute WorkerGlobalScope self;
   readonly attribute WorkerLocation location;
 
   //void close();
   //         attribute OnErrorEventHandler onerror;
   //         attribute EventHandler onlanguagechange;
   //         attribute EventHandler onoffline;
   //         attribute EventHandler ononline;
 };
 
-// http://www.whatwg.org/html/#WorkerGlobalScope-partial
+// https://www.whatwg.org/html/#WorkerGlobalScope-partial
 //[Exposed=Worker]
 partial interface WorkerGlobalScope { // not obsolete
   [Throws]
   void importScripts(DOMString... urls);
   readonly attribute WorkerNavigator navigator;
 };
 WorkerGlobalScope implements WindowTimers;
 WorkerGlobalScope implements WindowBase64;
--- a/servo/components/script/dom/webidls/WorkerLocation.webidl
+++ b/servo/components/script/dom/webidls/WorkerLocation.webidl
@@ -1,9 +1,9 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#worker-locations
+// https://www.whatwg.org/html/#worker-locations
 //[Exposed=Worker]
 interface WorkerLocation { };
 WorkerLocation implements URLUtilsReadOnly;
--- a/servo/components/script/dom/webidls/WorkerNavigator.webidl
+++ b/servo/components/script/dom/webidls/WorkerNavigator.webidl
@@ -1,11 +1,11 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-// http://www.whatwg.org/html/#workernavigator
+// https://www.whatwg.org/html/#workernavigator
 //[Exposed=Worker]
 interface WorkerNavigator {};
 WorkerNavigator implements NavigatorID;
 //WorkerNavigator implements NavigatorLanguage;
 //WorkerNavigator implements NavigatorOnLine;
--- a/servo/components/script/dom/webidls/XMLHttpRequest.webidl
+++ b/servo/components/script/dom/webidls/XMLHttpRequest.webidl
@@ -1,24 +1,24 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://xhr.spec.whatwg.org/#interface-xmlhttprequest
+ * https://xhr.spec.whatwg.org/#interface-xmlhttprequest
  *
  * To the extent possible under law, the editor has waived all copyright
  * and related or neighboring rights to this work. In addition, as of 1 May 2014,
  * the editor has made this specification available under the Open Web Foundation
  * Agreement Version 1.0, which is available at
  * http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
  */
 
-// http://fetch.spec.whatwg.org/#fetchbodyinit
+// https://fetch.spec.whatwg.org/#fetchbodyinit
 typedef (/*ArrayBuffer or ArrayBufferView or Blob or FormData or */DOMString or URLSearchParams) FetchBodyInit;
 
 enum XMLHttpRequestResponseType {
   "",
   "arraybuffer",
   "blob",
   "document",
   "json",
--- a/servo/components/script/dom/webidls/XMLHttpRequestEventTarget.webidl
+++ b/servo/components/script/dom/webidls/XMLHttpRequestEventTarget.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://xhr.spec.whatwg.org/#interface-xmlhttprequest
+ * https://xhr.spec.whatwg.org/#interface-xmlhttprequest
  *
  * To the extent possible under law, the editor has waived all copyright
  * and related or neighboring rights to this work. In addition, as of 1 May 2014,
  * the editor has made this specification available under the Open Web Foundation
  * Agreement Version 1.0, which is available at
  * http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
  */
 
--- a/servo/components/script/dom/webidls/XMLHttpRequestUpload.webidl
+++ b/servo/components/script/dom/webidls/XMLHttpRequestUpload.webidl
@@ -1,15 +1,15 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
- * http://xhr.spec.whatwg.org/#interface-xmlhttprequest
+ * https://xhr.spec.whatwg.org/#interface-xmlhttprequest
  *
  * To the extent possible under law, the editor has waived all copyright
  * and related or neighboring rights to this work. In addition, as of 1 May 2014,
  * the editor has made this specification available under the Open Web Foundation
  * Agreement Version 1.0, which is available at
  * http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
  */
 
--- a/servo/components/script/dom/window.rs
+++ b/servo/components/script/dom/window.rs
@@ -218,17 +218,17 @@ impl Window {
         &*self.page
     }
 
     pub fn storage_task(&self) -> StorageTask {
         self.storage_task.clone()
     }
 }
 
-// http://www.whatwg.org/html/#atob
+// https://www.whatwg.org/html/#atob
 pub fn base64_btoa(input: DOMString) -> Fallible<DOMString> {
     // "The btoa() method must throw an InvalidCharacterError exception if
     //  the method's first argument contains any character whose code point
     //  is greater than U+00FF."
     if input.chars().any(|c: char| c > '\u{FF}') {
         Err(InvalidCharacter)
     } else {
         // "Otherwise, the user agent must convert that argument to a
@@ -238,17 +238,17 @@ pub fn base64_btoa(input: DOMString) -> 
         let octets = input.chars().map(|c: char| c as u8).collect::<Vec<u8>>();
 
         // "and then must apply the base64 algorithm to that sequence of
         //  octets, and return the result. [RFC4648]"
         Ok(octets.as_slice().to_base64(STANDARD))
     }
 }
 
-// http://www.whatwg.org/html/#atob
+// https://www.whatwg.org/html/#atob
 pub fn base64_atob(input: DOMString) -> Fallible<DOMString> {
     // "Remove all space characters from input."
     // serialize::base64::from_base64 ignores \r and \n,
     // but it treats the other space characters as
     // invalid input.
     fn is_html_space(c: char) -> bool {
         HTML_SPACE_CHARACTERS.iter().any(|&m| m == c)
     }
@@ -392,17 +392,17 @@ impl<'a> WindowMethods for JSRef<'a, Win
     fn Window(self) -> Temporary<Window> {
         Temporary::from_rooted(self)
     }
 
     fn Self_(self) -> Temporary<Window> {
         self.Window()
     }
 
-    // http://www.whatwg.org/html/#dom-frames
+    // https://www.whatwg.org/html/#dom-frames
     fn Frames(self) -> Temporary<Window> {
         self.Window()
     }
 
     // https://html.spec.whatwg.org/multipage/browsers.html#dom-parent
     fn Parent(self) -> Temporary<Window> {
         let browser_context = self.browser_context();
         let browser_context = browser_context.as_ref().unwrap();
--- a/servo/components/script/dom/worker.rs
+++ b/servo/components/script/dom/worker.rs
@@ -55,17 +55,17 @@ impl Worker {
     }
 
     pub fn new(global: GlobalRef, sender: Sender<(TrustedWorkerAddress, ScriptMsg)>) -> Temporary<Worker> {
         reflect_dom_object(box Worker::new_inherited(global, sender),
                            global,
                            WorkerBinding::Wrap)
     }
 
-    // http://www.whatwg.org/html/#dom-worker
+    // https://www.whatwg.org/html/#dom-worker
     pub fn Constructor(global: GlobalRef, script_url: DOMString) -> Fallible<Temporary<Worker>> {
         // Step 2-4.
         let worker_url = match UrlParser::new().base_url(&global.get_url())
                 .parse(script_url.as_slice()) {
             Ok(url) => url,
             Err(_) => return Err(Syntax),
         };
 
--- a/servo/components/script/dom/xmlhttprequest.rs
+++ b/servo/components/script/dom/xmlhttprequest.rs
@@ -1031,17 +1031,17 @@ impl<'a> PrivateXMLHttpRequestHelpers fo
 
         // FIXME(https://github.com/rust-lang/rust/issues/23338)
         let response = self.response.borrow();
         // According to Simon, decode() should never return an error, so unwrap()ing
         // the result should be fine. XXXManishearth have a closer look at this later
         encoding.decode(response.as_slice(), DecoderTrap::Replace).unwrap().to_owned()
     }
     fn filter_response_headers(self) -> Headers {
-        // http://fetch.spec.whatwg.org/#concept-response-header-list
+        // https://fetch.spec.whatwg.org/#concept-response-header-list
         use std::fmt;
         use hyper::header::{Header, HeaderFormat};
         use hyper::header::SetCookie;
 
         // a dummy header so we can use headers.remove::<SetCookie2>()
         #[derive(Clone, Debug)]
         struct SetCookie2;
         impl Header for SetCookie2 {
@@ -1067,16 +1067,16 @@ impl<'a> PrivateXMLHttpRequestHelpers fo
     }
 }
 
 trait Extractable {
     fn extract(&self) -> Vec<u8>;
 }
 impl Extractable for SendParam {
     fn extract(&self) -> Vec<u8> {
-        // http://fetch.spec.whatwg.org/#concept-fetchbodyinit-extract
+        // https://fetch.spec.whatwg.org/#concept-fetchbodyinit-extract
         let encoding = UTF_8 as EncodingRef;
         match *self {
             eString(ref s) => encoding.encode(s.as_slice(), EncoderTrap::Replace).unwrap(),
             eURLSearchParams(ref usp) => usp.root().r().serialize(None) // Default encoding is UTF8
         }
     }
 }
--- a/servo/components/util/str.rs
+++ b/servo/components/util/str.rs
@@ -44,34 +44,34 @@ pub fn is_whitespace(s: &str) -> bool {
 
 #[inline]
 pub fn char_is_whitespace(c: char) -> bool {
     WHITESPACE.contains(&c)
 }
 
 /// A "space character" according to:
 ///
-/// http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character
+/// https://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character
 pub static HTML_SPACE_CHARACTERS: StaticCharVec = &[
     '\u{0020}',
     '\u{0009}',
     '\u{000a}',
     '\u{000c}',
     '\u{000d}',
 ];
 
 pub fn split_html_space_chars<'a>(s: &'a str) ->
                                   Filter<Split<'a, StaticCharVec>, fn(&&str) -> bool> {
     fn not_empty(&split: &&str) -> bool { !split.is_empty() }
     s.split(HTML_SPACE_CHARACTERS).filter(not_empty as fn(&&str) -> bool)
 }
 
 /// Shared implementation to parse an integer according to
-/// <http://www.whatwg.org/html/#rules-for-parsing-integers> or
-/// <http://www.whatwg.org/html/#rules-for-parsing-non-negative-integers>.
+/// <https://www.whatwg.org/html/#rules-for-parsing-integers> or
+/// <https://www.whatwg.org/html/#rules-for-parsing-non-negative-integers>.
 fn do_parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i64> {
     fn is_ascii_digit(c: &char) -> bool {
         match *c {
             '0'...'9' => true,
             _ => false,
         }
     }
 
@@ -106,25 +106,25 @@ fn do_parse_integer<T: Iterator<Item=cha
             accumulator.checked_add(d)
         })
     });
 
     return value.and_then(|value| value.checked_mul(sign));
 }
 
 /// Parse an integer according to
-/// <http://www.whatwg.org/html/#rules-for-parsing-integers>.
+/// <https://www.whatwg.org/html/#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()
     })
 }
 
 /// Parse an integer according to
-/// <http://www.whatwg.org/html/#rules-for-parsing-non-negative-integers>.
+/// <https://www.whatwg.org/html/#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()
     })
 }
 
 #[derive(Copy)]
 pub enum LengthOrPercentageOrAuto {