LibWeb: Implement TrustedTypes spec for set_value on Attribute

This commit is contained in:
Tete17 2025-08-08 02:12:15 +02:00 committed by Luke Wilde
parent e2adce84e7
commit 887537b061
Notes: github-actions[bot] 2025-10-27 16:16:23 +00:00
5 changed files with 40 additions and 10 deletions

View file

@ -220,7 +220,7 @@ WebIDL::ExceptionOr<GC::Ptr<Attr>> NamedNodeMap::set_attribute(Attr& attribute)
return &attribute;
// 5. Set attrs value to verifiedValue.
attribute.set_value(verifiedValue.to_utf8_but_should_be_ported_to_utf16());
TRY(attribute.set_value(verifiedValue.to_utf8_but_should_be_ported_to_utf16()));
// 6. If oldAttr is non-null, then replace oldAttr with attr.
if (old_attribute) {