Add spec links

This commit is contained in:
Bogdan Cuza 2015-07-21 18:53:01 +03:00 committed by Bogdan
parent f039827dcd
commit 233a769c67
61 changed files with 284 additions and 87 deletions

View file

@ -90,14 +90,17 @@ impl MessageEvent {
}
impl<'a> MessageEventMethods for &'a MessageEvent {
// https://html.spec.whatwg.org/multipage/#dom-messageevent-data
fn Data(self, _cx: *mut JSContext) -> JSVal {
self.data.get()
}
// https://html.spec.whatwg.org/multipage/#dom-messageevent-origin
fn Origin(self) -> DOMString {
self.origin.clone()
}
// https://html.spec.whatwg.org/multipage/#dom-messageevent-lasteventid
fn LastEventId(self) -> DOMString {
self.lastEventId.clone()
}