From 68f359d1ec2212939f19a25dfb182d08cfa37afd Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 28 Nov 2012 18:07:36 +0000 Subject: initial event fireing implementation --- render/html.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'render/html.c') diff --git a/render/html.c b/render/html.c index 548295c64..fc6084332 100644 --- a/render/html.c +++ b/render/html.c @@ -331,6 +331,12 @@ void html_finish_conversion(html_content *c) } } + /* fire a simple event named load at the Document's Window + * object, but with its target set to the Document object (and + * the currentTarget set to the Window object) + */ + js_fire_event(c->jscontext, "load", NULL); + /* convert dom tree to box tree */ LOG(("DOM to box (%p)", c)); content_set_status(&c->base, messages_get("Processing")); -- cgit v1.2.3