This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Throw a TypeError instead.
And in particular, a JavaScript TypeError, not a DOMException variant.
https://dvcs.w3.org/hg/webcomponents/rev/aba25d08179b