summaryrefslogtreecommitdiff
path: root/src/html/html_input_element.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-09-08 15:57:36 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-09-08 15:57:36 +0100
commitc733e0fbd053ffa80b83839c4114a2a28b3ed2ec (patch)
tree39c684f6d317e32713311581f94ea12dfff3a851 /src/html/html_input_element.c
parente9f991799dd6ee22dcb8af367c72f58ac31e66ca (diff)
downloadlibdom-c733e0fbd053ffa80b83839c4114a2a28b3ed2ec.tar.gz
libdom-c733e0fbd053ffa80b83839c4114a2a28b3ed2ec.tar.bz2
Return value of -1 when asked to get value of long property that doesn't exist on the html element.
Diffstat (limited to 'src/html/html_input_element.c')
-rw-r--r--src/html/html_input_element.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/html_input_element.c b/src/html/html_input_element.c
index aa3e05f..694eb22 100644
--- a/src/html/html_input_element.c
+++ b/src/html/html_input_element.c
@@ -356,7 +356,7 @@ SIMPLE_GET_SET(use_map);
SIMPLE_GET_SET(value);
dom_exception dom_html_input_element_get_tab_index(
- dom_html_input_element *input, unsigned long *tab_index)
+ dom_html_input_element *input, long *tab_index)
{
return dom_html_element_get_long_property(&input->base, "tabindex",
SLEN("tabindex"), tab_index);
@@ -370,7 +370,7 @@ dom_exception dom_html_input_element_set_tab_index(
}
dom_exception dom_html_input_element_get_max_length(
- dom_html_input_element *input, unsigned long *max_length)
+ dom_html_input_element *input, long *max_length)
{
return dom_html_element_get_long_property(&input->base, "maxlength",
SLEN("maxlength"), max_length);