summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-02-05 17:30:42 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2016-02-05 17:30:42 (GMT)
commit37eb480bbe4ecda49a9c78bfcf5a86c510c42350 (patch)
treed5ea1691d2e666a54147b06d24029ec81967a6d8
parent89171f671b9c9b4245413b75d2241e59a1d51aed (diff)
downloadlibdom-37eb480bbe4ecda49a9c78bfcf5a86c510c42350.tar.gz
libdom-37eb480bbe4ecda49a9c78bfcf5a86c510c42350.tar.bz2
Fix: HTMLOptionElement's copy constructor copies its specialised members.
-rw-r--r--src/html/html_option_element.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/html/html_option_element.c b/src/html/html_option_element.c
index 972b7b5..a593ebe 100644
--- a/src/html/html_option_element.c
+++ b/src/html/html_option_element.c
@@ -477,6 +477,9 @@ dom_exception _dom_html_option_element_copy_internal(
return err;
}
+ new->default_selected = old->default_selected;
+ new->default_selected_set = old->default_selected_set;
+
return DOM_NO_ERR;
}