You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But file:///foo/bar and file:/foo/bar are equivalent URIs. And we can argue that since file: and /foo/bar have undefined authority, the result should have undefined authority as well. This is a result of the algorithm in RFC 3986, Section 5.2.2, although it need an absolute base URI.
I marked this as duplicate because it seemed like there was some underlying issue introduced into urljoin. I was assuming they will both be fixed by the same PR, but I guess not, sorry!
Bug report
Bug description:
The tests of lxml do (simplified):
file:///foo/bar
.file:/foo/bar
.This change of behavior was introduced in fc897fc #123273 cc @serhiy-storchaka
The NEWS entry in that change does not seem to indicate this change was intentional.
CPython versions tested on:
3.14, CPython main branch
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: