Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e36d76b
construct.xml Fix classname and extra `e.g.`
mmalferov May 8, 2026
9afc946
getasciihost.xml Add more relevant non-ASCII URL for example
mmalferov May 9, 2026
221cc38
parse.xml Remove extra `e.g` and add missing `;` in the example
mmalferov May 9, 2026
9e66405
toasciistring.xml Give an URL relevant for the example
mmalferov May 12, 2026
7bb8004
tounicodestring.xml Show how method works
mmalferov May 14, 2026
d4d68b7
unserialize.xml Let's deserialize the array, not the parameter
mmalferov May 14, 2026
ae68858
getfragment.xml Show how the method works
mmalferov May 17, 2026
ab50e34
getfragment.xml Clarify fragment normalization
mmalferov May 17, 2026
32db5c3
language-snippets.ent Add the URI normalization snippet
mmalferov May 17, 2026
5cd2822
getfragment.xml Replace a literal sentence with a variable
mmalferov May 17, 2026
b20c7d8
gethost.xml Clarify normalization
mmalferov May 17, 2026
6c3b99a
getfragment.xml Move the normalization description to a `simpara`
mmalferov May 17, 2026
d83270b
gethost.xml Move the normalization description to a `simpara`
mmalferov May 17, 2026
5784dc8
gethost.xml Show an example of normalization
mmalferov May 17, 2026
6e41259
getpassword.xml Add normalization description
mmalferov May 17, 2026
eafbfe7
getpath.xml Mention normalization mechanism
mmalferov May 17, 2026
676c122
getpath.xml Show how the method works
mmalferov May 17, 2026
9cccaee
getport.xml Remove the mention of normalization
mmalferov May 17, 2026
9ea3183
getquery.xml Add the normalization description + show how the method …
mmalferov May 17, 2026
71ba3b6
language-snippets.ent Add the non-normalization snippet
mmalferov May 17, 2026
28ccf18
getrawfragment.xml Add the non-normalization desc
mmalferov May 17, 2026
ff3f2f2
getrawfragment.xml Show how the method works
mmalferov May 17, 2026
4386000
getrawhost.xml Describe non-normalization + show how the method works
mmalferov May 17, 2026
e8c7244
Update getrawhost.xml
mmalferov May 17, 2026
2b3d3d3
getrawpassword.xml Describe non-normalization + show how the method w…
mmalferov May 17, 2026
1115ff8
getrawpath.xml Describe non-normalization + show how the method works
mmalferov May 17, 2026
2499fbd
getrawquery.xml Describe non-serialization + show how the method works
mmalferov May 17, 2026
c5e4835
getrawscheme.xml Describe non-normalization + show how the method works
mmalferov May 17, 2026
94cfff9
getrawuserinfo.xml Describe non-normalization + amend the example
mmalferov May 17, 2026
efaaaf3
getrawpassword.xml Remove the mention of...
mmalferov May 17, 2026
945dfaa
getrawusername.xml Describe non-normalization
mmalferov May 17, 2026
6030aad
getscheme.xml Describe normalization + show how the method works
mmalferov May 17, 2026
29405aa
getuserinfo.xml Describe normalization + show how the method works
mmalferov May 17, 2026
b306af8
getusername.xml Describe normalization + show how the method works
mmalferov May 17, 2026
93111f4
Update language-snippets.ent
mmalferov May 17, 2026
cd27883
Update parse.xml Add missed `;`
mmalferov May 17, 2026
3de375d
resolve.xml The method works not only with URLs
mmalferov May 17, 2026
4ae8ce4
torawstring.xml Describe non-normalization + show how the method works
mmalferov May 17, 2026
9558fd5
tostring.xml Describe normalization + show how to method works
mmalferov May 17, 2026
460a138
Update withfragment.xml Add `<?php` tag
mmalferov May 17, 2026
52b494a
uri.whatwg.urlvalidationerrortype.xml Add missing desc
mmalferov May 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reference/uri/uri/whatwg/url/construct.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<methodparam choice="opt"><type>array</type><parameter role="reference">softErrors</parameter><initializer>&null;</initializer></methodparam>
</constructorsynopsis>
<simpara>
Constructs the <classname>Uri\Rfc3986\Uri</classname> object.
Constructs the <classname>Uri\WhatWg\Url</classname> object.
</simpara>
</refsect1>

Expand All @@ -25,7 +25,7 @@
<term><parameter>uri</parameter></term>
<listitem>
<simpara>
A valid URL string to parse (e.g. <literal>/foo</literal> or (e.g. <literal>https://example.com/foo</literal>).
A valid URL string to parse (e.g. <literal>/foo</literal> or <literal>https://example.com/foo</literal>).
</simpara>
</listitem>
</varlistentry>
Expand Down
6 changes: 3 additions & 3 deletions reference/uri/uri/whatwg/url/getasciihost.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
<programlisting role="php">
<![CDATA[
<?php
$url = new \Uri\WhatWg\Url("https://example.com");

$url = new \Uri\WhatWg\Url("https://schönbergstylecode.example.com");

echo $url->getAsciiHost();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
example.com
xn--schnbergstylecode-1zb.example.com
]]>
</screen>
</example>
Expand Down
6 changes: 3 additions & 3 deletions reference/uri/uri/whatwg/url/parse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<term><parameter>uri</parameter></term>
<listitem>
<simpara>
A valid URL string to parse (e.g. <literal>/foo</literal> or (e.g. <literal>https://example.com/foo</literal>).
A valid URL string to parse (e.g. <literal>/foo</literal> or <literal>https://example.com/foo</literal>).
</simpara>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -66,14 +66,14 @@
<programlisting role="php">
<![CDATA[
<?php

$url = \Uri\WhatWg\Url::parse("https://example.com");

if ($url !== null) {
echo "Valid URL: " . $url->toAsciiString();
} else {
echo "Invalid URL"
echo "Invalid URL";
}
?>
]]>
</programlisting>
&example.outputs;
Expand Down
6 changes: 3 additions & 3 deletions reference/uri/uri/whatwg/url/toasciistring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
<programlisting role="php">
<![CDATA[
<?php
$url = new \Uri\WhatWg\Url("https://example.com/foo/bar?baz");

$url = new \Uri\WhatWg\Url("https://schönbergstylecode.example.com/foo/bar?baz");

echo $url->toAsciiString();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
https://example.com/foo/bar?baz
https://xn--schnbergstylecode-1zb.example.com/foo/bar?baz
]]>
</screen>
</example>
Expand Down