-----Original Message-----
From: Tim Düsterhus <t...@bastelstu.be> 
Sent: Sunday, February 23, 2025 5:05 PM
To: Máté Kocsis <kocsismat...@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

Reply via email to