[wp-trac] [WordPress Trac] #42586: Code Editor: Inconsistent results between finding in CodeMirror vs browser

WordPress Trac noreply at wordpress.org
Thu Nov 17 23:34:44 UTC 2022


#42586: Code Editor: Inconsistent results between finding in CodeMirror vs browser
-------------------------------+-----------------------------
 Reporter:  wpress2010         |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  high               |   Milestone:  Future Release
Component:  Administration     |     Version:  4.9
 Severity:  major              |  Resolution:
 Keywords:  needs-patch close  |     Focuses:  accessibility
-------------------------------+-----------------------------

Comment (by ironprogrammer):

 == Test Report (Regression)
 The purpose of this test is to provide current context of the issue.

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 12.6
 - Browser: Safari 16.0, Google Chrome 107.0.5304.110
 - Server: nginx/1.23.2
 - PHP: 7.4.32
 - WordPress: 6.2-alpha-54642-src
 - Theme: twentytwentyone v1.7

 === Actual Results
 - ✅ When using `Cmd-F` to search, pressing `Return` keeps the search box
 visible.
 - ❌ When using `Cmd-F` to search, the current "focused" search result is
 not highlighted differently from other results. Pressing `Return` advances
 the code to the next result, but no special highlighting is applied. (See
 Figure 1.)

 === Additional Notes
 - After a `Cmd-F` search, pressing `ESC` to exit the search box removes
 highlighting except for the "focused" result.
 - Using `Cmd-G` (and `Shift-Cmd-G`) instead of `Cmd-F` clearly shows the
 "focused" result in a different color.

 === Supplemental Artifacts
   ''Figure 1: Patch
 [https://core.trac.wordpress.org/attachment/ticket/42586/42586.patch
 42586.patch] applied.''
   [[Image(https://cldup.com/fIv5Yyqn8t.gif, 80%)]]

   ''Figure 2: Patch reverted.''
   [[Image(https://cldup.com/ZJjmgUwyFS.gif, 80%)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42586#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list