Highlight Search Terms parameter = Yes. The issue can be reproduced with a specific search provided there is no space right after the term in the text. It does not matter what comes after the term: a punctuation mark or a latter (if the search term is a part of a bigger word), the term is not highlighted.
Green color - search terms highlighted correctly with mark data-markjs="true", there is a space right after all the terms.
Red color - missing highlights because there is a dot right after the terms, not space.
Joomla 4.3.1 native search
PHP 8.0.3
The issue has been there from the very beginning of Joomla 4.
Labels |
Added:
No Code Attached Yet
|
Title |
|
Title |
|
Title |
|
Confirmed
Highlight.js was added via #33089
Highlight.js was built upon mark.js
Looking at an example of mark.js I see that finding amet
even highlights the search word followed by comma or dot.
https://jsfiddle.net/julmot/vpav6tL1/
so ... something in our Joomla code breaks the feature mark.js already provides.
Issue started by merging the solution for #38908
I'll create a PR te revert that commit and solve the issue using CSS.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-05-12 12:40:37 |
Closed_By | ⇒ | richard67 |
Confirmed