mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibWeb: Implement the "bold" editing command
This commit is contained in:
parent
fef02036dd
commit
a71e999ac8
Notes:
github-actions[bot]
2025-01-10 22:37:28 +00:00
Author: https://github.com/gmta
Commit: a71e999ac8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3216
6 changed files with 64 additions and 40 deletions
4
Tests/LibWeb/Text/expected/Editing/execCommand-bold.txt
Normal file
4
Tests/LibWeb/Text/expected/Editing/execCommand-bold.txt
Normal 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
|
|
@ -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 ""
|
Loading…
Add table
Add a link
Reference in a new issue