From f5cb5f3ba30d7c9284a1f37d8e8949fd4e5980ab Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 7 Jul 2024 14:25:07 +0200 Subject: [PATCH] [quickjs] Typos in copy-pasted code --- src/ecmascript/quickjs/element.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ecmascript/quickjs/element.c b/src/ecmascript/quickjs/element.c index ff98aae9e..02bd89246 100644 --- a/src/ecmascript/quickjs/element.c +++ b/src/ecmascript/quickjs/element.c @@ -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); }