SyntaxError

SyntaxError

[8] 大変紛らわしいことに、 JavaScriptエラー SyntaxError と、 Web IDLDOMException例外型 SyntaxError があり、両者は異なります。

仕様書

DOM API

[6] SyntaxErrorWeb IDL 単純例外には含まれていません >>5

[3] JavaScript SyntaxError は、ワーカー構文解析に失敗した時にも投げられます >>4

歴史

[1] Less TypeError, more "SyntaxError" (DOMException) https://www.w3.org/Bug... · 1bb586f · whatwg/dom ( ( 版)) <https://github.com/whatwg/dom/commit/1bb586f40753b5030b043c364f8eecee1e3e3d58>

[2] Remove the SyntaxError simple exception (the ECMAScript-corresponding on... · 8963248 · heycam/webidl ( ( 版)) <https://github.com/heycam/webidl/commit/8963248ebcddfc33f1296402c7e6566749d5e2d0>

[7] Editorial: change wording for throwing DOMExceptions ( (domenic著, )) <https://github.com/whatwg/html/commit/3ac179e4e7626f11cb37690fb0f5f44972f58a48>

[9] 23346 – Use TypeError for argument validation ( ()) <https://www.w3.org/Bugs/Public/show_bug.cgi?id=23346>

[10] Editorial: Add note about SyntaxError DOMException (#459) (TakayoshiKochi著, ) <https://github.com/heycam/webidl/commit/c3e67b3fc93db8bfabfd35ca54c5b474f63070de>

[11] Add a note on the difference of SyntaxError by TakayoshiKochi · Pull Request #459 · heycam/webidl () <https://github.com/heycam/webidl/pull/459>

[12] Editorial: use "exception name" DOMException notation (tobie著, ) <https://github.com/whatwg/dom/commit/9d83a6406bc57a7deeb5c0831c388bae752f2e5e>

[13] Editorial: use "exception name" DOMException notation by tobie · Pull Request #518 · whatwg/dom () <https://github.com/whatwg/dom/pull/518>

[14] 609415 - Error messages from parentNode.querySelector() do not follow specification - chromium - Monorail () <https://bugs.chromium.org/p/chromium/issues/detail?id=609415>