[wp-meta] [Making WordPress.org] #6585: Developer handbook: double clicking parameter selects both the name and type.

Making WordPress.org noreply at wordpress.org
Mon Nov 21 00:35:00 UTC 2022


#6585: Developer handbook: double clicking parameter selects both the name and
type.
---------------------------+--------------------
 Reporter:  peterwilsoncc  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:
Component:  Developer Hub  |   Keywords:
---------------------------+--------------------
 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.

 {{{#!htm
 <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

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6585>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list