2020-01-18 11:38:21 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 11:38:21 +03:00
|
|
|
*/
|
|
|
|
|
2019-10-12 14:02:38 +03:00
|
|
|
#pragma once
|
|
|
|
|
2023-03-30 01:46:18 +03:00
|
|
|
#include <AK/FixedArray.h>
|
2020-03-07 12:32:51 +03:00
|
|
|
#include <LibWeb/DOM/Element.h>
|
2019-10-12 14:02:38 +03:00
|
|
|
|
2020-07-26 20:37:56 +03:00
|
|
|
namespace Web::DOM {
|
2020-03-07 12:27:02 +03:00
|
|
|
|
2023-10-01 10:07:44 +03:00
|
|
|
ErrorOr<FixedArray<FlyString>> valid_local_names_for_given_html_element_interface(StringView html_element_interface_name);
|
|
|
|
bool is_unknown_html_element(FlyString const& tag_name);
|
2023-03-30 01:46:18 +03:00
|
|
|
|
|
|
|
// FIXME: The spec doesn't say what the default value of synchronous_custom_elements_flag should be.
|
2023-11-04 11:46:23 +03:00
|
|
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<Element>> create_element(Document&, FlyString local_name, Optional<FlyString> namespace_, Optional<FlyString> prefix = {}, Optional<String> is = Optional<String> {}, bool synchronous_custom_elements_flag = false);
|
2020-03-07 12:27:02 +03:00
|
|
|
|
|
|
|
}
|