1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[quickjs] Typos in copy-pasted code

This commit is contained in:
Witold Filipczyk 2024-07-07 14:25:07 +02:00
parent b2b3b64c9a
commit f5cb5f3ba3

View File

@ -687,7 +687,7 @@ js_element_get_property_href(JSContext *ctx, JSValueConst this_val)
return JS_NULL;
}
dom_node_ref(el);
exc = dom_element_get_attribute(el, corestring_dom_id, &href);
exc = dom_element_get_attribute(el, corestring_dom_href, &href);
if (exc != DOM_NO_ERR) {
dom_node_unref(el);
@ -1865,7 +1865,7 @@ js_element_set_property_href(JSContext *ctx, JSValueConst this_val, JSValue val)
exc = dom_string_create((const uint8_t *)str, len, &hrefstr);
if (exc == DOM_NO_ERR && hrefstr) {
exc = dom_element_set_attribute(el, corestring_dom_id, hrefstr);
exc = dom_element_set_attribute(el, corestring_dom_href, hrefstr);
interpreter->changed = 1;
dom_string_unref(hrefstr);
}