mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Amend Element interface to make it compatible with TrustedTypes
This commit is contained in:
parent
1368744d33
commit
db41ea8117
Notes:
github-actions[bot]
2025-10-27 16:16:02 +00:00
Author: https://github.com/tete17
Commit: db41ea8117
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6057
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Lubrsi ✅
12 changed files with 93 additions and 61 deletions
|
|
@ -1103,7 +1103,7 @@ void HTMLInputElement::create_text_input_shadow_tree()
|
|||
padding: 0;
|
||||
cursor: default;
|
||||
)~~~"_string));
|
||||
MUST(up_button->set_inner_html("<svg style=\"width: 1em; height: 1em;\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z\" /></svg>"sv));
|
||||
MUST(up_button->set_inner_html("<svg style=\"width: 1em; height: 1em;\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z\" /></svg>"_utf16));
|
||||
MUST(element->append_child(up_button));
|
||||
|
||||
auto mouseup_callback_function = JS::NativeFunction::create(
|
||||
|
|
@ -1135,7 +1135,7 @@ void HTMLInputElement::create_text_input_shadow_tree()
|
|||
padding: 0;
|
||||
cursor: default;
|
||||
)~~~"_string));
|
||||
MUST(down_button->set_inner_html("<svg style=\"width: 1em; height: 1em;\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z\" /></svg>"sv));
|
||||
MUST(down_button->set_inner_html("<svg style=\"width: 1em; height: 1em;\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z\" /></svg>"_utf16));
|
||||
MUST(element->append_child(down_button));
|
||||
|
||||
auto down_callback_function = JS::NativeFunction::create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue