r13561 dsilvers - /trunk/libdom/src/core/element.c

netsurf at semichrome.net netsurf at semichrome.net
Fri Mar 23 18:05:49 GMT 2012


Author: dsilvers
Date: Fri Mar 23 13:05:49 2012
New Revision: 13561

URL: http://source.netsurf-browser.org?rev=13561&view=rev
Log:
Fix dom element attribute setting to return the old element as per the API

Modified:
    trunk/libdom/src/core/element.c

Modified: trunk/libdom/src/core/element.c
URL: http://source.netsurf-browser.org/trunk/libdom/src/core/element.c?rev=13561&r1=13560&r2=13561&view=diff
==============================================================================
--- trunk/libdom/src/core/element.c (original)
+++ trunk/libdom/src/core/element.c Fri Mar 23 13:05:49 2012
@@ -1640,7 +1640,7 @@
 				(dom_event_target *) old_attr, name, 
 				DOM_MUTATION_REMOVAL, &success);
 		dom_string_unref(old);
-		dom_node_unref(old_attr);
+		*result = old_attr;
 		if (err != DOM_NO_ERR) {
 			dom_string_unref(name);
 			return err;




More information about the netsurf-commits mailing list