RE: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API
| From: | Juris Evertovskis | Date: | Sun, 23 Feb 2025 17:47:41 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126481@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Tim Düsterhus <tim@bastelstu.be>
Sent: Sunday, February 23, 2025 5:05 PM
To: Máté Kocsis <kocsismate90@gmail.com>
Cc: Internals <internals@lists.php.net>
Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing
API
> Naming of
WhatWgError and
> WhatWgErrorType. They are placed within the
Uri\WhatWg namespace, making the WhatWg in their name a little
redundant.
Hey,
As those are URI validation errors, maybe something like
Uri\WhatWg\ValidationError would be both less clashy and less redundant?
If I'd see WhatWgError without seeing the "Uri" keyword I'd
probably think
it's related to other aspects of the spec, e.g. something went wrong with
the HTML parsing. Although I understand it's validating against the WhatWg
spec, UriError would seem clearer to me.
BR,
Juris