RE: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API

From: 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 [email protected] to get a copy of this message
-----Original Message-----
From: Tim Düsterhus <[email protected]> 
Sent: Sunday, February 23, 2025 5:05 PM
To: Máté Kocsis <[email protected]>
Cc: Internals <[email protected]>
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


Thread (152 messages)

« previous php.internals (#126481) next »