summaryrefslogtreecommitdiff
path: root/src/html/html_button_element.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-02-05 16:07:55 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2016-02-05 16:07:55 +0000
commitbcc4b3e3c69c02107f45e0be2342750ce9119a53 (patch)
tree4a51a3572b48697c7d1447f7d1e8945bf490be06 /src/html/html_button_element.c
parent42bcd5d6f7a124a0b1680cd781effa2c396e387d (diff)
downloadlibdom-bcc4b3e3c69c02107f45e0be2342750ce9119a53.tar.gz
libdom-bcc4b3e3c69c02107f45e0be2342750ce9119a53.tar.bz2
Fix: HTMLButtonElement's copy constructor copies its specialised members.
Diffstat (limited to 'src/html/html_button_element.c')
-rw-r--r--src/html/html_button_element.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/html/html_button_element.c b/src/html/html_button_element.c
index a732247..04a17dd 100644
--- a/src/html/html_button_element.c
+++ b/src/html/html_button_element.c
@@ -174,6 +174,10 @@ dom_exception _dom_html_button_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;
+
return DOM_NO_ERR;
}