mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement 'do nothing' methods on Window and Document
This commit is contained in:
parent
1384ff5e9f
commit
bf50145fbd
6 changed files with 35 additions and 39 deletions
|
@ -1911,12 +1911,27 @@ impl<'a> DocumentMethods for &'a Document {
|
|||
collection.r().reflector().get_jsobject().get()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/#document
|
||||
// https://html.spec.whatwg.org/multipage/#document
|
||||
fn SupportedPropertyNames(self) -> Vec<DOMString> {
|
||||
// FIXME: unimplemented (https://github.com/servo/servo/issues/7273)
|
||||
vec![]
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-document-clear
|
||||
fn Clear(self) {
|
||||
// This method intentionally does nothing
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-document-captureevents
|
||||
fn CaptureEvents(self) {
|
||||
// This method intentionally does nothing
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/#dom-document-releaseevents
|
||||
fn ReleaseEvents(self) {
|
||||
// This method intentionally does nothing
|
||||
}
|
||||
|
||||
global_event_handlers!();
|
||||
event_handler!(readystatechange, GetOnreadystatechange, SetOnreadystatechange);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue