summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dom/html/html_element.h2
-rw-r--r--src/html/html_element.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/include/dom/html/html_element.h b/include/dom/html/html_element.h
index ed7aa69..47129fe 100644
--- a/include/dom/html/html_element.h
+++ b/include/dom/html/html_element.h
@@ -19,7 +19,7 @@ typedef struct dom_html_element_vtable {
struct dom_string **id);
dom_exception (*dom_html_element_set_id)(struct dom_html_element *element,
struct dom_string *id);
-};
+} dom_html_element_vtable;
static inline dom_exception dom_html_element_get_id(struct dom_html_element *element,
struct dom_string **id)
diff --git a/src/html/html_element.c b/src/html/html_element.c
index 0101ee8..decf955 100644
--- a/src/html/html_element.c
+++ b/src/html/html_element.c
@@ -81,7 +81,8 @@ dom_exception _dom_html_element_get_id(dom_html_element *element,
if (ret != DOM_NO_ERR)
return ret;
- ret = dom_document_create_string(doc, "id", SLEN("id"), &idstr);
+ ret = _dom_document_create_string(doc, (const uint8_t *) "id",
+ SLEN("id"), &idstr);
if (ret != DOM_NO_ERR)
return ret;
@@ -103,7 +104,8 @@ dom_exception _dom_html_element_set_id(dom_html_element *element,
if (ret != DOM_NO_ERR)
return ret;
- ret = dom_document_create_string(doc, "id", SLEN("id"), &idstr);
+ ret = _dom_document_create_string(doc, (const uint8_t *) "id",
+ SLEN("id"), &idstr);
if (ret != DOM_NO_ERR)
return ret;