diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-24 19:55:01 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-24 19:55:01 +0000 |
commit | 82101457c8eb128a0514d38e950bdd1ca32e3d9a (patch) | |
tree | 21619653850f62878ed944930c4f6679fc0ff466 /src/html/html_document.c | |
parent | fafa9fa2feb3f7043b86ba7c806a49047d12f484 (diff) | |
download | libdom-82101457c8eb128a0514d38e950bdd1ca32e3d9a.tar.gz libdom-82101457c8eb128a0514d38e950bdd1ca32e3d9a.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.c | 17 |
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; +} |