Have the HTMLSelectElement setter throw TypeError.

If an argument that fails to convert to 'HTMLOptionElement?' is passed
to the option setter/remover on HTMLSelectElement, throw TypeError.

This follows WebIDL and Gecko. Other implementations don't throw, but
ignore such operations.

R=
BUG=270033

Review URL: https://codereview.chromium.org/83743002

git-svn-id: svn://svn.chromium.org/blink/trunk@162559 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: c0d507c82b88e94299ba24c9816b1e590d58d6ac
  1. third_party/