mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
LibWeb: Use the spec-mandated set-value when setting an attribute
This commit is contained in:
parent
5ec76331e8
commit
f05d291b41
Notes:
sideshowbarker
2024-07-16 23:52:10 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/f05d291b41 Pull-request: https://github.com/SerenityOS/serenity/pull/20912 Reviewed-by: https://github.com/ADKaster ✅
@ -209,10 +209,10 @@ WebIDL::ExceptionOr<void> Element::set_attribute_ns(DeprecatedFlyString const& n
|
||||
// 1. Let namespace, prefix, and localName be the result of passing namespace and qualifiedName to validate and extract.
|
||||
auto extracted_qualified_name = TRY(validate_and_extract(realm(), namespace_, qualified_name));
|
||||
|
||||
// FIXME: 2. Set an attribute value for this using localName, value, and also prefix and namespace.
|
||||
// 2. Set an attribute value for this using localName, value, and also prefix and namespace.
|
||||
set_attribute_value(extracted_qualified_name.local_name(), value, extracted_qualified_name.prefix(), extracted_qualified_name.namespace_());
|
||||
|
||||
// FIXME: Don't just call through to setAttribute() here.
|
||||
return set_attribute(extracted_qualified_name.local_name(), value);
|
||||
return {};
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#concept-element-attributes-set-value
|
||||
|
Loading…
Reference in New Issue
Block a user