2023-03-23 04:27:18 -04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Srikavin Ramkumar <me@srikavin.me>
|
2025-07-08 14:38:42 +01:00
|
|
|
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
2023-03-23 04:27:18 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2025-07-08 14:38:42 +01:00
|
|
|
#include <AK/String.h>
|
2023-03-23 04:27:18 -04:00
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
2025-07-08 14:38:42 +01:00
|
|
|
bool is_valid_custom_element_name(String const& name);
|
|
|
|
|
|
|
|
inline bool is_valid_custom_element_name(FlyString const& name)
|
|
|
|
{
|
|
|
|
return is_valid_custom_element_name(name.to_string());
|
|
|
|
}
|
2023-03-23 04:27:18 -04:00
|
|
|
|
|
|
|
}
|