Making WordPress.org

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6585 closed defect (bug) (fixed)

Developer handbook: double clicking parameter selects both the name and type.

Reported by: peterwilsoncc Owned by:
Priority: normal Milestone:
Component: Developer Hub Keywords:
Cc:

Description

Since code highlighting has been introduced to the developer handbook at ​https://developer.wordpress.org/reference, double clicking on a parameter name to select it selects both the parameter name and its type. (Gif incoming)

Looking at the markup of the page, it appears to be because there isn't a space between the parameter name and the type in the markup. As both code and span are inline elements, browsers treat them as a single word.

<code>tax_input</code><span class='type'>array</span>

Adding a space between the two tags would allow users to double click the parameter name and select just that.

Browser: Firefox 107.0
Operating System: macOS Monterey 12.6.1

Attachments (1)

double-click-to-select.gif​ (41.4 KB ) - added by peterwilsoncc 4 years ago.

Download all attachments as: .zip

Change History (2)

#1 @dd32
4 years ago

  • Resolution → fixed
  • Status new → closed
Version 0, edited 4 years ago by dd32 (next)
Note: See TracTickets for help on using tickets.