Implement document.open and document.close (fixes #14591)

This commit is contained in:
Anthony Ramine 2017-01-26 12:42:38 +01:00
parent 8c3abd6c79
commit ac254046e4
52 changed files with 351 additions and 296 deletions

View file

@ -306,6 +306,10 @@ impl EventTarget {
event.dispatch(self, None)
}
pub fn remove_all_listeners(&self) {
*self.handlers.borrow_mut() = Default::default();
}
/// https://html.spec.whatwg.org/multipage/#event-handler-attributes:event-handlers-11
fn set_inline_event_listener(&self,
ty: Atom,