1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:37:43 +00:00

LibWeb/URL: Use the correct spec URL comment for URL::port()

Since in the previous snapshot we were using the hostname setter's
spec URL.
This commit is contained in:
Kemal Zebari 2023-09-18 23:09:10 -07:00 committed by Andreas Kling
parent 9ccf25fdbe
commit 93e230ba58

View file

@ -315,7 +315,7 @@ void URL::set_hostname(String const& hostname)
m_url = move(result_url); m_url = move(result_url);
} }
// https://url.spec.whatwg.org/#ref-for-dom-url-hostname① // https://url.spec.whatwg.org/#dom-url-port
WebIDL::ExceptionOr<String> URL::port() const WebIDL::ExceptionOr<String> URL::port() const
{ {
auto& vm = realm().vm(); auto& vm = realm().vm();