diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/html/html_element.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/html/html_element.c b/src/html/html_element.c index 23fc0eb..ffa7db9 100644 --- a/src/html/html_element.c +++ b/src/html/html_element.c @@ -109,7 +109,8 @@ dom_exception _dom_html_element_get_id(dom_html_element *element, dom_exception ret; dom_string *idstr; - ret = dom_string_create((const uint8_t *) "id", SLEN("id"), &idstr); + ret = dom_string_create_interned((const uint8_t *) "id", SLEN("id"), + &idstr); if (ret != DOM_NO_ERR) return ret; @@ -126,7 +127,8 @@ dom_exception _dom_html_element_set_id(dom_html_element *element, dom_exception ret; dom_string *idstr; - ret = dom_string_create((const uint8_t *) "id", SLEN("id"), &idstr); + ret = dom_string_create_interned((const uint8_t *) "id", SLEN("id"), + &idstr); if (ret != DOM_NO_ERR) return ret; |