mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Implement URL.canParse(url, base)
This patch adds an implementation of the URL.canParse(url, base) static function :^)
This commit is contained in:
parent
0e552f1d7a
commit
b1e43c9ea1
Notes:
sideshowbarker
2024-07-17 00:47:29 +09:00
Author: https://github.com/networkException
Commit: b1e43c9ea1
Pull-request: https://github.com/SerenityOS/serenity/pull/18287
Reviewed-by: https://github.com/linusg
3 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
|
||||
* Copyright (c) 2021, the SerenityOS developers.
|
||||
* Copyright (c) 2023, networkException <networkexception@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -23,6 +24,8 @@ public:
|
|||
|
||||
virtual ~URL() override;
|
||||
|
||||
static bool can_parse(JS::VM&, String const& url, Optional<String> const& base = {});
|
||||
|
||||
WebIDL::ExceptionOr<String> href() const;
|
||||
WebIDL::ExceptionOr<void> set_href(String const&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue