mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add/update comments with links to spec
Extracted out of #5649 * add more hyperlinks to associated specification for structs/methods * follow redirects and update links * replace broken links * removal of WHATWG multipage page name since the page name is not guaranteed to be stable
This commit is contained in:
parent
7f422e2076
commit
cc4a64e1fe
19 changed files with 112 additions and 35 deletions
|
@ -15,6 +15,7 @@ use js::jsapi::JSContext;
|
|||
use js::jsval::{JSVal, NullValue};
|
||||
use util::str::DOMString;
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-customevent
|
||||
#[dom_struct]
|
||||
pub struct CustomEvent {
|
||||
event: Event,
|
||||
|
@ -53,10 +54,12 @@ impl CustomEvent {
|
|||
}
|
||||
|
||||
impl<'a> CustomEventMethods for JSRef<'a, CustomEvent> {
|
||||
// https://dom.spec.whatwg.org/#dom-customevent-detail
|
||||
fn Detail(self, _cx: *mut JSContext) -> JSVal {
|
||||
self.detail.get()
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-customevent-initcustomevent
|
||||
fn InitCustomEvent(self,
|
||||
_cx: *mut JSContext,
|
||||
type_: DOMString,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue