2020-01-18 05:38:21 -03:00
|
|
|
/*
|
2024-10-04 08:19:50 -03:00
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <andreas@ladybird.org>
|
2020-01-18 05:38:21 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2019-10-12 08:02:38 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-03-29 19:46:18 -03:00
|
|
|
#include <AK/FixedArray.h>
|
2020-03-07 06:32:51 -03:00
|
|
|
#include <LibWeb/DOM/Element.h>
|
2025-07-19 23:35:33 -03:00
|
|
|
#include <LibWeb/Export.h>
|
2019-10-12 08:02:38 -03:00
|
|
|
|
2020-07-26 14:37:56 -03:00
|
|
|
namespace Web::DOM {
|
2020-03-07 06:27:02 -03:00
|
|
|
|
2025-07-19 23:35:33 -03:00
|
|
|
WEB_API ErrorOr<FixedArray<FlyString>> valid_local_names_for_given_html_element_interface(StringView html_element_interface_name);
|
2023-10-01 04:07:44 -03:00
|
|
|
bool is_unknown_html_element(FlyString const& tag_name);
|
2023-03-29 19:46:18 -03:00
|
|
|
|
|
|
|
|
// FIXME: The spec doesn't say what the default value of synchronous_custom_elements_flag should be.
|
2025-07-19 23:35:33 -03:00
|
|
|
WEB_API WebIDL::ExceptionOr<GC::Ref<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 06:27:02 -03:00
|
|
|
|
|
|
|
|
}
|