From b633bef7bf326ce22e89cf40a4dad5ecbcee9400 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 23 Feb 2020 09:33:26 +0000 Subject: Node: nodeValue setter should return value set into node Signed-off-by: Daniel Silverstone --- content/handlers/javascript/duktape/Node.bnd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content/handlers') diff --git a/content/handlers/javascript/duktape/Node.bnd b/content/handlers/javascript/duktape/Node.bnd index 98fb5dd7c..8cd07944d 100644 --- a/content/handlers/javascript/duktape/Node.bnd +++ b/content/handlers/javascript/duktape/Node.bnd @@ -221,7 +221,8 @@ setter Node::nodeValue() if (exc != DOM_NO_ERR) return 0; exc = dom_node_set_node_value(priv->node, content); dom_string_unref(content); - return 0; + if (exc != DOM_NO_ERR) return 0; + return 1; %} getter Node::textContent() -- cgit v1.2.3