summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-02-05 17:43:45 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2016-02-05 17:43:45 (GMT)
commit3c056b43a52bd2a5a424b7902e8c95a7857d5afe (patch)
tree945f807638beb27403eab61bba55c553f7389c33
parentcff37d7181675e9cd3256094f98631a24ba2f6c7 (diff)
downloadlibdom-3c056b43a52bd2a5a424b7902e8c95a7857d5afe.tar.gz
libdom-3c056b43a52bd2a5a424b7902e8c95a7857d5afe.tar.bz2
Fix: HTMLSelectElement's copy constructor copies its specialised members.
-rw-r--r--src/html/html_select_element.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/html/html_select_element.c b/src/html/html_select_element.c
index c178eb0..ff549b2 100644
--- a/src/html/html_select_element.c
+++ b/src/html/html_select_element.c
@@ -145,6 +145,12 @@ dom_exception _dom_html_select_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->selected = old->selected;
+
return DOM_NO_ERR;
}