diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2012-02-05 21:01:43 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2012-02-05 21:01:43 +0000 |
commit | 967540245c4e577e8a26959a88ae7703f760cc61 (patch) | |
tree | 4179a08dad87ae02ef86d2bac69bba16901f7116 /src/core/implementation.c | |
parent | ca2566cbd69530e91f80b763beef011481d6cf94 (diff) | |
download | libdom-967540245c4e577e8a26959a88ae7703f760cc61.tar.gz libdom-967540245c4e577e8a26959a88ae7703f760cc61.tar.bz2 |
Make HTMLDocument use dynamic dispatch like everything else.
Fix variable misuse in HTMLDocument constructor.
Overload Document.createElement and Document.createElementNS for HTMLDocuments
Re-enable decision to create HTMLDocument instead of Document in DOMImplementation.createDocument
svn path=/trunk/libdom/; revision=13425
Diffstat (limited to 'src/core/implementation.c')
-rw-r--r-- | src/core/implementation.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/core/implementation.c b/src/core/implementation.c index ab87e6d..08ce996 100644 --- a/src/core/implementation.c +++ b/src/core/implementation.c @@ -209,23 +209,13 @@ dom_exception dom_implementation_create_document( } /* Create document object that reflects the required APIs */ - /** \todo Why do these have different APIs? - * Why is the html document constructor public? */ - /** \todo Of course, none of the HTML stuff actually works, - * so enabling it results in total breakage of the testsuite */ -#ifdef WITH_NON_BROKEN_HTML_IMPLEMENTATION if (impl_type == DOM_IMPLEMENTATION_HTML) { dom_html_document *html_doc; - err = dom_html_document_create(NULL, NULL, - daf, NULL, DOM_HTML_PARSER, &html_doc); + err = _dom_html_document_create(daf, &html_doc); d = (dom_document *) html_doc; - } else -#else - UNUSED(impl_type); -#endif - { + } else { err = _dom_document_create(daf, &d); } |