mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibWeb: Update validate_and_extract
and its users to the latest spec
This commit is contained in:
parent
c6cc7e1874
commit
4593c28769
Notes:
github-actions[bot]
2025-06-19 10:02:24 +00:00
Author: https://github.com/tcl3
Commit: 4593c28769
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5140
Reviewed-by: https://github.com/AtkinsSJ ✅
11 changed files with 1744 additions and 25 deletions
|
@ -676,6 +676,14 @@ inline bool Element::has_pseudo_element(CSS::PseudoElement type) const
|
|||
return pseudo_element.value()->layout_node;
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<QualifiedName> validate_and_extract(JS::Realm&, Optional<FlyString> namespace_, FlyString const& qualified_name);
|
||||
bool is_valid_namespace_prefix(FlyString const&);
|
||||
bool is_valid_attribute_local_name(FlyString const&);
|
||||
bool is_valid_element_local_name(FlyString const&);
|
||||
|
||||
enum class ValidationContext {
|
||||
Attribute,
|
||||
Element,
|
||||
};
|
||||
WebIDL::ExceptionOr<QualifiedName> validate_and_extract(JS::Realm&, Optional<FlyString> namespace_, FlyString const& qualified_name, ValidationContext context);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue