summaryrefslogtreecommitdiff
path: root/src/core/document.c
diff options
context:
space:
mode:
authorBo Yang <struggleyb.nku@gmail.com>2009-03-23 03:16:17 +0000
committerBo Yang <struggleyb.nku@gmail.com>2009-03-23 03:16:17 +0000
commit80fefa4a957812b4357b2e65fa0776ee8c93b4ae (patch)
tree358be35a12bf12ab079e21a4a39af9e255084c24 /src/core/document.c
parent322bd58c4e0d68abe817cc4036e3ff7acb51e152 (diff)
downloadlibdom-80fefa4a957812b4357b2e65fa0776ee8c93b4ae.tar.gz
libdom-80fefa4a957812b4357b2e65fa0776ee8c93b4ae.tar.bz2
Modify NamedNodeMap, note that there is no vtable for this type because it is not in the DOM inherit hierarchy. And the internal API used between different DOM parts should use struct dom_node_internal instead of struct dom_node.
svn path=/trunk/dom/; revision=6821
Diffstat (limited to 'src/core/document.c')
-rw-r--r--src/core/document.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/document.c b/src/core/document.c
index 8cfcfd0..355d7f8 100644
--- a/src/core/document.c
+++ b/src/core/document.c
@@ -510,7 +510,7 @@ dom_exception _dom_document_create_entity_reference(struct dom_document *doc,
dom_exception _dom_document_get_elements_by_tag_name(struct dom_document *doc,
struct dom_string *tagname, struct dom_nodelist **result)
{
- return dom_document_get_nodelist(doc, (struct dom_node *) doc,
+ return dom_document_get_nodelist(doc, (struct dom_node_internal *) doc,
tagname, NULL, NULL, result);
}
@@ -679,7 +679,7 @@ dom_exception _dom_document_get_elements_by_tag_name_ns(
struct dom_document *doc, struct dom_string *namespace,
struct dom_string *localname, struct dom_nodelist **result)
{
- return dom_document_get_nodelist(doc, (struct dom_node *) doc,
+ return dom_document_get_nodelist(doc, (struct dom_node_internal *) doc,
NULL, namespace, localname, result);
}
@@ -1049,7 +1049,7 @@ void *dom_document_alloc(struct dom_document *doc, void *ptr, size_t size)
* finished with it.
*/
dom_exception dom_document_get_nodelist(struct dom_document *doc,
- struct dom_node *root, struct dom_string *tagname,
+ struct dom_node_internal *root, struct dom_string *tagname,
struct dom_string *namespace, struct dom_string *localname,
struct dom_nodelist **list)
{
@@ -1148,7 +1148,7 @@ void dom_document_remove_nodelist(struct dom_document *doc,
* finished with it.
*/
dom_exception dom_document_get_namednodemap(struct dom_document *doc,
- struct dom_node *head, dom_node_type type,
+ struct dom_node_internal *head, dom_node_type type,
struct dom_namednodemap **map)
{
struct dom_doc_nnm *m;