|
@@ -1,6 +1,7 @@
|
|
/*
|
|
/*
|
|
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
|
|
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
+ * Copyright (c) 2023, networkException <networkexception@serenityos.org>
|
|
*
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
*/
|
|
@@ -23,6 +24,8 @@ public:
|
|
|
|
|
|
virtual ~URL() override;
|
|
virtual ~URL() override;
|
|
|
|
|
|
|
|
+ static bool can_parse(JS::VM&, String const& url, Optional<String> const& base = {});
|
|
|
|
+
|
|
WebIDL::ExceptionOr<String> href() const;
|
|
WebIDL::ExceptionOr<String> href() const;
|
|
WebIDL::ExceptionOr<void> set_href(String const&);
|
|
WebIDL::ExceptionOr<void> set_href(String const&);
|
|
|
|
|