summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dom/html/html_document.h14
-rw-r--r--src/html/html_document.c10
-rw-r--r--src/html/html_document.h8
3 files changed, 16 insertions, 16 deletions
diff --git a/include/dom/html/html_document.h b/include/dom/html/html_document.h
index 6270f47..ca9727a 100644
--- a/include/dom/html/html_document.h
+++ b/include/dom/html/html_document.h
@@ -27,8 +27,8 @@ typedef struct dom_html_document_vtable {
dom_string **title);
dom_exception (*set_title)(dom_html_document *doc,
dom_string *title);
- dom_exception (*get_referer)(dom_html_document *doc,
- dom_string **referer);
+ dom_exception (*get_referrer)(dom_html_document *doc,
+ dom_string **referrer);
dom_exception (*get_domain)(dom_html_document *doc,
dom_string **domain);
dom_exception (*get_url)(dom_html_document *doc,
@@ -82,14 +82,14 @@ static inline dom_exception dom_html_document_set_title(dom_html_document *doc,
dom_html_document_set_title((dom_html_document *) (d), \
(dom_string **) (t))
-static inline dom_exception dom_html_document_get_referer(dom_html_document *doc,
- dom_string **referer)
+static inline dom_exception dom_html_document_get_referrer(dom_html_document *doc,
+ dom_string **referrer)
{
return ((dom_html_document_vtable *) ((dom_node *) doc)->vtable)->
- get_referer(doc, referer);
+ get_referrer(doc, referrer);
}
-#define dom_html_document_get_referer(d, r) \
- dom_html_document_get_referer((dom_html_document *) (d), \
+#define dom_html_document_get_referrer(d, r) \
+ dom_html_document_get_referrer((dom_html_document *) (d), \
(dom_string **) (r))
static inline dom_exception dom_html_document_get_domain(dom_html_document *doc,
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, \