summaryrefslogtreecommitdiff
path: root/src/core/document.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-09-27 23:03:13 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-09-27 23:03:13 +0000
commita1fb942408ba786278da758dad42d44a7342f3b3 (patch)
treee8740ad003d8f601a8f9d665e587233ec58c12e9 /src/core/document.c
parentfc417db20e0b85584124db6c15ef2b9d115d7d4e (diff)
downloadlibdom-a1fb942408ba786278da758dad42d44a7342f3b3.tar.gz
libdom-a1fb942408ba786278da758dad42d44a7342f3b3.tar.bz2
Modify dom_node_initialise() API to permit specification of namespace URI and prefix.
Fix up everything else to cope. svn path=/trunk/dom/; revision=3599
Diffstat (limited to 'src/core/document.c')
-rw-r--r--src/core/document.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/document.c b/src/core/document.c
index aedf96c..e1fc32b 100644
--- a/src/core/document.c
+++ b/src/core/document.c
@@ -142,7 +142,7 @@ dom_exception dom_document_create(struct dom_implementation *impl,
* rest of the code, as it doesn't need to special case Documents)
*/
err = dom_node_initialise(&d->base, d, DOM_DOCUMENT_NODE,
- NULL, NULL);
+ NULL, NULL, NULL, NULL);
if (err != DOM_NO_ERR) {
/* Clean up interned strings */
for (int i = 0; i <= DOM_NODE_TYPE_COUNT; i++) {
@@ -330,7 +330,7 @@ dom_exception dom_document_get_document_element(struct dom_document *doc,
dom_exception dom_document_create_element(struct dom_document *doc,
struct dom_string *tag_name, struct dom_element **result)
{
- return dom_element_create(doc, tag_name, result);
+ return dom_element_create(doc, tag_name, NULL, NULL, result);
}
/**
@@ -450,7 +450,7 @@ dom_exception dom_document_create_processing_instruction(
dom_exception dom_document_create_attribute(struct dom_document *doc,
struct dom_string *name, struct dom_attr **result)
{
- return dom_attr_create(doc, name, result);
+ return dom_attr_create(doc, name, NULL, NULL, result);
}
/**