summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-24 19:55:01 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-24 19:55:01 +0000
commite8949416b4a1f7102cd4d8bf3e6003e946b97c43 (patch)
tree21619653850f62878ed944930c4f6679fc0ff466 /src/html/html_document.c
parent7e5fc5d1da1e38fb7bc47781b76ca10b84ab110c (diff)
downloadlibdom-e8949416b4a1f7102cd4d8bf3e6003e946b97c43.tar.gz
libdom-e8949416b4a1f7102cd4d8bf3e6003e946b97c43.tar.bz2
Rudimentary API for dom_html_document_{get,set}_quirks_mode -- Replete with exception API for orthogonality if not happiness
svn path=/trunk/libdom/; revision=13614
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 52e0b9c..8909743 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -73,6 +73,7 @@ dom_exception _dom_html_document_initialise(dom_html_document *doc,
doc->domain = NULL;
doc->url = NULL;
doc->cookie = NULL;
+ doc->quirks = false;
return DOM_NO_ERR;
}
@@ -347,3 +348,19 @@ dom_exception _dom_html_document_get_elements_by_name(dom_html_document *doc,
return DOM_NOT_SUPPORTED_ERR;
}
+/*-----------------------------------------------------------------------*/
+/* Semi-internal API extensions for NetSurf */
+
+dom_exception _dom_html_document_get_quirks_mode(dom_html_document *doc,
+ bool *result)
+{
+ *result = doc->quirks;
+ return DOM_NO_ERR;
+}
+
+dom_exception _dom_html_document_set_quirks_mode(dom_html_document *doc,
+ bool quirks)
+{
+ doc->quirks = quirks;
+ return DOM_NO_ERR;
+}