diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-06 23:38:53 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-06 23:38:53 +0000 |
commit | 69f0aa360cb2b603ce1f7434312c62a24b7693f9 (patch) | |
tree | b75a2f2c4609ccbc0fd4193dab4e861a44e3cd61 /bindings | |
parent | 75d7ce5895a98026a3e4b0e03fafc0b3761a07f1 (diff) | |
download | libdom-69f0aa360cb2b603ce1f7434312c62a24b7693f9.tar.gz libdom-69f0aa360cb2b603ce1f7434312c62a24b7693f9.tar.bz2 |
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
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/hubbub/parser.c | 3 | ||||
-rw-r--r-- | bindings/xml/xmlparser.c | 1 |
2 files changed, 3 insertions, 1 deletions
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); diff --git a/bindings/xml/xmlparser.c b/bindings/xml/xmlparser.c index ff1f9d6..7f15b83 100644 --- a/bindings/xml/xmlparser.c +++ b/bindings/xml/xmlparser.c @@ -315,6 +315,7 @@ void xml_parser_start_document(void *ctx) * we should pass the real function when we integrate libDOM with * Netsurf */ err = dom_implementation_create_document( + DOM_IMPLEMENTATION_XML, /* namespace */ NULL, /* qname */ NULL, /* doctype */ NULL, |