Re: [whatwg/url] Named validation errors (#502)

@TRowbotham commented on this pull request.



> +  <tr>
+   <td><dfn>host-invalid-code-point</dfn>
+   <td>
+    <p>An <a>opaque host</a> (in a URL that <a>is not special</a>) contains a
+    <a>forbidden host code point</a>.
+    <p class=example id=example-host-invalid-code-point>"<code>foo://exa[mple.org</code>"
+   <td>Yes
+ <tbody>
+  <tr>
+   <th colspan=3 scope=rowgroup><a href=#url-parsing>URL parsing</a>
+  <tr>
+   <td><dfn>scheme-invalid-code-point</dfn>
+   <td>
+    <p>The URL's <a for=url>scheme</a> contains an invalid code point.
+    <div class=example id=example-scheme-invalid-code-point>
+     TODO: actual setter examples as prior examples were wrong

Not emitting validation errors for API inputs seems reasonable.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/502#discussion_r1089603229
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/502/review/1273747738@github.com>

Received on Saturday, 28 January 2023 02:39:46 UTC