summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-02-05 18:19:00 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2016-02-05 18:19:00 (GMT)
commit0480b0a22bdb1823eb1dae9d09ddc7308e7114ca (patch)
tree531eda9c99cb82f69a4217c4bf2743d5081973c3
parentb26b3cfb60f130a06ce31ede6620ae37425422b2 (diff)
downloadlibdom-0480b0a22bdb1823eb1dae9d09ddc7308e7114ca.tar.gz
libdom-0480b0a22bdb1823eb1dae9d09ddc7308e7114ca.tar.bz2
Fix: HTMLTextAreaElement's copy constructor copies its specialised members.
-rw-r--r--src/html/html_text_area_element.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/html/html_text_area_element.c b/src/html/html_text_area_element.c
index 5677cf7..6117e83 100644
--- a/src/html/html_text_area_element.c
+++ b/src/html/html_text_area_element.c
@@ -333,6 +333,15 @@ dom_exception _dom_html_text_area_element_copy_internal(
return err;
}
+ /* TODO: We don't seem to keep a ref to form element, so just
+ * copy the pointer for now. */
+ new->form = old->form;
+
+ new->default_value = dom_string_ref(old->default_value);
+ new->default_value_set = old->default_value_set;
+ new->value = dom_string_ref(old->value);
+ new->value_set = old->value_set;
+
return DOM_NO_ERR;
}