Jelle Raaijmakers
90d884a150
LibWeb: Prevent crash when editing outside of <body>
...
Step 9 of this algorithm might end up at the document node, which does
not have a parent.
2024-12-04 17:18:00 +01:00
Jelle Raaijmakers
9b446df7f5
LibWeb: Replace local name checks with simpler is<T>
in editing API
2024-12-04 06:51:59 +01:00
Jelle Raaijmakers
e308a3fd3f
LibWeb: Be more defensive while traversing ancestors in editing API
...
In all these cases there should be an ancestor available, but it
definitely cannot hurt to be a bit more defensive about this and prevent
nullptr dereferences.
2024-12-04 06:51:59 +01:00
Jelle Raaijmakers
4f76cec096
LibWeb: Implement document.execCommand("insertParagraph")
2024-12-04 06:51:59 +01:00
Jelle Raaijmakers
a62b664d0d
LibWeb: Put editing command "styleWithCSS" in alphabetical order
2024-12-04 06:51:59 +01:00
Jelle Raaijmakers
98df4c2b3c
LibWeb: Make Editing::fix_disallowed_ancestors_of_node() take a GC::Ref
2024-12-04 06:51:59 +01:00
Jelle Raaijmakers
4b0d8cbfad
LibWeb: Implement document.execCommand("styleWithCSS")
2024-11-30 17:35:45 +01:00
Jelle Raaijmakers
bb618736e9
LibWeb: Use default paragraph separator in delete command
2024-11-30 17:35:45 +01:00
Jelle Raaijmakers
4a64557876
LibWeb: Implement document.execCommand("defaultParagraphSeparator")
2024-11-30 17:35:45 +01:00
Jelle Raaijmakers
7bb865052a
LibWeb: Implement document.execCommand("delete")
...
To facilitate the implementation of "delete" and all associated
algorithms, split off this piece of `Document` into a separate
directory.
This sets up the infrastructure for arbitrary commands to be supported.
2024-11-30 17:35:45 +01:00