From b79bcc3fef8a90c96b3db8dcb34ceea0f778e876 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 6 Dec 2010 23:38:53 +0000 Subject: Provide mechanism for binding/client to define the features a document object should support. Utilise this to decide whether to create a raw Document or an HTMLDocument instance. Disable the above decision, as the HTMLDocument implementation is garbage svn path=/trunk/libdom/; revision=11025 --- bindings/hubbub/parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bindings/hubbub') diff --git a/bindings/hubbub/parser.c b/bindings/hubbub/parser.c index 97d3e24..350d7ac 100644 --- a/bindings/hubbub/parser.c +++ b/bindings/hubbub/parser.c @@ -145,7 +145,8 @@ dom_hubbub_parser *dom_hubbub_parser_create( /* TODO: Just pass the dom_events_default_action_fetcher a NULL, * we should pass the real function when we integrate libDOM with * Netsurf */ - err = dom_implementation_create_document(NULL, NULL, NULL, + err = dom_implementation_create_document(DOM_IMPLEMENTATION_HTML, + NULL, NULL, NULL, alloc, pw, NULL, &parser->doc); if (err != DOM_NO_ERR) { hubbub_parser_destroy(parser->parser); -- cgit v1.2.3