mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Implement TrustedTypes spec for set_value on Attribute
This commit is contained in:
parent
e2adce84e7
commit
887537b061
Notes:
github-actions[bot]
2025-10-27 16:16:23 +00:00
Author: https://github.com/tete17
Commit: 887537b061
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6057
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Lubrsi ✅
5 changed files with 40 additions and 10 deletions
|
|
@ -220,7 +220,7 @@ WebIDL::ExceptionOr<GC::Ptr<Attr>> NamedNodeMap::set_attribute(Attr& attribute)
|
|||
return &attribute;
|
||||
|
||||
// 5. Set attr’s 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue