libdom
|
#include <string.h>
#include <dom/core/implementation.h>
#include "core/document.h"
#include "core/document_type.h"
#include "html/html_document.h"
#include "utils/namespace.h"
#include "utils/utils.h"
#include "utils/validate.h"
Functions | |
dom_exception | dom_implementation_has_feature (const char *feature, const char *version, bool *result) |
dom_exception | dom_implementation_create_document_type (const char *qname, const char *public_id, const char *system_id, struct dom_document_type **doctype) |
dom_exception | dom_implementation_create_document (uint32_t impl_type, const char *namespace, const char *qname, struct dom_document_type *doctype, dom_events_default_action_fetcher daf, void *daf_ctx, struct dom_document **doc) |
dom_exception | dom_implementation_get_feature (const char *feature, const char *version, void **object) |
dom_exception dom_implementation_create_document | ( | uint32_t | impl_type, |
const char * | namespace, | ||
const char * | qname, | ||
struct dom_document_type * | doctype, | ||
dom_events_default_action_fetcher | daf, | ||
void * | daf_ctx, | ||
struct dom_document ** | doc ) |
Create a document node
impl_type | The type of document object to create |
namespace | The namespace URI of the document element |
qname | The qualified name of the document element |
doctype | The type of document to create |
doc | Pointer to location to receive result |
The document will be referenced, so the client need not do this explicitly. The client must unref the document once it has finished with it.
dom_exception dom_implementation_create_document_type | ( | const char * | qname, |
const char * | public_id, | ||
const char * | system_id, | ||
struct dom_document_type ** | doctype ) |
Create a document type node
qname | The qualified name of the document type |
public_id | The external subset public identifier |
system_id | The external subset system identifier |
doctype | Pointer to location to receive result |
The doctype will be referenced, so the client need not do this explicitly. The client must unref the doctype once it has finished with it.
dom_exception dom_implementation_get_feature | ( | const char * | feature, |
const char * | version, | ||
void ** | object ) |
Retrieve a specialized object which implements the specified feature and version
feature | The requested feature |
version | The version number of the feature |
object | Pointer to location to receive object |
Any memory allocated by this call should be allocated using the provided memory (de)allocation function.
dom_exception dom_implementation_has_feature | ( | const char * | feature, |
const char * | version, | ||
bool * | result ) |
Test whether a DOM implementation implements a specific feature and version
feature | The feature to test for |
version | The version number of the feature to test for |
result | Pointer to location to receive result |