mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add links to spec for script::dom structs/methods
This commit is contained in:
parent
e70beca74b
commit
46f14449d0
10 changed files with 36 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue