summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-25 09:34:59 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-25 09:34:59 +0000
commit179f61771cb083a3f7b7116d2562ba9fc9103083 (patch)
tree6f06b16d9a9c3445335797c82db59b60b0097fab /src
parentfc4f4aff6c4c7d99314dc2a1ef57fe3176d974fb (diff)
downloadlibdom-179f61771cb083a3f7b7116d2562ba9fc9103083.tar.gz
libdom-179f61771cb083a3f7b7116d2562ba9fc9103083.tar.bz2
Spell Referrer properly, rather than HTTPish.
svn path=/trunk/libdom/; revision=13659
Diffstat (limited to 'src')
-rw-r--r--src/html/html_document.c10
-rw-r--r--src/html/html_document.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 2ae6488..c342864 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -69,7 +69,7 @@ dom_exception _dom_html_document_initialise(dom_html_document *doc,
return error;
doc->title = NULL;
- doc->referer = NULL;
+ doc->referrer = NULL;
doc->domain = NULL;
doc->url = NULL;
doc->cookie = NULL;
@@ -83,7 +83,7 @@ void _dom_html_document_finalise(dom_html_document *doc)
dom_string_unref(doc->cookie);
dom_string_unref(doc->url);
dom_string_unref(doc->domain);
- dom_string_unref(doc->referer);
+ dom_string_unref(doc->referrer);
dom_string_unref(doc->title);
_dom_document_finalise(&doc->base);
@@ -241,10 +241,10 @@ dom_exception _dom_html_document_set_title(dom_html_document *doc,
return DOM_NO_ERR;
}
-dom_exception _dom_html_document_get_referer(dom_html_document *doc,
- dom_string **referer)
+dom_exception _dom_html_document_get_referrer(dom_html_document *doc,
+ dom_string **referrer)
{
- *referer = dom_string_ref(doc->referer);
+ *referrer = dom_string_ref(doc->referrer);
return DOM_NO_ERR;
}
diff --git a/src/html/html_document.h b/src/html/html_document.h
index 3b7ed58..a77a683 100644
--- a/src/html/html_document.h
+++ b/src/html/html_document.h
@@ -19,7 +19,7 @@ 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 *referrer; /**< HTML document referrer */
dom_string *domain; /**< HTML document domain */
dom_string *url; /**< HTML document URL */
dom_string *cookie; /**< HTML document cookie */
@@ -47,8 +47,8 @@ dom_exception _dom_html_document_get_title(dom_html_document *doc,
dom_string **title);
dom_exception _dom_html_document_set_title(dom_html_document *doc,
dom_string *title);
-dom_exception _dom_html_document_get_referer(dom_html_document *doc,
- dom_string **referer);
+dom_exception _dom_html_document_get_referrer(dom_html_document *doc,
+ dom_string **referrer);
dom_exception _dom_html_document_get_domain(dom_html_document *doc,
dom_string **domain);
dom_exception _dom_html_document_get_url(dom_html_document *doc,
@@ -85,7 +85,7 @@ dom_exception _dom_html_document_get_elements_by_name(dom_html_document *doc,
#define DOM_HTML_DOCUMENT_VTABLE \
_dom_html_document_get_title, \
_dom_html_document_set_title, \
- _dom_html_document_get_referer, \
+ _dom_html_document_get_referrer, \
_dom_html_document_get_domain, \
_dom_html_document_get_url, \
_dom_html_document_get_body, \