Add [TypeChecking=Interface] to Element interface

This affects the generated code for the methods

  setAttributeNode()
  setAttributeNodeNS()
  removeAttributeNode()
  insertAdjacentElement()

so that they now throw TypeError exceptions when called with invalid
argument values.

The implementations of each function contained code (removed here) that
checked for invalid argument values and threw exceptions, so the only
difference is the type of exception thrown (DOMException -> TypeError)
except for insertAdjacentElement() that was already throwing TypeErrors.

BUG=462561

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

git-svn-id: svn://svn.chromium.org/blink/trunk@191256 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed
tree: 25460d20a33a077302ff13233b59fc90a3702114
  1. third_party/