Skip to content

Fix for #921: Caret in the text - #1382

Merged
karlkleinpaste merged 3 commits into
crosswire:masterfrom
LAfricain:Caretinthetext
Aug 20, 2026
Merged

Fix for #921: Caret in the text#1382
karlkleinpaste merged 3 commits into
crosswire:masterfrom
LAfricain:Caretinthetext

Conversation

@LAfricain

Copy link
Copy Markdown
Contributor

Enable WebKit caret browsing in Bible text and commentary panes (fixes #921)

Restricted to TEXT_TYPE and COMMENTARY_TYPE panes: enabling caret
browsing on every WkHtml instance simultaneously (dictionary,
sidebar, etc.) was found to interfere with keyboard caret navigation
(Down/Page_Down) in the active pane, even though the affected pane
kept receiving every key event normally.

lafricain79 and others added 3 commits August 20, 2026 21:29
…crosswire#921)

Restricted to TEXT_TYPE and COMMENTARY_TYPE panes: enabling caret
browsing on every WkHtml instance simultaneously (dictionary,
sidebar, etc.) was found to interfere with keyboard caret navigation
(Down/Page_Down) in the active pane, even though the affected pane
kept receiving every key event normally.
Discovered while investigating crosswire#921: wrapping the chapter title and
intro material (which legitimately contain block-level <div>/<h2>
elements) inside an inline <a name=...> tag is invalid HTML. WebKit's
HTML5 parser silently fragments/duplicates the <a> element via the
adoption agency algorithm to recover, which can leak inline styles
(e.g. italics) past their intended scope in some chapters.

Does not fully resolve the italics-leak issue on its own (a deeper
cause was also found in cross-chapter OSIS section boundaries and in
getVerseBefore()'s tag-crossing markup); tracked separately.
@LAfricain

Copy link
Copy Markdown
Contributor Author

Oops, I just realized I synced the caret branch with master! I hope that doesn't cause any conflicts...

@karlkleinpaste
karlkleinpaste merged commit 5fb9b98 into crosswire:master Aug 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Caret in the text

2 participants