LibWeb: Update validate_and_extract and its users to the latest spec

This commit is contained in:
Tim Ledbetter 2025-06-19 07:32:16 +01:00 committed by Tim Ledbetter
commit 4593c28769
Notes: github-actions[bot] 2025-06-19 10:02:24 +00:00
11 changed files with 1744 additions and 25 deletions

View file

@ -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;