http://example.com/test.php (does not need to be PHP)
At this time, any user agent you have (Chrome 41, w3m/0.5.3, GNU Wget 1.13.4) expands the link as follows:
Is there any support from HTML or related standards for this behavior?Or is it just a user agent implementation practice?html
The algorithm for resolving relative URIs is found in 55.2.Relative Resolution に.Also, the actual example is in "5.4. Reference Resolution Examples", so I'll skip it.
Within a presentation with a well defined base URI of
a relative reference is transformed to its target URI as follows.
Therefore, each user agent behaves according to the specifications of RFC 3986.
© 2023 OneMinuteCode. All rights reserved.