We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80412d1 commit f529a4dCopy full SHA for f529a4d
Libraries/LibWeb/Selection/Selection.cpp
@@ -565,6 +565,10 @@ GC::Ptr<DOM::Position> Selection::cursor_position() const
565
return DOM::Position::create(m_document->realm(), *m_range->start_container(), m_range->start_offset());
566
}
567
568
+// FIXME: The offset adjustment algorithms below do not handle moving over multiple DOM nodes. For example, if we have:
569
+// `<div contenteditable><p>Well hello</p><p>friends</p></div>`, we should be able to move the cursor between the
570
+// two <p> elements. But the algorithms below limit us to a single DOM node.
571
+
572
void Selection::move_offset_to_next_character(bool collapse_selection)
573
{
574
auto* text_node = as_if<DOM::Text>(anchor_node().ptr());
0 commit comments