mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add spec links
This commit is contained in:
parent
f039827dcd
commit
233a769c67
61 changed files with 284 additions and 87 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue