mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +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
|
@ -120,7 +120,7 @@ void XMLDocumentBuilder::element_start(const XML::Name& name, HashMap<XML::Name,
|
|||
|
||||
auto namespace_ = namespace_for_name(name);
|
||||
|
||||
auto qualified_name_or_error = DOM::validate_and_extract(m_document->realm(), namespace_, FlyString(MUST(String::from_byte_string(name))));
|
||||
auto qualified_name_or_error = DOM::validate_and_extract(m_document->realm(), namespace_, FlyString(MUST(String::from_byte_string(name))), DOM::ValidationContext::Element);
|
||||
|
||||
if (qualified_name_or_error.is_error()) {
|
||||
m_has_error = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue