mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibWeb/HTML: Allow more characters in custom element names
Corresponds to 78d2678789
And import a related test.
This commit is contained in:
parent
af17f38bbf
commit
b05fe0127b
Notes:
github-actions[bot]
2025-07-08 16:10:51 +00:00
Author: https://github.com/AtkinsSJ
Commit: b05fe0127b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5353
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 190 additions and 50 deletions
|
@ -1,15 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Srikavin Ramkumar <me@srikavin.me>
|
||||
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
bool is_valid_custom_element_name(StringView name);
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue