Make HTMLOptionsCollection report TypeErrors.

Switch exceptions to throw TypeError instead of TypeMismatchError when
handling incorrectly typed values over HTMLOptionsCollection methods
and accessors. This aligns behavior with WebIDL, Gecko and Trident.

(Change also includes a drive-by fix to the TextTrackCue constructor
error message.)

R=mkwst
BUG=270033

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

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