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

@annevk 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

The scheme examples were wrong as you can only reach this validation error through the API. I'm not sure if we even want to log API validation errors as there is no section describing how to write API inputs?

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

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

Received on Tuesday, 24 January 2023 18:12:54 UTC