Skip to content

Commit b6e9565

Browse files
authored
uri: Improve explanation for UrlValidationError (#5472)
1 parent 1b0eee0 commit b6e9565

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

reference/uri/uri.whatwg.urlvalidationerror.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<section xml:id="uri-whatwg-urlvalidationerror.intro">
88
&reftitle.intro;
99
<simpara>
10+
Provides details about errors that were detected when parsing a URL with
11+
<classname>Uri\WhatWg\Url</classname>.
1012
</simpara>
1113
</section>
1214

@@ -63,15 +65,16 @@
6365
<term><varname>type</varname></term>
6466
<listitem>
6567
<simpara>
66-
A <classname>Uri\WhatWg\UrlValidationErrorType</classname> instance.
68+
The type of error.
6769
</simpara>
6870
</listitem>
6971
</varlistentry>
7072
<varlistentry xml:id="uri-whatwg-urlvalidationerror.props.failure">
7173
<term><varname>failure</varname></term>
7274
<listitem>
7375
<simpara>
74-
Whether the error refers to a failure, or a soft-error.
76+
If &true; the error caused the URL to be rejected as invalid. If &false;
77+
the error is a soft error that was automatically corrected during parsing.
7578
</simpara>
7679
</listitem>
7780
</varlistentry>

0 commit comments

Comments
 (0)