LibWeb: Implement the "bold" editing command

This commit is contained in:
Jelle Raaijmakers 2025-01-07 14:15:09 +01:00 committed by Andreas Kling
commit a71e999ac8
Notes: github-actions[bot] 2025-01-10 22:37:28 +00:00
6 changed files with 64 additions and 40 deletions

View file

@ -0,0 +1,4 @@
Div contents: "foobar" state: false selection: #document 0 #document 0
Div contents: "foo<b>bar</b>" state: true selection: #text 0 #text 3
Div contents: "<b>foobar</b>" state: true selection: #text 0 #text 3
Div contents: "<b>foo</b>bar" state: false selection: #text 0 #text 3

View file

@ -1,7 +0,0 @@
execCommand("bold") returned false
Hello, world!<b>I'm totally bold rn</b>
queryCommandEnabled("bold") returned false
queryCommandIndeterm("bold") returned false
queryCommandState("bold") returned false
queryCommandSupported("bold") returned false
queryCommandValue("bold") returned ""