summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2012-02-05 21:01:43 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2012-02-05 21:01:43 +0000
commit1ab1ed7301d3885a00b3081b3bf7ccdeabd0466a (patch)
tree4179a08dad87ae02ef86d2bac69bba16901f7116 /src/core
parent7b193ec6c254488870c0360a2a5bf004d1d848b4 (diff)
downloadlibdom-1ab1ed7301d3885a00b3081b3bf7ccdeabd0466a.tar.gz
libdom-1ab1ed7301d3885a00b3081b3bf7ccdeabd0466a.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')
-rw-r--r--src/core/implementation.c14
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);
}