mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add spec links
This commit is contained in:
parent
f039827dcd
commit
233a769c67
61 changed files with 284 additions and 87 deletions
|
@ -114,22 +114,27 @@ impl ErrorEvent {
|
|||
}
|
||||
|
||||
impl<'a> ErrorEventMethods for &'a ErrorEvent {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-errorevent-lineno
|
||||
fn Lineno(self) -> u32 {
|
||||
self.lineno.get()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-errorevent-colno
|
||||
fn Colno(self) -> u32 {
|
||||
self.colno.get()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-errorevent-message
|
||||
fn Message(self) -> DOMString {
|
||||
self.message.borrow().clone()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-errorevent-filename
|
||||
fn Filename(self) -> DOMString {
|
||||
self.filename.borrow().clone()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-errorevent-error
|
||||
fn Error(self, _cx: *mut JSContext) -> JSVal {
|
||||
self.error.get()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue