mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Remove XML-derived attribute name validation from DOMStringMap
Corresponds to 841fcfdb2c
This commit is contained in:
parent
1e30fd5c6a
commit
b7b504cf2d
Notes:
github-actions[bot]
2025-07-17 11:55:16 +00:00
Author: https://github.com/AtkinsSJ
Commit: b7b504cf2d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5482
Reviewed-by: https://github.com/gmta ✅
2 changed files with 4 additions and 1 deletions
|
@ -237,6 +237,7 @@ bool is_valid_namespace_prefix(FlyString const& prefix)
|
|||
return !prefix.is_empty() && !prefix.code_points().contains_any_of(INVALID_NAMESPACE_PREFIX_CHARACTERS);
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#valid-attribute-local-name
|
||||
bool is_valid_attribute_local_name(FlyString const& local_name)
|
||||
{
|
||||
// A string is a valid attribute local name if its length is at least 1 and it does not contain ASCII whitespace, U+0000 NULL, U+002F (/), U+003D (=), or U+003E (>).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue