Reviewed and landed by Darin.
Test cases added:
* layout-tests/dom/html/level2/html/HTMLSelectElement20-expected.txt:
This passes now.
* khtml/ecma/kjs_html.cpp:
(KJS::KJS::HTMLElementFunction::callAsFunction):
(KJS::KJS::HTMLSelectCollection::put):
Handle exceptions.
* khtml/html/html_formimpl.cpp:
(DOM::HTMLSelectElementImpl::add):
* khtml/html/html_formimpl.h:
Make ::add raise an exception if before isn't a descendant
of the select element.
* kwq/DOMHTML.mm:
(-[DOMHTMLSelectElement add::]):
Handle the exception.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@10173
268f45cc-cd09-0410-ab3c-
d52691b4dbfc