#6585 closed defect (bug) (fixed)
Developer handbook: double clicking parameter selects both the name and type.
Reported by: | 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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Fixed via https://github.com/WordPress/wporg-developer/commit/4b34120e6e7073f6c06e8175f34205987343b09a
Upstream issue: https://github.com/WordPress/wporg-developer/issues/139