Add links to spec for script::dom structs/methods

This commit is contained in:
Corey Farwell 2015-03-28 20:04:30 -04:00
parent e70beca74b
commit 46f14449d0
10 changed files with 36 additions and 0 deletions

View file

@ -11,6 +11,7 @@ use dom::bindings::utils::reflect_dom_object;
use dom::eventtarget::{EventTarget, EventTargetTypeId};
use util::str::DOMString;
// https://html.spec.whatwg.org/#the-websocket-interface
#[dom_struct]
pub struct WebSocket {
eventtarget: EventTarget,
@ -37,6 +38,7 @@ impl WebSocket {
}
impl<'a> WebSocketMethods for JSRef<'a, WebSocket> {
// https://html.spec.whatwg.org/#dom-websocket-url
fn Url(self) -> DOMString {
self.url.clone()
}