Making WordPress.org

Opened 23 months ago

Closed 23 months ago

Last modified 23 months ago

#6585 closed defect (bug) (fixed)

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

Reported by: peterwilsoncc's profile peterwilsoncc Owned by:
Milestone: Priority: normal
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 23 months ago.

Download all attachments as: .zip

Change History (2)

Note: See TracTickets for help on using tickets.