<?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>141086</bug_id>
          
          <creation_ts>2015-01-30 09:56:59 -0800</creation_ts>
          <short_desc>focusing of disabled fieldset element is not prevented</short_desc>
          <delta_ts>2022-08-31 10:06:15 -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>Mac</rep_platform>
          <op_sys>OS X 10.11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rodney Rehm">mail</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>k.gurpreet</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1065581</commentid>
    <comment_count>0</comment_count>
      <attachid>245722</attachid>
    <who name="Rodney Rehm">mail</who>
    <bug_when>2015-01-30 09:56:59 -0800</bug_when>
    <thetext>Created attachment 245722
test case

Steps to reproduce the problem:
1. create element &lt;fieldset tabindex=&quot;0&quot; disabled&gt;
2. try to focus the fieldset

What is the expected behavior?
fieldset is not focused

What went wrong?
fieldset becomes the activeElement


specification: http://www.w3.org/TR/html5/disabled-elements.html#concept-element-disabled

Chromium bug for reference: https://code.google.com/p/chromium/issues/detail?id=453847</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1068031</commentid>
    <comment_count>1</comment_count>
    <who name="Gurpreet">k.gurpreet</who>
    <bug_when>2015-02-10 05:01:27 -0800</bug_when>
    <thetext>Working on the issues. Will raise a patch soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894973</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-30 16:11:55 -0700</bug_when>
    <thetext>All browser differ but Safari Technology Preview seems to be wrong:

*** STP 152 on macOS 12.5.1 ***

activeElement: BODY
focus: FIELDSET

*** Firefox Nightly 106 ***

activeElement: BODY
focus: #document

*** Chrome Canary 107 ***

activeElement: BODY

_____________________

Chrome / Blink fixed this in following commit:

https://chromium.googlesource.com/chromium/src.git/+/1637db318e525b5c1e3a960eeb59dee151f049ca

https://github.com/WebKit/WebKit/blob/05525a74d4ef2d19f84efc193f104730713958d5/Source/WebCore/html/HTMLFieldSetElement.cpp#L153

This is line to change to make this work. I can do this quickly. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894981</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-30 16:29:00 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/3828</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895038</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-30 20:16:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/99364731&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895194</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-08-31 10:06:11 -0700</bug_when>
    <thetext>Committed 253993@main (8ddd66fb04db): &lt;https://commits.webkit.org/253993@main&gt;

Reviewed commits have been landed. Closing PR #3828 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>245722</attachid>
            <date>2015-01-30 09:56:59 -0800</date>
            <delta_ts>2015-01-30 09:56:59 -0800</delta_ts>
            <desc>test case</desc>
            <filename>blink-fieldset-disabled.html</filename>
            <type>text/html</type>
            <size>950</size>
            <attacher name="Rodney Rehm">mail</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgPG1ldGEgY2hhcnNldD0i
dXRmLTgiIC8+CiAgPHRpdGxlPkJsaW5rOiBkaXNhYmxlZCBmaWVsZHNldCBzdGlsbCBmb2N1c2Fi
bGU8L3RpdGxlPgogIDxzdHlsZT4KICAgIGh0bWwgOmZvY3VzIHsKICAgICAgb3V0bGluZTogMnB4
IHNvbGlkIGhvdHBpbms7CiAgICB9CiAgPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4KCiAgPHA+CiAg
ICBCbGluayBhbmQgV2ViS2l0IGRvIG5vdCBwcmV2ZW50IGZvY3VzaW5nIG9mIGRpc2FibGVkIGZp
ZWxkc2V0cyBhcyByZXF1aXJlZCBieQogICAgPGEgaHJlZj0iaHR0cDovL3d3dy53My5vcmcvVFIv
aHRtbDUvZGlzYWJsZWQtZWxlbWVudHMuaHRtbCNjb25jZXB0LWVsZW1lbnQtZGlzYWJsZWQiPmRp
c2FibGVkIGVsZW1lbnRzPC9hPgogIDwvcD4KCiAgPGZpZWxkc2V0IHRhYmluZGV4PSIwIiBkaXNh
YmxlZD4KICAgIDxsZWdlbmQ+ZGlzYWJsZWQgZmllbGRzZXQ8L2xlZ2VuZD4KICAgIDxwPnNob3Vs
ZCBub3QgYmUgZm9jdXNhYmxlPC9wPgogIDwvZmllbGRzZXQ+CgogIDxwcmU+PC9wcmU+CiAgPHNj
cmlwdD4KICAgIHZhciBsb2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