summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-10-25 18:54:22 +0000
committerVincent Sanders <vince@kyllikki.org>2015-10-25 18:54:22 +0000
commitdf9016f830a109f70fb1a418ae189c0a3e607cca (patch)
treeaf6e2cb16c8f25b846a7a73f0b7ae5077bd811c3
parent3963f406d9139eec74f537378c46ca04dfaf4e59 (diff)
downloadlibdom-df9016f830a109f70fb1a418ae189c0a3e607cca.tar.gz
libdom-df9016f830a109f70fb1a418ae189c0a3e607cca.tar.bz2
Update the input element API to use dom_ulong where apropriate
-rw-r--r--include/dom/html/html_input_element.h6
-rw-r--r--src/html/html_input_element.c8
-rw-r--r--test/testcases/tests/level2/html/HTMLInputElement13.xml2
3 files changed, 9 insertions, 7 deletions
diff --git a/include/dom/html/html_input_element.h b/include/dom/html/html_input_element.h
index 086e1cb..c73dca3 100644
--- a/include/dom/html/html_input_element.h
+++ b/include/dom/html/html_input_element.h
@@ -9,6 +9,8 @@
#define dom_html_input_element_h_
#include <stdbool.h>
+
+#include <dom/inttypes.h>
#include <dom/core/exceptions.h>
#include <dom/core/string.h>
#include <dom/html/html_form_element.h>
@@ -85,10 +87,10 @@ dom_exception dom_html_input_element_set_read_only(
dom_html_input_element *input, bool read_only);
dom_exception dom_html_input_element_get_size(
- dom_html_input_element *input, int32_t *size);
+ dom_html_input_element *input, dom_ulong *size);
dom_exception dom_html_input_element_set_size(
- dom_html_input_element *input, uint32_t size);
+ dom_html_input_element *input, dom_ulong size);
dom_exception dom_html_input_element_get_src(
dom_html_input_element *input, dom_string **src);
diff --git a/src/html/html_input_element.c b/src/html/html_input_element.c
index 84079f7..bbea087 100644
--- a/src/html/html_input_element.c
+++ b/src/html/html_input_element.c
@@ -362,16 +362,16 @@ SIMPLE_GET_SET(use_map);
SIMPLE_GET_SET(value);
dom_exception dom_html_input_element_get_size(
- dom_html_input_element *input, int32_t *size)
+ dom_html_input_element *input, dom_ulong *size)
{
- return dom_html_element_get_int32_t_property(&input->base, "size",
+ return dom_html_element_get_dom_ulong_property(&input->base, "size",
SLEN("size"), size);
}
dom_exception dom_html_input_element_set_size(
- dom_html_input_element *input, uint32_t size)
+ dom_html_input_element *input, dom_ulong size)
{
- return dom_html_element_set_int32_t_property(&input->base, "size",
+ return dom_html_element_set_dom_ulong_property(&input->base, "size",
SLEN("size"), size);
}
dom_exception dom_html_input_element_get_tab_index(
diff --git a/test/testcases/tests/level2/html/HTMLInputElement13.xml b/test/testcases/tests/level2/html/HTMLInputElement13.xml
index e243035..8305dc8 100644
--- a/test/testcases/tests/level2/html/HTMLInputElement13.xml
+++ b/test/testcases/tests/level2/html/HTMLInputElement13.xml
@@ -32,7 +32,7 @@ See W3C License http://www.w3.org/Consortium/Legal/ for more details.
</metadata>
<var name="nodeList" type="NodeList"/>
<var name="testNode" type="Node"/>
-<var name="vsize" type="int"/>
+<var name="vsize" type="unsigned long"/>
<var name="doc" type="Node"/>
<load var="doc" href="input" willBeModified="false"/>
<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>