From 9399b9b780ca07b0175bf06d67b3429d4d7ee0e7 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Wed, 16 Sep 2026 10:18:36 +0200 Subject: [PATCH] [Sync-En] uri: describe normalization, fix the Url constructor class name and amend examples --- language-snippets.ent | 14 +++++++++++++- .../uri/uri.whatwg.urlvalidationerrortype.xml | 4 ++-- reference/uri/uri/rfc3986/uri/getfragment.xml | 3 ++- reference/uri/uri/rfc3986/uri/gethost.xml | 3 ++- reference/uri/uri/rfc3986/uri/getpassword.xml | 3 ++- reference/uri/uri/rfc3986/uri/getpath.xml | 3 ++- reference/uri/uri/rfc3986/uri/getquery.xml | 3 ++- reference/uri/uri/rfc3986/uri/getrawfragment.xml | 3 ++- reference/uri/uri/rfc3986/uri/getrawhost.xml | 3 ++- reference/uri/uri/rfc3986/uri/getrawpassword.xml | 5 +++-- reference/uri/uri/rfc3986/uri/getrawpath.xml | 3 ++- reference/uri/uri/rfc3986/uri/getrawquery.xml | 3 ++- reference/uri/uri/rfc3986/uri/getrawscheme.xml | 3 ++- reference/uri/uri/rfc3986/uri/getrawuserinfo.xml | 3 ++- reference/uri/uri/rfc3986/uri/getrawusername.xml | 5 +++-- reference/uri/uri/rfc3986/uri/getscheme.xml | 3 ++- reference/uri/uri/rfc3986/uri/getuserinfo.xml | 3 ++- reference/uri/uri/rfc3986/uri/getusername.xml | 3 ++- reference/uri/uri/rfc3986/uri/parse.xml | 4 ++-- reference/uri/uri/rfc3986/uri/resolve.xml | 8 ++++---- reference/uri/uri/rfc3986/uri/torawstring.xml | 10 ++++++++-- reference/uri/uri/rfc3986/uri/tostring.xml | 3 ++- reference/uri/uri/rfc3986/uri/withfragment.xml | 4 ++-- reference/uri/uri/whatwg/url/construct.xml | 9 ++++++--- reference/uri/uri/whatwg/url/getasciihost.xml | 8 ++++---- reference/uri/uri/whatwg/url/parse.xml | 9 ++++++--- reference/uri/uri/whatwg/url/resolve.xml | 4 ++-- reference/uri/uri/whatwg/url/toasciistring.xml | 8 ++++---- reference/uri/uri/whatwg/url/tounicodestring.xml | 8 ++++---- reference/uri/uri/whatwg/url/unserialize.xml | 6 +++--- 30 files changed, 96 insertions(+), 55 deletions(-) diff --git a/language-snippets.ent b/language-snippets.ent index 8816669f77..080ad8f407 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -1,5 +1,5 @@ - + @@ -4457,6 +4457,18 @@ local: { '> + + Los tripletes hexadecimales se convierten a mayúsculas, los caracteres no reservados codificados con porcentaje se decodifican, los componentes de esquema y de host se normalizan a minúsculas y los segmentos de punto se eliminan de la ruta, conforme a la RFC 3986. + +'> + + + Los tripletes hexadecimales no se convierten a mayúsculas, los caracteres no reservados codificados con porcentaje permanecen codificados, los componentes de esquema y de host conservan las mayúsculas y minúsculas con las que se proporcionaron y los segmentos de punto se mantienen en la ruta. + +'> + - + La enumeración Uri\WhatWg\UrlValidationErrorType Uri\WhatWg\UrlValidationErrorType @@ -106,7 +106,7 @@ Ipv4InIpv6InvalidCodePoint - Una dirección IPv6 con sintaxis de dirección IPv4. + Una dirección IPv6 con sintaxis de dirección IPv4: una parte IPv4 está vacía, contiene un dígito no ASCII o un cero inicial, o hay demasiadas partes IPv4. diff --git a/reference/uri/uri/rfc3986/uri/getfragment.xml b/reference/uri/uri/rfc3986/uri/getfragment.xml index 00c3686595..6bb4f47db7 100644 --- a/reference/uri/uri/rfc3986/uri/getfragment.xml +++ b/reference/uri/uri/rfc3986/uri/getfragment.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getFragment @@ -15,6 +15,7 @@ Recupera el componente de fragmento normalizado. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/gethost.xml b/reference/uri/uri/rfc3986/uri/gethost.xml index ef6dbc1bc1..44758b0690 100644 --- a/reference/uri/uri/rfc3986/uri/gethost.xml +++ b/reference/uri/uri/rfc3986/uri/gethost.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getHost @@ -15,6 +15,7 @@ Recupera el componente de host normalizado. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getpassword.xml b/reference/uri/uri/rfc3986/uri/getpassword.xml index 75b0f3ee48..8220bdbeee 100644 --- a/reference/uri/uri/rfc3986/uri/getpassword.xml +++ b/reference/uri/uri/rfc3986/uri/getpassword.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getPassword @@ -16,6 +16,7 @@ Recupera la parte de contraseña normalizada (el texto después del primer carácter :) del componente userinfo. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getpath.xml b/reference/uri/uri/rfc3986/uri/getpath.xml index 084fd56fb2..24b0e199cd 100644 --- a/reference/uri/uri/rfc3986/uri/getpath.xml +++ b/reference/uri/uri/rfc3986/uri/getpath.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getPath @@ -15,6 +15,7 @@ Recupera el componente de ruta normalizado. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getquery.xml b/reference/uri/uri/rfc3986/uri/getquery.xml index 59c49a07b5..90b735e869 100644 --- a/reference/uri/uri/rfc3986/uri/getquery.xml +++ b/reference/uri/uri/rfc3986/uri/getquery.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getQuery @@ -15,6 +15,7 @@ Recupera el componente de consulta normalizado. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawfragment.xml b/reference/uri/uri/rfc3986/uri/getrawfragment.xml index 3cc517e2f0..6a71c6e67e 100644 --- a/reference/uri/uri/rfc3986/uri/getrawfragment.xml +++ b/reference/uri/uri/rfc3986/uri/getrawfragment.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getRawFragment @@ -15,6 +15,7 @@ Recupera el componente de fragmento sin procesar (no normalizado). + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawhost.xml b/reference/uri/uri/rfc3986/uri/getrawhost.xml index 1db3b8177d..23922f9604 100644 --- a/reference/uri/uri/rfc3986/uri/getrawhost.xml +++ b/reference/uri/uri/rfc3986/uri/getrawhost.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getRawHost @@ -15,6 +15,7 @@ Recupera el componente de host sin procesar (no normalizado). + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawpassword.xml b/reference/uri/uri/rfc3986/uri/getrawpassword.xml index 794f8e4726..673a7d799a 100644 --- a/reference/uri/uri/rfc3986/uri/getrawpassword.xml +++ b/reference/uri/uri/rfc3986/uri/getrawpassword.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getRawPassword @@ -16,6 +16,7 @@ Recupera la parte de contraseña sin procesar (no normalizada) (el texto después del primer carácter :) del componente userinfo. + &uri.non-normalization; @@ -26,7 +27,7 @@ &reftitle.returnvalues; - Devuelve la contraseña sin procesar (no normalizada) como un &string; si el componente userinfo contiene un carácter :. + Devuelve la contraseña sin procesar como un &string; si el componente userinfo contiene un carácter :. Se devuelve una cadena vacía cuando el componente userinfo no contiene un carácter :. Se devuelve &null; cuando el componente userinfo no existe. diff --git a/reference/uri/uri/rfc3986/uri/getrawpath.xml b/reference/uri/uri/rfc3986/uri/getrawpath.xml index 6ebcbb5951..1b12b82f4b 100644 --- a/reference/uri/uri/rfc3986/uri/getrawpath.xml +++ b/reference/uri/uri/rfc3986/uri/getrawpath.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getRawPath @@ -15,6 +15,7 @@ Recupera el componente de ruta sin procesar (no normalizado). + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawquery.xml b/reference/uri/uri/rfc3986/uri/getrawquery.xml index 78ad5cf3fc..1ccafc5ae0 100644 --- a/reference/uri/uri/rfc3986/uri/getrawquery.xml +++ b/reference/uri/uri/rfc3986/uri/getrawquery.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getRawQuery @@ -15,6 +15,7 @@ Recupera el componente de consulta sin procesar (no normalizado). + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawscheme.xml b/reference/uri/uri/rfc3986/uri/getrawscheme.xml index 32d75bd5ea..eee2d7cc9e 100644 --- a/reference/uri/uri/rfc3986/uri/getrawscheme.xml +++ b/reference/uri/uri/rfc3986/uri/getrawscheme.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getRawScheme @@ -15,6 +15,7 @@ Recupera el componente de esquema sin procesar (no normalizado). + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml b/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml index 6178397108..cf410e114b 100644 --- a/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml +++ b/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getRawUserInfo @@ -15,6 +15,7 @@ Recupera el componente userinfo sin procesar (no normalizado). + &uri.non-normalization; diff --git a/reference/uri/uri/rfc3986/uri/getrawusername.xml b/reference/uri/uri/rfc3986/uri/getrawusername.xml index f7c1fe5f51..46bfe21fa0 100644 --- a/reference/uri/uri/rfc3986/uri/getrawusername.xml +++ b/reference/uri/uri/rfc3986/uri/getrawusername.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getRawUsername @@ -16,6 +16,7 @@ Recupera la parte del nombre de usuario sin procesar (no normalizado) (el texto antes del primer carácter :) del componente userinfo. + &uri.non-normalization; @@ -26,7 +27,7 @@ &reftitle.returnvalues; - Devuelve el nombre de usuario sin procesar (no normalizado) como un &string; si el componente userinfo existe; de lo contrario, se devuelve &null;. + Devuelve el nombre de usuario sin procesar como un &string; si el componente userinfo existe; de lo contrario, se devuelve &null;. diff --git a/reference/uri/uri/rfc3986/uri/getscheme.xml b/reference/uri/uri/rfc3986/uri/getscheme.xml index 7e5d44797c..301e46a4b6 100644 --- a/reference/uri/uri/rfc3986/uri/getscheme.xml +++ b/reference/uri/uri/rfc3986/uri/getscheme.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getScheme @@ -15,6 +15,7 @@ Recupera el componente de esquema normalizado. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getuserinfo.xml b/reference/uri/uri/rfc3986/uri/getuserinfo.xml index e172d5a643..19e9cb254c 100644 --- a/reference/uri/uri/rfc3986/uri/getuserinfo.xml +++ b/reference/uri/uri/rfc3986/uri/getuserinfo.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getUserInfo @@ -15,6 +15,7 @@ Recupera el componente userinfo normalizado. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/getusername.xml b/reference/uri/uri/rfc3986/uri/getusername.xml index 261360bb35..5ac3b292c9 100644 --- a/reference/uri/uri/rfc3986/uri/getusername.xml +++ b/reference/uri/uri/rfc3986/uri/getusername.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::getUsername @@ -16,6 +16,7 @@ Recupera la parte del nombre de usuario normalizado (el texto antes del primer carácter :) del componente userinfo. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/parse.xml b/reference/uri/uri/rfc3986/uri/parse.xml index 1223c78250..c4396695d1 100644 --- a/reference/uri/uri/rfc3986/uri/parse.xml +++ b/reference/uri/uri/rfc3986/uri/parse.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::parse @@ -57,6 +57,7 @@ ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/resolve.xml b/reference/uri/uri/rfc3986/uri/resolve.xml index a028454dbe..cbd4287f22 100644 --- a/reference/uri/uri/rfc3986/uri/resolve.xml +++ b/reference/uri/uri/rfc3986/uri/resolve.xml @@ -1,9 +1,9 @@ - + Uri\Rfc3986\Uri::resolve - Resuelve una URI con el objeto actual como URL base + Resuelve una URI con el objeto actual como URI base @@ -13,7 +13,7 @@ stringuri - Resuelve una URI - que puede ser potencialmente una referencia relativa - con el objeto actual como URL base. + Resuelve una URI - que puede ser potencialmente una referencia relativa - con el objeto actual como URI base. @@ -50,11 +50,11 @@ resolve("/foo"); echo $uri->toRawString(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/rfc3986/uri/torawstring.xml b/reference/uri/uri/rfc3986/uri/torawstring.xml index 6149c75397..3429fcabd9 100644 --- a/reference/uri/uri/rfc3986/uri/torawstring.xml +++ b/reference/uri/uri/rfc3986/uri/torawstring.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::toRawString @@ -15,6 +15,12 @@ Recompone la URI sin procesar (no normalizada) en un &string;. + &uri.non-normalization; + + Un host IPv6 constituye una excepción: se recompone a partir de su forma + analizada y, por lo tanto, se devuelve completamente expandido y en + minúsculas, independientemente de la notación utilizada en la entrada. + @@ -25,7 +31,7 @@ &reftitle.returnvalues; - Devuelve la URI recompuesta sin procesar (no normalizada) como un &string;. + Devuelve la URI recompuesta sin procesar como un &string;. diff --git a/reference/uri/uri/rfc3986/uri/tostring.xml b/reference/uri/uri/rfc3986/uri/tostring.xml index 2474329fb0..cfb0b09ff1 100644 --- a/reference/uri/uri/rfc3986/uri/tostring.xml +++ b/reference/uri/uri/rfc3986/uri/tostring.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::toString @@ -15,6 +15,7 @@ Recompone la URI normalizada en un &string;. + &uri.normalization; diff --git a/reference/uri/uri/rfc3986/uri/withfragment.xml b/reference/uri/uri/rfc3986/uri/withfragment.xml index e1efc848e3..0dd9b3fd21 100644 --- a/reference/uri/uri/rfc3986/uri/withfragment.xml +++ b/reference/uri/uri/rfc3986/uri/withfragment.xml @@ -1,5 +1,5 @@ - + Uri\Rfc3986\Uri::withFragment @@ -50,11 +50,11 @@ withFragment("bar"); echo $uri->getFragment(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/construct.xml b/reference/uri/uri/whatwg/url/construct.xml index 2531ed534f..e887ac393c 100644 --- a/reference/uri/uri/whatwg/url/construct.xml +++ b/reference/uri/uri/whatwg/url/construct.xml @@ -1,5 +1,5 @@ - + Uri\WhatWg\Url::__construct @@ -15,7 +15,7 @@ arraysoftErrors&null; - Construye el objeto Uri\Rfc3986\Uri. + Construye el objeto Uri\WhatWg\Url. @@ -26,7 +26,10 @@ uri - Una cadena de URL válida a analizar (por ejemplo, /foo o https://example.com/foo). + Una cadena de URL a analizar, por ejemplo + https://example.com/foo. Una cadena de URL relativa como + /foo solo se acepta cuando se proporciona + baseUrl. diff --git a/reference/uri/uri/whatwg/url/getasciihost.xml b/reference/uri/uri/whatwg/url/getasciihost.xml index 5e8f814252..30273e3cb7 100644 --- a/reference/uri/uri/whatwg/url/getasciihost.xml +++ b/reference/uri/uri/whatwg/url/getasciihost.xml @@ -1,5 +1,5 @@ - + Uri\WhatWg\Url::getAsciiHost @@ -36,16 +36,16 @@ getAsciiHost(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/parse.xml b/reference/uri/uri/whatwg/url/parse.xml index 6c0a62d91f..5bf21ad44d 100644 --- a/reference/uri/uri/whatwg/url/parse.xml +++ b/reference/uri/uri/whatwg/url/parse.xml @@ -1,5 +1,5 @@ - + Uri\WhatWg\Url::parse @@ -26,7 +26,10 @@ uri - Una cadena de URL válida a analizar (p.ej. /foo o (p.ej. https://example.com/foo). + Una cadena de URL a analizar, por ejemplo + https://example.com/foo. Una cadena de URL relativa como + /foo solo se acepta cuando se proporciona + baseUrl. @@ -68,6 +71,7 @@ ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/resolve.xml b/reference/uri/uri/whatwg/url/resolve.xml index 3197ba192a..c90d1d8b2e 100644 --- a/reference/uri/uri/whatwg/url/resolve.xml +++ b/reference/uri/uri/whatwg/url/resolve.xml @@ -1,5 +1,5 @@ - + Uri\WhatWg\Url::resolve @@ -25,7 +25,7 @@ uri - Una cadena de URL válida (p.ej. /foo o (p.ej. https://example.com/foo) a aplicar sobre + Una cadena de URL válida (p.ej. /foo o https://example.com/foo) a aplicar sobre el objeto actual. diff --git a/reference/uri/uri/whatwg/url/toasciistring.xml b/reference/uri/uri/whatwg/url/toasciistring.xml index fddadbca97..11d3fc4e99 100644 --- a/reference/uri/uri/whatwg/url/toasciistring.xml +++ b/reference/uri/uri/whatwg/url/toasciistring.xml @@ -1,5 +1,5 @@ - + Uri\WhatWg\Url::toAsciiString @@ -37,16 +37,16 @@ toAsciiString(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/tounicodestring.xml b/reference/uri/uri/whatwg/url/tounicodestring.xml index 47ae5857c4..9787d77712 100644 --- a/reference/uri/uri/whatwg/url/tounicodestring.xml +++ b/reference/uri/uri/whatwg/url/tounicodestring.xml @@ -1,5 +1,5 @@ - + Uri\WhatWg\Url::toUnicodeString @@ -36,16 +36,16 @@ toUnicodeString(); -?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/unserialize.xml b/reference/uri/uri/whatwg/url/unserialize.xml index 6faaf1bb22..91fed1231e 100644 --- a/reference/uri/uri/whatwg/url/unserialize.xml +++ b/reference/uri/uri/whatwg/url/unserialize.xml @@ -1,9 +1,9 @@ - + Uri\WhatWg\Url::__unserialize - Deserializa el parámetro data en un objeto Url + Deserializa el array del parámetro data en un objeto Url @@ -13,7 +13,7 @@ arraydata - Deserializa un parámetro data en un objeto Uri\WhatWg\Url. + Deserializa el &array; del parámetro data en un objeto Uri\WhatWg\Url.