<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>299087</bug_id>
          
          <creation_ts>2025-09-18 06:47:11 -0700</creation_ts>
          <short_desc>Input type range does not emit events focus, blur, focusin and focusout when interacting with mouse.</short_desc>
          <delta_ts>2025-10-16 00:13:14 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>22261</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Niklaus Hug">register</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2143947</commentid>
    <comment_count>0</comment_count>
    <who name="Niklaus Hug">register</who>
    <bug_when>2025-09-18 06:47:11 -0700</bug_when>
    <thetext>After a click on &lt;input type=&quot;range&quot;&gt; the input should be focused. I also would like to see an outline and use keyboard interactions (e.g. &apos;ArrowRight&apos; and &apos;ArrowLeft&apos; to change the value). &lt;input type=&quot;range&quot;&gt; is still a target for keyboard interaction &apos;Tab&apos;. 

Unlike in Chrome (v140) and Firefox (v142.0.1) this is not the case in Safari (v 18.6).

Currently I use subsequent workaround:

    &lt;input @click=&quot;${this.focusRangeInput}&quot; type=&quot;range&quot; /&gt;

    private focusRangeInput() {
        this.inputAsRangeEl.focus();
    }

May use https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input to see the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144109</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-09-18 14:01:02 -0700</bug_when>
    <thetext>Thank you for the report. What exactly suggests to you that it should be focused, is it just that Chrome and Firefox do it?

I don&apos;t know if there is something special about range, however this sounds like another case of bug 22261, which is actually a bug in Chrome and Firefox on macOS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144266</commentid>
    <comment_count>2</comment_count>
    <who name="Niklaus Hug">register</who>
    <bug_when>2025-09-18 23:31:44 -0700</bug_when>
    <thetext>Having a consistent API over all browsers is a fair part of my need.

Currently I implement a slider which consist of a `&lt;input type=&quot;range&quot;&gt;` and a `&lt;input type=&quot;text&quot;&gt;` and `&lt;label&gt;`. The text input is only shown if either one input is focused. I bind event handlers to `focusin` and `focusout` on a common parent element to track the state `showTextInput`.

I would like to use this pattern also on Safari, but the additional step of executing method `focus()` is required (see comment 2025-09-18 06:47:11).

I suggest:
1. `&lt;input type=&quot;range&quot;&gt;` must emit event `focus`, `blur`, `focusin` and `focusout`. 
2. `&lt;input type=&quot;range&quot;&gt;` should show an `outline`. Leastwise if a range input was clicked it is the starting point for tabbing through form fields (keypress `Tab`).

Sidenote: I adapted the title from `Input type range is not focused after click.` to `Input type range does not emit events focus, blur, focusin and focusout`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145855</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-09-25 06:49:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/161325855&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>