mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Fix bogus result from "validate and extract" DOM operation
We were returning a QualifiedName with the localName and namespace fields swapped.
This commit is contained in:
@@ -140,7 +140,7 @@ static ExceptionOr<QualifiedName> validate_and_extract(FlyString namespace_, Fly
|
||||
return NamespaceError::create("Namespace is the XMLNS namespace and neither qualifiedName nor prefix is 'xmlns'.");
|
||||
|
||||
// 10. Return namespace, prefix, and localName.
|
||||
return QualifiedName { namespace_, prefix, local_name };
|
||||
return QualifiedName { local_name, prefix, namespace_ };
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-element-setattributens
|
||||
|
||||
Reference in New Issue
Block a user