/* * This file is part of libdom. * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 Bo Yang */ #ifndef dom_internal_html_document_h_ #define dom_internal_html_document_h_ #include #include "core/document.h" /** * The dom_html_document class */ struct dom_html_document { struct dom_document base; /**< The base class */ dom_string *title; /**< HTML document title */ dom_string *referer; /**< HTML document referer */ dom_string *domain; /**< HTML document domain */ dom_string *url; /**< HTML document URL */ dom_string *cookie; /**< HTML document cookie */ }; /* Create a HTMLDocument */ dom_exception _dom_html_document_create( dom_events_default_action_fetcher daf, dom_html_document **doc); /* Initialise a HTMLDocument */ dom_exception _dom_html_document_initialise(dom_html_document *doc, dom_events_default_action_fetcher daf); /* Finalise a HTMLDocument */ void _dom_html_document_finalise(dom_html_document *doc); void _dom_html_document_destroy(dom_node_internal *node); dom_exception _dom_html_document_copy(dom_node_internal *old, dom_node_internal **copy); #define DOM_HTML_DOCUMENT_PROTECT_VTABLE \ _dom_html_document_destroy, \ _dom_html_document_copy #endif