mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Rename abbreviated variable name
This commit is contained in:
parent
7feb8eb5bf
commit
ae8033b80f
Notes:
github-actions[bot]
2024-12-09 09:14:27 +00:00
Author: https://github.com/ananas-dev
Commit: ae8033b80f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2467
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 6 additions and 6 deletions
|
@ -99,23 +99,23 @@ void XMLDocumentBuilder::element_start(const XML::Name& name, HashMap<XML::Name,
|
||||||
m_namespace_stack.last().depth += 1;
|
m_namespace_stack.last().depth += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto qualified_name_or_err = DOM::validate_and_extract(m_document->realm(), m_namespace, MUST(FlyString::from_deprecated_fly_string(name)));
|
auto qualified_name_or_error = DOM::validate_and_extract(m_document->realm(), m_namespace, MUST(FlyString::from_deprecated_fly_string(name)));
|
||||||
|
|
||||||
if (qualified_name_or_err.is_error()) {
|
if (qualified_name_or_error.is_error()) {
|
||||||
m_has_error = true;
|
m_has_error = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto qualified_name = qualified_name_or_err.value();
|
auto qualified_name = qualified_name_or_error.value();
|
||||||
|
|
||||||
auto node_or_err = DOM::create_element(m_document, qualified_name.local_name(), qualified_name.namespace_(), qualified_name.prefix());
|
auto node_or_error = DOM::create_element(m_document, qualified_name.local_name(), qualified_name.namespace_(), qualified_name.prefix());
|
||||||
|
|
||||||
if (node_or_err.is_error()) {
|
if (node_or_error.is_error()) {
|
||||||
m_has_error = true;
|
m_has_error = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto node = node_or_err.value();
|
auto node = node_or_error.value();
|
||||||
|
|
||||||
// When an XML parser with XML scripting support enabled creates a script element,
|
// When an XML parser with XML scripting support enabled creates a script element,
|
||||||
// it must have its parser document set and its "force async" flag must be unset.
|
// it must have its parser document set and its "force async" flag must be unset.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue