[web-nfc] Throw "TypeError" instead of "Syntax" when parsing a URL fails (#268)

Honry has just created a new issue for https://github.com/w3c/web-nfc:

== Throw "TypeError" instead of "Syntax" when parsing a URL fails ==
>2. Let urlRecord be the result of [parsing ](https://url.spec.whatwg.org/#concept-url-parser)record's data.
>3. If urlRecord is failure, throw a "SyntaxError" DOMException and abort these steps.

>4. Let urlRecord be the result of [parsing ](https://url.spec.whatwg.org/#concept-url-parser)id.
>5. If urlRecord is failure, throw a "SyntaxError" DOMException and abort these steps.

These would be better to throw "TypeError". 

@kenchris @marcoscaceres 

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/268 using your GitHub account

Received on Monday, 5 August 2019 06:06:52 UTC